From patchwork Mon Mar 10 12:05:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 328539 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id DA3082C009C for ; Mon, 10 Mar 2014 23:05:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id ADDAD8BCD2; Mon, 10 Mar 2014 12:05:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HhOqTozlk9sO; Mon, 10 Mar 2014 12:05:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A18608BA7D; Mon, 10 Mar 2014 12:05:21 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 8BB181BF849 for ; Mon, 10 Mar 2014 12:05:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8696C8AFF1 for ; Mon, 10 Mar 2014 12:05:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zM3dfQISm1Ac for ; Mon, 10 Mar 2014 12:05:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from helium.waldemar-brodkorb.de (helium.waldemar-brodkorb.de [89.238.66.15]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 726F98AFEC for ; Mon, 10 Mar 2014 12:05:18 +0000 (UTC) Received: by helium.waldemar-brodkorb.de (Postfix, from userid 1000) id B217C104F5; Mon, 10 Mar 2014 13:05:14 +0100 (CET) Date: Mon, 10 Mar 2014 13:05:14 +0100 From: Waldemar Brodkorb To: uclibc@uclibc.org Subject: (fwd) uclibc toolchain building fails for sparc [wbx@openadk.org] Message-ID: <20140310120513.GS4148@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 3.2.0-4-amd64 x86_64 User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Waldemar Brodkorb List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org 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 ----- Date: Wed, 19 Feb 2014 07:28:06 +0100 From: Waldemar Brodkorb 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 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