From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#20102: Problem with ld.so RUNPATH on armhf Date: Thu, 09 Apr 2015 02:04:58 -0400 Message-ID: <87mw2hx2et.fsf@netris.org> References: <87y4n0ybdd.fsf@netris.org> <87pp7jh7y8.fsf@gnu.org> <87384f5goy.fsf@netris.org> <87oan16m4z.fsf@gnu.org> <87d23hynqe.fsf@netris.org> <87fv8b0wwx.fsf@gnu.org> <87bniyy7au.fsf@netris.org> <87twwqv50y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg5aM-0003bp-QP for bug-guix@gnu.org; Thu, 09 Apr 2015 02:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yg5aI-0006VP-RR for bug-guix@gnu.org; Thu, 09 Apr 2015 02:05:06 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:60124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yg5aI-0006V4-OG for bug-guix@gnu.org; Thu, 09 Apr 2015 02:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yg5aI-00042x-5O for bug-guix@gnu.org; Thu, 09 Apr 2015 02:05:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87twwqv50y.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 08 Apr 2015 20:39:09 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 20102@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > With a bit of additional debug, I can print the value of =E2=80=98libs=E2= =80=99 in the > =E2=80=98ld-wrapper=E2=80=99 procedure: > > ;;; (libs ("/gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib/ld= -linux-armhf.so.3")) > > This one comes from the -dynamic-linker flag, which is not passed on > x86_64. > > I believe this extra -dynamic-linker flag comes from a bogus =E2=80=98lin= k=E2=80=99 spec > on ARM, solved by this: > > --- gcc-4.8.4/gcc/config/arm/linux-elf.h.orig 2015-04-08 20:31:20.3769004= 78 +0200 > +++ gcc-4.8.4/gcc/config/arm/linux-elf.h 2015-04-08 20:31:36.437014437 +0= 200 > @@ -65,7 +65,7 @@ > %{symbolic:-Bsymbolic} \ > %{!static: \ > %{rdynamic:-export-dynamic} \ > - -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \ > + %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \ > -X \ > %{mbig-endian:-EB} %{mlittle-endian:-EL}" \ > SUBTARGET_EXTRA_LINK_SPEC > > That way it would match GNU_USER_TARGET_LINK_SPEC in i386/gnu-user.h, > where -dynamic-linker appears within %{!static ... %{!shared ...}}. > > So, could you do: > > (define patched-gcc > (package > (inherit gcc-4.8) > (sources (origin (inherit (package-source gcc-4.8)) > (patches ...))))) > > build it, and then use it in the failed glibc build tree to rebuild > ld.so? Yes, this fixed the problem. I went ahead and pushed 1421afa94a to core-updates to apply this patch to gcc-4.8, gcc-4.9, and cross-gcc. I started both Hydra and my Novena building the new core-updates. Thanks! Mark