From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20102: Problem with ld.so RUNPATH on armhf Date: Tue, 14 Jul 2015 15:32:36 +0200 Message-ID: <87vbdmrhjf.fsf@gnu.org> References: <87y4n0ybdd.fsf@netris.org> <87bngjk5g2.fsf@netris.org> <87twub89lr.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]:51216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF0KX-00054p-Er for bug-guix@gnu.org; Tue, 14 Jul 2015 09:33:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF0KW-0004VM-LA for bug-guix@gnu.org; Tue, 14 Jul 2015 09:33:05 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:47336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF0KW-0004VH-JP for bug-guix@gnu.org; Tue, 14 Jul 2015 09:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZF0KW-0007TZ-1z for bug-guix@gnu.org; Tue, 14 Jul 2015 09:33:04 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87twub89lr.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 14 Jun 2015 01:36:00 +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: Mark H Weaver Cc: 20102-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > It happens on x86_64 as well. Namely, the glibc that is built with > glibc-final and gcc-final has extra RUNPATH entries: > > $ ./pre-inst-env guix build -e '(@ (gnu packages base) glibc)' -K > [...] > /gnu/store/pxi61vv6qj325y3zs5qpcy2shykgxdar-glibc-2.21 > /gnu/store/m3qidd4gx7ry3wxagsrd9cwlykq90yi7-glibc-2.21-debug > $ /gnu/store/pxi61vv6qj325y3zs5qpcy2shykgxdar-glibc-2.21/bin/gencat=20 > Inconsistency detected by ld.so: get-dynamic-info.h: 142: elf_get_dynamic= _info: Assertion `info[29] =3D=3D ((void *)0)' failed! > $ objdump -x /gnu/store/pxi61vv6qj325y3zs5qpcy2shykgxdar-glibc-2.21/bin/g= encat |grep PATH > RUNPATH /gnu/store/2bq2qaaajar2f3dbxrrwssxfrfi0k9zr-gcc-4.= 9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2 > > After a bit of investigation, I found that the problem came from: > > -plugin /gnu/store/2bq2qaaajar2f3dbxrrwssxfrfi0k9zr-gcc-4.9.2/libexec/g= cc/x86_64-unknown-linux-gnu/4.9.2/liblto_plugin.so.0 > > which led ld-wrapper to add a -rpath flag for that directory. > > I=E2=80=99m testing the patch below and will commit tomorrow if everythin= g goes > well. The patch was applied as b5616bc a while back, so I=E2=80=99m closing this = bug. Ludo=E2=80=99.