[uClibc] buildroot fails to build the cross-toolchain

Carl Miller chaz at energoncube.net
Mon Jun 13 17:03:47 UTC 2005


On Mon, Jun 13, 2005 at 06:04:03PM +0200, Michael Hunold wrote:
> Hello Ralph,
> 
> >I just tried it on my Fedora Core 3 machine and had no problems building
> >the crosstoolchain.  So you might want to try using gcc+binutils from FC3
> >if you can.
> 
> I just updated my machine to FC3 and unfortunately I still get the same
> error. 8-(
> 
> --------------------------schnipp----------------------------
> /bin/sh
> /home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/mkconfig.sh
> tconfig.h
> echo '#define FLOAT' > fp-bit.c
> echo '#ifdef __MIPSEL__' >> fp-bit.c
> echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
> echo '#endif' >> fp-bit.c
> echo '#define QUIET_NAN_NEGATED' >> fp-bit.c
> cat
> /home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/config/fp-b
> it.c >> fp-bit.c
> echo '#ifdef __MIPSEL__' > dp-bit.c
> echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
> echo '#endif' >> dp-bit.c
> echo '#define QUIET_NAN_NEGATED' >> dp-bit.c
> cat
> /home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/config/fp-b
> it.c >> dp-bit.c
> /home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2-initial/gcc/xgc
> c
> -B/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2-initial/gcc/
> -B/home/mhu/buildroot/buildroot/build_mips/staging_dir/mips-linux-uclibc/bin
> /
> -B/home/mhu/buildroot/buildroot/build_mips/staging_dir/mips-linux-uclibc/lib
> / -isystem
> /home/mhu/buildroot/buildroot/build_mips/staging_dir/mips-linux-uclibc/inclu
> de -isystem
> /home/mhu/buildroot/buildroot/build_mips/staging_dir/mips-linux-uclibc/sys-i
> nclude -O2 -DIN_GCC -DCROSS_COMPILE  -DUSE_UCLIBC -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
> ./include  -I. -I.
> -I/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc
> -I/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/.
> -I/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/../includ
> e   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions
> -fno-zero-initialized-in-bss -fno-unit-at-a-time  \
>  -c
> /home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2/gcc/crtstuff.c
> -DCRT_BEGIN \
> -o crtbegin.o
> as: unrecognized option `-EB'
> make[2]: *** [crtbegin.o] Error 1
> make[2]: Leaving directory
> `/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2-initial/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory
> `/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2-initial'
> make: ***
> [/home/mhu/buildroot/buildroot/toolchain_build_mips/gcc-3.4.2-initial/.compi
> led] Error 2
> mhu buildroot%
> --------------------------schnipp----------------------------

I suspect that it's running your native host's as, rather than the
recently generated mips-linux-uclibc-as.  You could tell for sure by
adding a -v to that gcc command line that's failing.  Is there an as
binary in
/home/mhu/buildroot/buildroot/build_mips/staging_dir/mips-linux-uclibc/bin
?
If not, then something might have gone wrong with your cross-binutils
install.


                           -----Carl




More information about the uClibc mailing list