[uClibc] xscale/soft-float compilation fails

maryam maryam_seraj at yahoo.com
Thu Mar 24 18:25:10 UTC 2005


Using buildroot/uclibc/busybox 1.0, I'm trying 
to cross-compile my tools and libraries for a
ixp2800/xscale plaform. Using "make menuconfig",
from "Toolchain Options", if I didn't select  
"Use software floating point by default", then
compilation goes well, but if I did select it then
I get the following error:

gcc -c  -DUSE_UCLIBC -g -O2 -DIN_GCC -DCROSS_COMPILE 
-W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long
-DHAVE_CONFIG_H    -I. -I.
-I/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2/gcc
-I/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2/gcc/.
-I/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2/gcc/../include
insn-modes.c -o insn-modes.o
gcc  -DUSE_UCLIBC -g -O2 -DIN_GCC -DCROSS_COMPILE  -W
-Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o genextract \
        genextract.o rtl.o read-rtl.o bitmap.o
ggc-none.o min-insn-modes.o
gensupport.o insn-conditions.o print-rtl1.o \
        errors.o ../libiberty/libiberty.a
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../crt1.o(.text+0x18):
In function
`_start':
: undefined reference to `main'
print-rtl1.o(.text+0x64c): In function `print_rtx':
/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2-initial/gcc/print-rtl1.c:428:
undefined reference to `get_insn_name'
collect2: ld returned 1 exit status
make[2]: *** [genextract] Error 1
make[2]: Leaving directory
`/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
`/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2-initial'
make: ***
[/home/maryam/buildroot/toolchain_build_armeb_nofpu/gcc-3.4.2-initial/.compiled]Error
2

 
Since xscale doesn't have HW floating point support,
I figured I have to build my tools for soft-float.
Also, the whole thing started when I couldn't get
my /bin/sh started when I try to login. I traced the
problem to setjmp() instruction in shell/ash.c file
where system crashed trying to execute it.
Does anybody know what I'm doing wrong or has any
suggestions to get around this problem?

Thanks,
Maryam


		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs



More information about the uClibc mailing list