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: Wed, 08 Apr 2015 17:48:09 +0200 Message-ID: <87iod6wrie.fsf@gnu.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> <877ftmy73k.fsf@netris.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]:44267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfsDw-0005b9-Im for bug-guix@gnu.org; Wed, 08 Apr 2015 11:49:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfsDu-0002BG-GG for bug-guix@gnu.org; Wed, 08 Apr 2015 11:49:04 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:59572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfsDu-0002B6-CU for bug-guix@gnu.org; Wed, 08 Apr 2015 11:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfsDt-00047x-UL for bug-guix@gnu.org; Wed, 08 Apr 2015 11:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <877ftmy73k.fsf@netris.org> (Mark H. Weaver's message of "Wed, 08 Apr 2015 11:26:07 -0400") 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@debbugs.gnu.org Mark H Weaver skribis: > Mark H Weaver writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Could you try the same on armhf? >> >> I've done so. Here's the transcript: >> >> mhw@novena:/tmp/nix-build-glibc-2.21.drv-0$ source environment-variables= =20 >> mhw@novena:/tmp/nix-build-glibc-2.21.drv-0/build$ cd /tmp/nix-build-glib= c-2.21.drv-0/build/elf/ >> mhw@novena:/tmp/nix-build-glibc-2.21.drv-0/build/elf$ /usr/bin/strace -s= 345 -f -o ,,s gcc --verbose -nostdlib -nostartfiles -shared -o /tmp/nix-= build-glibc-2.21.drv-0/build/elf/ld.so.new \ >> -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=3Dboth -Wl,-z,defs \ >> /tmp/nix-build-glibc-2.21.drv-0/build/elf/librtld.os -Wl,--version-sc= ript=3D/tmp/nix-build-glibc-2.21.drv-0/build/ld.map \ >> -Wl,-soname=3Dld-linux-armhf.so.3 \ >> -Wl,-defsym=3D_begin=3D0 >>> > > > Using built-in specs. >> COLLECT_GCC=3Dgcc >> COLLECT_LTO_WRAPPER=3D/gnu/store/qchkhdj4nn4aqs8rrbbyybrj2sarjs3j-gcc-4.= 8.4/libexec/gcc/armv7l-unknown-linux-gnueabihf/4.8.4/lto-wrapper >> Target: armv7l-unknown-linux-gnueabihf >> Configured with:=20 >> Thread model: posix >> gcc version 4.8.4 (GCC)=20 >> COMPILER_PATH=3D/gnu/store/qchkhdj4nn4aqs8rrbbyybrj2sarjs3j-gcc-4.8.4/li= bexec/gcc/armv7l-unknown-linux-gnueabihf/4.8.4/:/gnu/store/qchkhdj4nn4aqs8r= rbbyybrj2sarjs3j-gcc-4.8.4/libexec/gcc/armv7l-unknown-linux-gnueabihf/4.8.4= /:/gnu/store/qchkhdj4nn4aqs8rrbbyybrj2sarjs3j-gcc-4.8.4/libexec/gcc/armv7l-= unknown-linux-gnueabihf/:/gnu/store/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.= 8.4-lib/lib/gcc/armv7l-unknown-linux-gnueabihf/4.8.4/:/gnu/store/fc8kqk3daz= n6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/lib/gcc/armv7l-unknown-linux-gnueabihf/ >> LIBRARY_PATH=3D/gnu/store/84bsc47g2052allrmh4ph6xaqvp6f4cm-perl-5.16.1/l= ib/:/gnu/store/lakz7x2m4vqvvfdasn5x95a91rkqqs3c-bzip2-1.0.6/lib/:/gnu/store= /mrb163wwjc45hgrcjwmb6nxp8fgab3lk-xz-5.0.4/lib/:/gnu/store/f1fnh2sp1j32jysd= r2nw9z296iba6b5d-file-5.22/lib/:/gnu/store/l9ji7gc640j2r8c1c561iwcnqpcd585m= -gawk-4.1.1/lib/:/gnu/store/w7gjnx5rz64mssxndnryazlwlhflfd2j-binutils-2.25/= lib/:/gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib/:/gnu/store= /psmxs9gcr9l4arz7agmp94vm8fjwninv-glibc-utf8-locales-2.21/lib/:/gnu/store/f= c8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/lib/gcc/armv7l-unknown-linux-= gnueabihf/4.8.4/:/gnu/store/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/= lib/gcc/armv7l-unknown-linux-gnueabihf/4.8.4/../../../:/gnu/store/fbdjazgwy= 3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib >> COLLECT_GCC_OPTIONS=3D'-v' '-nostdlib' '-nostartfiles' '-shared' '-o' '/= tmp/nix-build-glibc-2.21.drv-0/build/elf/ld.so.new' '-march=3Darmv7-a' '-mf= loat-abi=3Dhard' '-mfpu=3Dvfpv3-d16' '-mthumb' '-mtls-dialect=3Dgnu' >> /gnu/store/qchkhdj4nn4aqs8rrbbyybrj2sarjs3j-gcc-4.8.4/libexec/gcc/armv7= l-unknown-linux-gnueabihf/4.8.4/collect2 --eh-frame-hdr -shared -dynamic-li= nker /gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib/ld-linux-ar= mhf.so.3 -X -m armelf_linux_eabi -o /tmp/nix-build-glibc-2.21.drv-0/build/e= lf/ld.so.new -L/gnu/store/84bsc47g2052allrmh4ph6xaqvp6f4cm-perl-5.16.1/lib = -L/gnu/store/lakz7x2m4vqvvfdasn5x95a91rkqqs3c-bzip2-1.0.6/lib -L/gnu/store/= mrb163wwjc45hgrcjwmb6nxp8fgab3lk-xz-5.0.4/lib -L/gnu/store/f1fnh2sp1j32jysd= r2nw9z296iba6b5d-file-5.22/lib -L/gnu/store/l9ji7gc640j2r8c1c561iwcnqpcd585= m-gawk-4.1.1/lib -L/gnu/store/w7gjnx5rz64mssxndnryazlwlhflfd2j-binutils-2.2= 5/lib -L/gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib -L/gnu/s= tore/psmxs9gcr9l4arz7agmp94vm8fjwninv-glibc-utf8-locales-2.21/lib -L/gnu/st= ore/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/lib/gcc/armv7l-unknown-l= inux-gnueabihf/4.8.4 -L/gnu/store/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.= 4-lib/lib/gcc/armv7l-unknown-linux-gnueabihf/4.8.4/../../.. -L/gnu/store/fb= djazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib -z combreloc -z relro --hash-= style=3Dboth -z defs /tmp/nix-build-glibc-2.21.drv-0/build/elf/librtld.os -= -version-script=3D/tmp/nix-build-glibc-2.21.drv-0/build/ld.map -soname=3Dld= -linux-armhf.so.3 -defsym=3D_begin=3D0 >> mhw@novena:/tmp/nix-build-glibc-2.21.drv-0/build/elf$ > > and I should add this sanity check: > > mhw@novena:/tmp/nix-build-glibc-2.21.drv-0/build/elf$ readelf -a ld.so.ne= w | grep RUNPATH > 0x0000001d (RUNPATH) Library runpath: [/gnu/store/fbd= jazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib] So there=E2=80=99s no explicit -rpath, yet it slips through. In that build directory, can you rm elf/ld*so* and then restart the build, but this time with: export GUIX_LD_WRAPPER_DEBUG=3Dyes TIA! Ludo=E2=80=99.