Patchwork (fwd) uclibc toolchain building fails for sparc [wbx@openadk.org]

login
register
mail settings
Submitter Waldemar Brodkorb
Date March 10, 2014, 12:05 p.m.
Message ID <20140310120513.GS4148@waldemar-brodkorb.de>
Download mbox | patch
Permalink /patch/328539/
State New
Headers show

Comments

Waldemar Brodkorb - March 10, 2014, 12:05 p.m.
Hi,

I am using this patch to let uClibc compile.

Not sure if it right, I do not understand the alias/hidden symbol 
magic used in uClibc ;)

best regards
        Waldemar
 

----- Forwarded message from Waldemar Brodkorb <wbx@openadk.org> -----

Date: Wed, 19 Feb 2014 07:28:06 +0100
From: Waldemar Brodkorb <wbx@openadk.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
To: uclibc@uclibc.org
Subject: uclibc toolchain building fails for sparc

Hi,

I recently updated my stuff to uCLibc git, to get support for MIPS64
N64. Now the sparc toolchain is not building anymore:
/home/wbx/toolchains/host_sparc_uclibc_uclibc/bin/sparc-openadk-linux-uclibc-gcc
-nostartfiles -Wl,-EB -shared -Wl,--warn-common -Wl,--warn-once
-Wl,-z,combreloc -Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu
-Wl,-z,defs -Wl,-s  ./lib/ld-uClibc-0.9.34-git.so
./lib/libdl-0.9.34-git.so
-Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal
-Wl,-soname=libpthread.so.0 -nostdlib -o
lib/libpthread-0.9.34-git.so
./libpthread/nptl/sysdeps/pthread/pt-crti.o -Wl,--whole-archive
libpthread/nptl/libpthread_so.a -Wl,--no-whole-archive
./lib/interp.os -L./lib ./lib/libc.so
/home/wbx/toolchains/host_sparc_uclibc_uclibc/lib/gcc/sparc-openadk-linux-uclibc/4.7.3/libgcc.a
./libpthread/nptl/sysdeps/pthread/pt-crtn.o
libpthread/nptl/libpthread_so.a(pt-system.oS): In function
`__libc_system':
pt-system.c:(.text+0x104): undefined reference to `__wait4_nocancel'
/home/wbx/toolchains/host_sparc_uclibc_uclibc/lib/gcc/sparc-openadk-linux-uclibc/4.7.3/../../../../sparc-openadk-linux-uclibc/bin/ld:
lib/libpthread-0.9.34-git.so: hidden symbol `__wait4_nocancel' isn't
defined
/home/wbx/toolchains/host_sparc_uclibc_uclibc/lib/gcc/sparc-openadk-linux-uclibc/4.7.3/../../../../sparc-openadk-linux-uclibc/bin/ld:
final link failed: Bad value
collect2: error: ld returned 1 exit status
make[7]: *** [lib/libpthread.so] Error 1
make[6]: ***
[/home/wbx/toolchains/toolchain_build_sparc_uclibc_uclibc/w-uClibc-0.9.33.2-1/uClibc-0.9.33.2/.compiled]
Error 2
make[5]: *** [uClibc-compile] Error 2
make[4]: *** [toolchain/fixup] Error 2
make[3]: *** [world] Error 2
make[2]: *** [all] Error 2
Bulk build failed!

Any help would be really nice.
thanks in advance
 Waldemar

Patch

diff -Nur uClibc-0.9.33.2.orig/include/sys/wait.h uClibc-0.9.33.2/include/sys/wait.h
--- uClibc-0.9.33.2.orig/include/sys/wait.h	2014-03-01 19:15:53.000000000 +0100
+++ uClibc-0.9.33.2/include/sys/wait.h	2014-03-01 19:16:42.000000000 +0100
@@ -176,7 +176,7 @@ 
 #endif /* Use BSD.  */
 
 #ifdef _LIBC
-extern __pid_t __wait4_nocancel(__pid_t, __WAIT_STATUS, int, struct rusage *) attribute_hidden;
+extern __pid_t __wait4_nocancel(__pid_t, __WAIT_STATUS, int, struct rusage *);
 #endif