This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error while building GCC 4.5 (MinGW)


On 12/04/2010 16:34, Name lastlong wrote:

> ================================= config.log ==========================
> configure:5615: $? = 0
> configure:5616: result: yes
> configure:5634: checking for the correct version of the gmp/mpfr/mpc libraries
> configure:5665: i386-pc-mingw32msvc-gcc -o conftest.exe -O2 -I/home/foo/mpc/prefix//include -I/home/foo/mpc/prefix//include -I/home/foo/mpc/prefix//include    conftest.c  -L/home/foo/mpc/prefix//lib -L/home/foo/mpc/prefix//lib -L/home/foo/mpc/prefix//lib -lmpc -lmpfr -lgmp >&5
> /tmp/ccYkD69D.o:conftest.c:(.text+0x25): undefined reference to `_mpfr_init'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x2d): undefined reference to `_mpfr_init'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x43): undefined reference to `_mpfr_atan2'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x55): undefined reference to `_mpfr_erfc'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x6c): undefined reference to `_mpfr_subnormalize'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x79): undefined reference to `_mpfr_clear'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x84): undefined reference to `_mpfr_clear'
> /tmp/ccYkD69D.o:conftest.c:(.text+0x95): undefined reference to `_mpc_init2'
> /tmp/ccYkD69D.o:conftest.c:(.text+0xab): undefined reference to `_mpc_set_ui_ui'
> /tmp/ccYkD69D.o:conftest.c:(.text+0xbd): undefined reference to `_mpc_cosh'
> /tmp/ccYkD69D.o:conftest.c:(.text+0xd3): undefined reference to `_mpc_pow'
> /tmp/ccYkD69D.o:conftest.c:(.text+0xe5): undefined reference to `_mpc_acosh'
> /tmp/ccYkD69D.o:conftest.c:(.text+0xed): undefined reference to `_mpc_clear'
> collect2: ld returned 1 exit status
> configure:5665: $? = 1
> configure:5669: result: no

  This just looks like your mpfr and mpc libraries are completely busted.  Cut
and paste the command-line into a shell, and add "-v -Wl,-v -Wl,-Map,out.map".
 Take a look at the linker output and make sure it's linking against the mpc
and mpfr library files that you expect it to be; take a look at those files
with "nm" to see what symbols they define.

  This is /probably/ not a GCC bug, so maybe we should move it to the gcc-help
list if something doesn't show up in the next round or two of debugging.

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]