buildroot fails for ARM w/ gcc 4.1 and soft float

Lance Spaulding lsjunk1 at cableone.net
Mon May 15 22:55:47 UTC 2006


Khem Raj wrote:

> Your problem is not compiling uclibc but libgcc (GCC C runtime 
> library) which is compiled with GCC. You might need this patch
> apply this and try again
>

Thanks Khem,

I applied the patch but I'm still unable to build fully.  I do get 
further though.  Now I'm getting the following GCC_NO_EXECUTABLES error:

Tail of build log:

Configuring in arm-linux-uclibc/libstdc++-v3
configure: creating cache ./config.cache
checking build system type... i386-pc-linux-gnu
checking host system type... arm-unknown-linux-uclibc
checking target system type... arm-unknown-linux-uclibc
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-uclibc-strip... arm-linux-uclibc-strip
checking for arm-linux-uclibc-gcc... 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include accepts -g... yes
checking for 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include option to 
accept ANSI C... none needed
checking for arm-linux-uclibc-g++...  
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-shared-libgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc 
-nostdinc++ 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src/.libs 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include
checking whether we are using the GNU C++ compiler... yes
checking whether  
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-shared-libgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc 
-nostdinc++ 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src/.libs 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include accepts -g... yes
checking whether ln -s works... yes
checking for arm-linux-uclibc-as... 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/as
checking for arm-linux-uclibc-ar... arm-linux-uclibc-ar
checking for arm-linux-uclibc-ranlib... arm-linux-uclibc-ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
configure: CPU config directory is cpu/arm
configure: OS config directory is os/uclibc
checking for ld used by GCC... 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/collect-ld
checking if the linker 
(/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/collect-ld) 
is GNU ld... yes
checking for 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/collect-ld 
option to reload object files... -r
checking for BSD-compatible nm... 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/nm
checking how to recognise dependant libraries... pass_all
checking the maximum length of command line arguments... none
checking for arm-linux-uclibc-ranlib... (cached) arm-linux-uclibc-ranlib
checking for arm-linux-uclibc-strip... (cached) arm-linux-uclibc-strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... no
checking for objdir... .libs
checking for 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
option to produce PIC... -fPIC -DPIC
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
PIC flag -fPIC -DPIC works... yes
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
static flag -static works... no
finding the maximum length of command line arguments... 49153
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
supports -c -o file.o... yes
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
supports -fno-rtti -fno-exceptions ... no
checking whether the linker 
(/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/collect-ld) 
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... uClibc ld.so
checking command to parse 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/nm 
output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
checking how to run the C++ preprocessor...  
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-shared-libgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc 
-nostdinc++ 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src 
-L/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/arm-linux-uclibc/libstdc++-v3/src/.libs 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include -E
loading cache ./config.cache within ltconfig
checking host system type... arm-unknown-linux-uclibc
checking build system type... i386-pc-linux-gnu
checking for objdir... .libs
checking for 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
option to produce PIC... -fPIC -DPIC
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
PIC flag -fPIC -DPIC works... yes
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
static flag -static works... no
finding the maximum length of command line arguments... (cached) 49153
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
supports -c -o file.o... (cached) yes
checking if 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
supports -fno-rtti -fno-exceptions ... yes
checking whether the linker 
(/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/collect-ld) 
supports shared libraries...
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... uClibc ld.so
checking command to parse 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/nm 
output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for exception model to use... sjlj
checking for compiler with PCH support... yes
checking for enabled PCH... yes
checking for underlying I/O to use... stdio
checking how to run the C preprocessor... 
/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/xgcc 
-B/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/./gcc/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/bin/ 
-B/usr/local/arm-uclibc-tools/arm-linux-uclibc/lib/ -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/include -isystem 
/usr/local/arm-uclibc-tools/arm-linux-uclibc/sys-include -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for C locale to use... uclibc
checking for msgfmt... yes
checking for std::allocator base class... new
configure: "C" header strategy set to c_std
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for mbstate_t... yes
checking for ISO C99 support in <math.h>... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking for ISO C99 support in <complex.h>... no
checking for ISO C99 support in <stdio.h>... yes
checking for ISO C99 support in <stdlib.h>... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for ISO C99 support in <wchar.h>... yes
checking for fully enabled ISO C99 support... no
checking for enabled long long specializations... yes
checking for enabled wchar_t specializations... yes
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
checking for thread model used by GCC... posix
configure: WARNING: No native atomic operations are provided for this 
platform.
configure: WARNING: They will be faked using a mutex.
configure: WARNING: Performance of certain classes will degrade as a result.
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking for sys/types.h... (cached) yes
checking fp.h usability... no
checking fp.h presence... no
checking for fp.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for endian.h... (cached) yes
checking for inttypes.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for float.h... (cached) yes
checking for stdint.h... (cached) yes
head: `-1' option is obsolete; use `-n 1' since this will be removed in 
the future
checking for ld that supports -Wl,-z,relro... yes
checking for main in -lm... configure: error: Link tests are not allowed 
after GCC_NO_EXECUTABLES.
make[2]: *** [configure-target-libstdc++-v3] Error 1
make[2]: Leaving directory 
`/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final'
make: *** 
[/root/lance/buildroot/toolchain_build_arm_nofpu/gcc-4.1.0-final/.compiled] 
Error 2

Any suggestions?

Thanks again,
Lance




More information about the uClibc mailing list