[uClibc] buildroot fails to build the cross-toolchain

Michael Hunold hunold at linuxtv.org
Mon Jun 13 16:04:03 UTC 2005


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---------------------------- 

After thinking about it: it confuses my that I can choose between "mips" and 
"mipsel" in the build_root configure process, but I need to select litte or 
big endian again in the uclibc process. 

So, did you really try to build it for big-endian? (i.e. "mips" in 
build_root and explicitely selecting big endian in the uclibc configuration= 

If not, could you please try again? Thanks! 

For me, it does not make a difference. If I selecet little endian, I get a 
similar error:
 --------------------------schnipp----------------------------
cat 
/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/config/fp 
 -bit.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_mipsel/gcc-3.4.2/gcc/config/fp 
 -bit.c >> dp-bit.c
/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/gcc/x 
gcc 
 -B/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/gcc 
/ 
 -B/home/mhu/buildroot/buildroot/build_mipsel/staging_dir/mipsel-linux-uclibc 
/bin/ 
 -B/home/mhu/buildroot/buildroot/build_mipsel/staging_dir/mipsel-linux-uclibc 
/lib/ -isystem 
/home/mhu/buildroot/buildroot/build_mipsel/staging_dir/mipsel-linux-uclibc/i 
nclude -isystem 
/home/mhu/buildroot/buildroot/build_mipsel/staging_dir/mipsel-linux-uclibc/s 
ys-include -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_mipsel/gcc-3.4.2/gcc 
 -I/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/. 
 -I/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2/gcc/../incl 
ude   -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_mipsel/gcc-3.4.2/gcc/crtstuff. 
c -DCRT_BEGIN \
 -o crtbegin.o
as: unrecognized option `-EL'
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory 
`/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory 
`/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial'
make: *** 
[/home/mhu/buildroot/buildroot/toolchain_build_mipsel/gcc-3.4.2-initial/.com 
piled] Error 2
 --------------------------schnipp---------------------------- 


For the sake of completeness, here are some version informations: 

teemhu ~% gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3) 

teemhu ~% as --version
GNU assembler 2.15.92.0.2 20040927 

teemhu ~% ranlib --version
GNU ranlib 2.15.92.0.2 20040927 

Does anybody have a hint here? 

CU
Michael. 




More information about the uClibc mailing list