Trying out -git, sparc sh4 and powerpc didn't build.

Konrad Eisele konrad at gaisler.com
Mon Dec 13 16:58:06 UTC 2010


Rob Landley wrote:
> All three of these worked with the previous stable release, but not with 
> current -git.  Building against 2.6.36:
> 
> sparc died with:
> 
> In file included from libc/sysdeps/linux/sparc/soft-fp/q_div.c:24:
> libc/sysdeps/linux/sparc/soft-fp/quad.h:63: error: unable to emulate 'TF'
> In file included from libc/sysdeps/linux/sparc/soft-fp/q_fle.c:24:
> libc/sysdeps/linux/sparc/soft-fp/quad.h:63: error: unable to emulate 'TF'
> libc/sysdeps/linux/sparc/soft-fp/q_fle.c: In function '_Q_fle':
> libc/sysdeps/linux/sparc/soft-fp/q_fle.c:28: warning: unused variable '_fcw'
> make: *** [libc/sysdeps/linux/sparc/soft-fp/q_fle.os] Error 1
> make: *** Waiting for unfinished jobs....
> make: *** [libc/sysdeps/linux/sparc/soft-fp/q_div.os] Error 1


Can you send me gcc's configure line for the sparc toolchain that you use?
Are you using a setup with a gcc/config/sparc/t-* snippet that has FPBIT and
DPBIT not set?
FPBIT =
DPBIT =

t-elf for instance defines:
...
FPBIT = fp-bit.c
DPBIT = dp-bit.c

dp-bit.c: $(srcdir)/config/fp-bit.c
	cat $(srcdir)/config/fp-bit.c > dp-bit.c

fp-bit.c: $(srcdir)/config/fp-bit.c
	echo '#define FLOAT' > fp-bit.c
	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
...

if I can reproduce the error here (if you send the gcc configure line) I
can try to post a patch that handles the error...
-- Greetings Konrad





> 
> sh4 died with:
> 
>   LD libuClibc-0.9.32-git.so
> libc/libc_so.a(longjmp.os): In function `__libc_longjmp':
> longjmp.c:(.text+0x48): undefined reference to `_longjmp_unwind'
> libc/libc_so.a(popen.os): In function `popen':
> popen.c:(.text+0x2d8): undefined reference to `__GI_vfork'
> collect2: ld returned 1 exit status
> make: *** [lib/libc.so] Error 1
> 
> Oddly powerpc broke but powerpc-440 built.  (Go figure?)
> 
> In file included from libc/inet/if_index.c:37:
> libc/inet/netlinkaccess.h:29: error: redefinition of typedef '__u8'
> /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-
> powerpc/include/asm-generic/int-ll64.h:20: error: previous declaration of 
> '__u8' was here
> libc/inet/netlinkaccess.h:30: error: redefinition of typedef '__u16'
> /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-
> powerpc/include/asm-generic/int-ll64.h:23: error: previous declaration of 
> '__u16' was here
> libc/inet/netlinkaccess.h:31: error: redefinition of typedef '__u32'
> /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-
> powerpc/include/asm-generic/int-ll64.h:26: error: previous declaration of 
> '__u32' was here
> libc/inet/netlinkaccess.h:32: error: redefinition of typedef '__u64'
> /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-
> powerpc/include/asm-generic/int-ll64.h:30: error: previous declaration of 
> '__u64' was here
> libc/inet/netlinkaccess.h:33: error: redefinition of typedef '__s32'
> /home/landley/aboriginal/aboriginal/build/simple-cross-compiler-
> powerpc/include/asm-generic/int-ll64.h:25: error: previous declaration of 
> '__s32' was here
> make: *** [libc/inet/if_index.os] Error 1
> make: *** Waiting for unfinished jobs....
> 
> I can provide more information on request, dunno what you need.
> 
> I'm building the "old" threading first (basically the same .config as 0.9.31).  
> I'll worry about NPTL once I'm sure the base system didn't regress too badly.
> 
> Rob



More information about the uClibc mailing list