./config fails for CodeSourcery arm-none-eabi-* toolchain

Marc Glisse marc.glisse at inria.fr
Mon Mar 12 12:13:52 CET 2012


On Mon, 12 Mar 2012, Ajit.Patra at infineon.com wrote:

> Test compile: mpn_lshift_com optimization 2
> configure:6323: /cygdrive/C/Data/Software/eLinux/arm-2011.09-eabi-mingw32/bin/arm-none-eabi-gcc -O2 -pedantic -fomit-frame-pointer   conftest.c >&5

Looks like a fairly basic command line.

> c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008018
> c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-abort.o): In function `abort':
> abort.c:(.text+0x10): undefined reference to `_exit'
> c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
> sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
> c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_kill_r':
> signalr.c:(.text+0x1c): undefined reference to `_kill'
> c:/data/software/elinux/arm-2011.09-eabi-mingw32/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_getpid_r':
> signalr.c:(.text+0x44): undefined reference to `_getpid'
> collect2: ld returned 1 exit status
[...]
> configure:6718: error: could not find a working compiler, see config.log for details

Yup, I agree with the configure message, something is broken in your 
toolchain, linking with libc fails... You should take it up with whoever 
provided the toolchain.

-- 
Marc Glisse


More information about the gmp-discuss mailing list