From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OKxaEWK5ZF+jNAAA0tVLHw (envelope-from ) for ; Fri, 18 Sep 2020 13:42:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qLUhDWK5ZF/bOgAAbx9fmQ (envelope-from ) for ; Fri, 18 Sep 2020 13:42:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5C2B940651 for ; Fri, 18 Sep 2020 13:42:57 +0000 (UTC) Received: from localhost ([::1]:55880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJGfA-0003jz-K9 for larch@yhetil.org; Fri, 18 Sep 2020 09:42:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJGRi-0007K8-4V for bug-guix@gnu.org; Fri, 18 Sep 2020 09:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJGRh-0002S2-RQ for bug-guix@gnu.org; Fri, 18 Sep 2020 09:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJGRh-0000ny-OQ for bug-guix@gnu.org; Fri, 18 Sep 2020 09:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43491: Fakechroot execution engine can fail to find libraries Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 18 Sep 2020 13:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43491 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43491@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16004357113051 (code B ref -1); Fri, 18 Sep 2020 13:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2020 13:28:31 +0000 Received: from localhost ([127.0.0.1]:41309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGRC-0000n9-HZ for submit@debbugs.gnu.org; Fri, 18 Sep 2020 09:28:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:47170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJGRA-0000mz-GE for submit@debbugs.gnu.org; Fri, 18 Sep 2020 09:28:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJGR9-00075o-Oi for bug-guix@gnu.org; Fri, 18 Sep 2020 09:28:28 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:49677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJGR4-0002NM-7i for bug-guix@gnu.org; Fri, 18 Sep 2020 09:28:27 -0400 X-IronPort-AV: E=Sophos;i="5.77,274,1596492000"; d="scan'208";a="468443874" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 15:28:18 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 18 Sep 2020 15:28:18 +0200 Message-ID: <87mu1nw6x9.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/18 08:00:04 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Fri, 18 Sep 2020 09:40:57 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: CxOM7twZn/+n Using the =E2=80=98fakechroot=E2=80=99 execution engine of =E2=80=98guix pa= ck -RR=E2=80=99, I found a case where an executable=E2=80=99s NEEDED library is not found. --8<---------------cut here---------------start------------->8--- $ guix describe Generacio 159 Sep 18 2020 08:55:27 (nuna) guix 98b89f4 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 98b89f432103b66efacee0bcba41a94148b8e870 $ mkdir /tmp/fakechroot-test $ (cd /tmp/fakechroot-test; tar xf $(guix pack -RR openmpi -S /bin=3Dbin -v= 0)) $ unshare -m -U -r -f sh -c 'mount -t tmpfs none /gnu; echo /gnu/*; GUIX_EX= ECUTION_ENGINE=3Dfakechroot /tmp/fakechroot-test/bin/orterun' /gnu/* /tmp/fakechroot-test/gnu/store/rm1d9z3z3iwsv779vqlg7q5z7pdk5k12-openmpi-4.0= .5/bin//orterun: error while loading shared libraries: libevent_core-2.1.so= .7: cannot open shared object file: No such file or directory --8<---------------cut here---------------end--------------->8--- That library is in the RUNPATH of the original executable though: --8<---------------cut here---------------start------------->8--- $ objdump -x $(guix build openmpi)/bin/orterun | grep PATH objdump: Advertiment: '/gnu/store/3ign6b3i5ambjgqqiyman4mqw0wljlvl-openmpi-= 4.0.5-debug' =C3=A9s un directori RUNPATH /gnu/store/rm1d9z3z3iwsv779vqlg7q5z7pdk5k12-openmpi-= 4.0.5/lib:/gnu/store/xk22b03jb0c0b6vkadqbkr9d4556rwxh-hwloc-2.2.0-lib/lib:/= gnu/store/i1smdd4r44c5wwi03g40dvc6wfnqgdwq-libpciaccess-0.16/lib:/gnu/store= /c7wscymmk379v16invi8m68f6v5c8gsv-libevent-2.1.11/lib:/gnu/store/fa6wj5bxkj= 5ll1d7292a70knmyl7a0cr-glibc-2.31/lib:/gnu/store/01b4w3m6mp55y531kyi1g8shh7= 22kwqm-gcc-7.5.0-lib/lib:/gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1= .2.11/lib:/gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib/gcc= /x86_64-unknown-linux-gnu/7.5.0/../../.. $ objdump -x $(guix build openmpi)/bin/orterun | grep NEED.*libevent objdump: Advertiment: '/gnu/store/3ign6b3i5ambjgqqiyman4mqw0wljlvl-openmpi-= 4.0.5-debug' =C3=A9s un directori NEEDED libevent_core-2.1.so.7 NEEDED libevent_pthreads-2.1.so.7 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.