This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 4.5 0/N]: Integrate GCC with the complex math library MPC
Kaveh R. Ghazi wrote:
> I have a query out to the MPC developers about "known to work"
> platforms, but I haven't heard back yet. In the mean time, if there is
> a particular platform you wish to check please try this tarball:
>
> http://www.loria.fr/~zimmerma/mpc-0.6-dev.tar.gz
>
> Just do a regular "./configure; make; make check" and let me know the
> results along with the triplet.
i686-pc-cygwin: Won't build. Falls at the first hurdle.
admin@ubik /tmp/mpc/mpc-0.6-dev
$ make 2>&1 | tee build.log
make all-recursive
make[1]: Entering directory `/tmp/mpc/mpc-0.6-dev'
Making all in src
make[2]: Entering directory `/tmp/mpc/mpc-0.6-dev/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
-ansi -pedantic -Wall -Wextra -Werror -g -O2 -MT abs.lo -MD -MP -MF
.deps/abs.Tpo -c -o abs.lo abs.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -ansi -pedantic -Wall -Wextra -Werror -g -O2 -MT
abs.lo -MD -MP -MF .deps/abs.Tpo -c abs.c -DDLL_EXPORT -DPIC -o .libs/abs.o
cc1: warnings being treated as errors
abs.c:28: error: 'mpc_abs' redeclared without dllimport attribute: previous
dllimport ignored
make[2]: *** [abs.lo] Error 1
make[2]: Leaving directory `/tmp/mpc/mpc-0.6-dev/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mpc/mpc-0.6-dev'
make: *** [all] Error 2
admin@ubik /tmp/mpc/mpc-0.6-dev
I'll try annotating all the exported function definitions with
__MPC_DECLSPEC to match the declarations.
Also, it failed in just the same way when I added "--disable-shared
--enable-static" to the configure line, which is almost certainly wrong; DLL
import and export directives shouldn't be in play when you aren't building a DLL!
cheers,
DaveK