Cross compile uClibc encountered error with linuxthreads lib

Robert Hoo robert.whu at gmail.com
Fri Oct 10 07:46:39 UTC 2008


Hi,

I'm trying to compile uClibc with mipsel toolchain.

The attached is my menuconfig result.

I observed that it by default uses linuxthreads.old directory.
However, it encounters following errors:


libc/sysdeps/linux/mips/crt1.S: Assembler messages:
libc/sysdeps/linux/mips/crt1.S:134: Warning: No .cprestore pseudo-op
used in PIC code
  AS lib/crti.o
  AS lib/crtn.o
  STRIP -x -R .note -R .comment lib/libc.a
  AR cr lib/libc.a
  STRIP -x -R .note -R .comment lib/uclibc_nonshared.a
  AR cr lib/uclibc_nonshared.a
  AR cr libc/libc_so.a
  LD libuClibc-0.9.29.so
libc/libc_so.a(libc_pthread_init.oS): In function `testandset':
libc_pthread_init.c:(.text+0x0): multiple definition of `testandset'
libc/libc_so.a(forward.oS):forward.c:(.text+0x0): first defined here
libc/libc_so.a(libc_pthread_init.oS): In function `__compare_and_swap':
libc_pthread_init.c:(.text+0x24): multiple definition of `__compare_and_swap'
libc/libc_so.a(forward.oS):forward.c:(.text+0x24): first defined here
make[1]: *** [lib/libc.so] Error 1


Anyone has ideas about this?

By the way, if I alternatively don't use linuxthreads.old, but
linuxthreads, also encountered some problems related with
'testandset', which reads: it is not defined.
-- 
Best Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/xml
Size: 5017 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20081010/0c3dc796/attachment-0002.xml 


More information about the uClibc mailing list