<br><br><div class="gmail_quote">2011/4/1 Andrew Bradford <span dir="ltr"><<a href="mailto:bradfa@gmail.com">bradfa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As a funny aside, while trying to reproduce your uClibc issue, I got<br>
all mixed up with variables and ended up reproducing this issue. Good<br>
to know it's confirmed... but not really what I was trying to do.<br>
<br>
The all caps define __GCC_FLOAT_NOT_NEEDED looks interesting though<br>
for your other issue....<br>
I'll reply to the other thread with my findings once I straighten out<br>
my variables.<br>
<br>
My failure ends like this for building libgcc the way you are:<br>
<br>
[...]<br>
<br>
/opt/clfs-embedded-armv4t/sources/gcc-build/./gcc/xgcc<br>
-B/opt/clfs-embedded-armv4t/sources/gcc-build/./gcc/<br>
-B/opt/clfs-embedded-armv4t/cross-tools/armv4l-unknown-linux-uclibc/bin/<br>
-B/opt/clfs-embedded-armv4t/cross-tools/armv4l-unknown-linux-uclibc/lib/<br>
-isystem /opt/clfs-embedded-armv4t/cross-tools/armv4l-unknown-linux-uclibc/include<br>
-isystem /opt/clfs-embedded-armv4t/cross-tools/armv4l-unknown-linux-uclibc/sys-include<br>
<div class="im"> -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall<br>
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes<br>
-Wold-style-definition -isystem ./include -fomit-frame-pointer -fPIC<br>
-Wno-missing-prototypes -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED<br>
-Dinhibit_libc -I. -I. -I../.././gcc -I../../../gcc-4.5.2/libgcc<br>
-I../../../gcc-4.5.2/libgcc/. -I../../../gcc-4.5.2/libgcc/../gcc<br>
-I../../../gcc-4.5.2/libgcc/../include -DHAVE_CC_TLS -o<br>
</div>_trampoline.o -MT _trampoline.o -MD -MP -MF _trampoline.dep<br>
-DL_trampoline -c ../../../gcc-4.5.2/libgcc/../gcc/libgcc2.c \<br>
<br>
/tmp/ccD1D3Wj.s: Assembler messages:<br>
/tmp/ccD1D3Wj.s:29: Error: invalid swi expression<br>
/tmp/ccD1D3Wj.s:29: Error: value of 10420226 too large for field of 2 bytes at 2<br>
<div class="im">make[1]: *** [_clear_cache.o] Error 1<br>
</div>make[1]: *** Waiting for unfinished jobs....<br>
make[1]: Leaving directory<br>
`/opt/clfs-embedded-arm-sources/gcc-build/armv4l-unknown-linux-uclibc/libgcc'<br>
<div class="im">make: *** [all-target-libgcc] Error 2<br>
<br>
</div>My environment looks like this (on Debian 6 amd64):<br>
<br>
clfs-embedded-armv4t@bigbox:/opt/clfs-embedded-armv4t/sources/gcc-build$<br>
env | grep CLFS<br>
CLFS_HOST=x86_64-cross-linux-gnu<br>
CLFS_TARGET=armv4l-unknown-linux-uclibc<br>
<div class="im">CLFS_ARM_ARCH=armv4t<br>
CLFS_ARM_MODE=thumb<br>
</div>CLFS=/opt/clfs-embedded-armv4t<br>
<div class="im">CLFS_ARCH=arm<br>
CLFS_ABI=apcs-gnu<br>
CLFS_ENDIAN=little<br>
CLFS_FLOAT=soft<br>
<br>
</div><div><div></div><div class="h5">-Andrew<br>
_______________________________________________<br>
Clfs-support mailing list<br>
<a href="mailto:Clfs-support@lists.cross-lfs.org">Clfs-support@lists.cross-lfs.org</a><br>
<a href="http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org" target="_blank">http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</a><br>
</div></div></blockquote></div><br><br>I appreciate all your help, thanks a lot in advance! :-)<br><br>According to table 6.1 on section 6.3 (ABI variables) it seems that mode "thumb" must be setup with CLFS_ABI="atpcs". That was wrong on my environment. However, I tested again with that variable fixed, and the error when building the static gcc is exactly the same:<br>
<br>/home/clfs/sources/gcc-static-build/./gcc/xgcc -B/home/clfs/sources/gcc-static-build/./gcc/ -B/home/clfs/cross-tools/armv4-linux-uclibc/bin/ -B/home/clfs/cross-tools/armv4-linux-uclibc/lib/ -isystem /home/clfs/cross-tools/armv4-linux-uclibc/include -isystem /home/clfs/cross-tools/armv4-linux-uclibc/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fomit-frame-pointer -fPIC -Wno-missing-prototypes -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../../../gcc-4.5.2/libgcc -I../../../gcc-4.5.2/libgcc/. -I../../../gcc-4.5.2/libgcc/../gcc -I../../../gcc-4.5.2/libgcc/../include -DHAVE_CC_TLS -o _clear_cache.o -MT _clear_cache.o -MD -MP -MF _clear_cache.dep -DL_clear_cache -c ../../../gcc-4.5.2/libgcc/../gcc/libgcc2.c \<br>
<br>/tmp/ccF3T7aD.s: Assembler messages:<br>/tmp/ccF3T7aD.s:29: Error: invalid swi expression<br>/tmp/ccF3T7aD.s:29: Error: value of 10420226 too large for field of 2 bytes at 2<br>make[1]: *** [_clear_cache.o] Error 1<br>
make[1]: Leaving directory `/home/clfs/sources/gcc-static-build/armv4-linux-uclibc/libgcc'<br>make: *** [all-target-libgcc] Error 2<br><br>$ env | grep CLFS<br>CLFS_HOST=i486-cross-linux-gnu<br>CLFS_TARGET=armv4-linux-uclibc<br>
CLFS_ARM_ARCH=armv4t<br>CLFS_ARM_MODE=thumb<br>CLFS=/home/clfs<br>CLFS_ARCH=arm<br>CLFS_ABI=atpcs<br>CLFS_ENDIAN=little<br>CLFS_FLOAT=soft<br><br>