[uClibc] Build error when compiling for i686

Robert Griebl sandman at handhelds.org
Mon May 17 20:50:26 UTC 2004


Hi all,

looking at the ML archive this problem has come up before:

...
/home/sandman/work/buildroot.p3m/build_i386/staging_dir/bin/i686-linux-uclibc-gcc  
-Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
-mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os     
-march=pentium3 -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. 
-I/home/sandman/work/buildroot.p3m/build_i386/staging_dir/lib/gcc-lib/i686-linux-uclibc/3.3.3/include 
-DNDEBUG -fPIC -c crti.S -o crti.o
initfini.c: Assembler messages:
initfini.c:12: Error: junk `.get_pc_thunk.bx' after expression
initfini.c:27: Error: junk `.get_pc_thunk.bx' after expression
initfini.c:33: Warning: rest of line ignored; first ignored character is `1'
initfini.c:34: Warning: rest of line ignored; first ignored character is `1'
...

The problem here is that gcc does an internal '#define __i686 1' when 
compiling with -march=pentium2|3. This problem also exists (or existed) in 
glibc (see http://sources.redhat.com/ml/libc-alpha/2003-01/msg00141.html).

I did the same fix to the uclibc sources and it compiles fine now (patch 
attached for uClibc snapshot from today)

cu
Robert

PS: please CC me on replies - I'm not subscribed to this list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i686.patch
Type: text/x-diff
Size: 510 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20040517/5b8b1ce0/attachment.bin 


More information about the uClibc mailing list