From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yN09OseIPmRo2gAASxT56A (envelope-from ) for ; Tue, 18 Apr 2023 14:10:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WE3pOceIPmSFAgAAauVa8A (envelope-from ) for ; Tue, 18 Apr 2023 14:10:47 +0200 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 C6B5E2B25 for ; Tue, 18 Apr 2023 14:10:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pokA3-0007Kx-Iq; Tue, 18 Apr 2023 08:10:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pok9s-0007Jm-KX for bug-guix@gnu.org; Tue, 18 Apr 2023 08:10:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pok9p-0007iZ-WD for bug-guix@gnu.org; Tue, 18 Apr 2023 08:10:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pok9p-0007MR-KE for bug-guix@gnu.org; Tue, 18 Apr 2023 08:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62253: Fakechroot execution engine =?UTF-8?Q?doesn=E2=80=99t?= outlive =?UTF-8?Q?=E2=80=98exec=E2=80=99?= calls Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Apr 2023 12:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62253 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 62253@debbugs.gnu.org Received: via spool by 62253-submit@debbugs.gnu.org id=B62253.168181977728243 (code B ref 62253); Tue, 18 Apr 2023 12:10:01 +0000 Received: (at 62253) by debbugs.gnu.org; 18 Apr 2023 12:09:37 +0000 Received: from localhost ([127.0.0.1]:58055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pok9Q-0007LS-K4 for submit@debbugs.gnu.org; Tue, 18 Apr 2023 08:09:36 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:8262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pok9O-0007LB-Ka for 62253@debbugs.gnu.org; Tue, 18 Apr 2023 08:09:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:references:date:in-reply-to:message-id: mime-version:content-transfer-encoding; bh=YNbxTebrj84jjEWPJFexbC5FpRSqaHW8oiPzCFnLYMw=; b=bgkoy7eUD+sltRuT/sMixr9pnZ7KktcHOcMr8ufN/sFzQya74YlHhFlc /rApai9hbJXe+iVpoFGeWeNzncKZnREHMS8RvbFuXFzGzfqznwe5Z98z2 NlWpSOCtn0FWZai4lk9LXTxUCcLzIKIDe7RxauV7aSpkHiEslKqNXurHv Q=; X-IronPort-AV: E=Sophos;i="5.99,207,1677538800"; d="scan'208";a="53654960" Received: from unknown (HELO ribbon) ([193.50.110.118]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2023 14:09:28 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877cveuvov.fsf@inria.fr> Date: Tue, 18 Apr 2023 14:09:27 +0200 In-Reply-To: <877cveuvov.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 18 Mar 2023 12:48:32 +0100") Message-ID: <87wn29wfwo.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681819847; a=rsa-sha256; cv=none; b=bfqRS1F96rLq+YqGpK6BYeKRlRdxFDOCziFI4MQ42SetthKQzo4pfHxRXu0tYoWomJ33L5 9/dqGnbCVyC64xMkyC7Qg+FlTkTMV8LrlWzbsZ7wYeuq1nZWYANYtv2XrgUIsEPBJr6zZD b7zfemPzYXlbENtzx2wZOyhKcGiRFO8mpWGkf1wlbjaMug4e/8eSVhXhV/yJ537c3Ukmy8 oGIvHZ3bI4eiRvCIT4AP40tRZ6FjtpZF1+Ws4QZ52VxyiH8ktvu39MpPPJAQBxiuLKCxe4 zgZUxAVmqOIHWTqpUS3/7uBSsTx+0BqE+WgdiFGpWN9dVJXU1E1X0XJ8420KFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=bgkoy7eU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681819847; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YNbxTebrj84jjEWPJFexbC5FpRSqaHW8oiPzCFnLYMw=; b=NHmIWyr+icNPKTh7QB+zKONxHUQTgejB6Vm9cvWJ75dgxYDR5x0iIUk2by1Q23Xrom7SJj 99+Ib3pVSIjGBRlPIO41iShy2M5xasAsBaNlv0vq8HG2le4uD1cLbcQ1Q8PIhSyK1ZqXk+ TAtpV1V52xqmmgHmp5ImRCVwAO5WG/5yBL5/GWtvXdfA5ugKyle/fF5ZY8FFND7ncvKFCP rjN4v3f9llvGYY3c7IlemCnw77zMI2w9uXqTi0mld8yNkD2FTIyc6qHoXZhr5IIrKk/6ng oQGZW31gyYWE7bexSE4HnDH9e+rcZENJygdqKGgB2XfHGH6lykTde1X9Pukf+Q== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.61 X-Spam-Score: -0.61 X-Migadu-Queue-Id: C6B5E2B25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=bgkoy7eU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-TUID: uTy3UzJ3Fr1b Ludovic Court=C3=A8s skribis: > In this case, adding =E2=80=98coreutils=E2=80=99 to the profile (on the = =E2=80=98guix pack=E2=80=99 > command line) would give us wrapped binaries, and the problem is solved. > But in other cases, it=E2=80=99s not that simple. For instance, libmpi.s= o from > Open=C2=A0MPI tries to exec one its programs, using its absolute file nam= e: > > $ unshare -m -U -r -f sh -c 'mount -t tmpfs none /gnu; GUIX_EXECUTION_ENG= INE=3Dfakechroot /tmp/fakechroot-test/bin/IMB-MPI1' > -------------------------------------------------------------------------- > The singleton application was not able to find the executable "orted" in > your PATH or in the directory where Open MPI/OpenRTE was initially instal= led, > and therefore cannot continue. > > For reference, we tried the following command: > > /gnu/store/c7g9qalmbz4a94hwzk1v1cbq7n5m8plq-openmpi-4.1.4/bin/orted > > and got the error No such file or directory. In the case of Open=C2=A0MPI as shown above, there=E2=80=99s actually an ea= sy fix: telling Open=C2=A0MPI where to look for =E2=80=98orted=E2=80=99. Assuming you created a pack with: guix pack -RR openmpi intel-mpi-benchmarks bash-minimal -S /bin=3Dbin You can run code extracted from the tarball like this: --8<---------------cut here---------------start------------->8--- export GUIX_EXECUTION_ENGINE=3Dperformance salloc -N2 ./bin/mpirun -np 2 --launch-agent ./bin/orted \ --map-by node -x GUIX_EXECUTION_ENGINE=3Dperformance -- \ ./bin/IMB-MPI1 PingPong --8<---------------cut here---------------end--------------->8--- The =E2=80=98--launch-agent=E2=80=99 trick allows us to work around the fac= t that exec=E2=80=99d code escapes the fakechroot environment. I=E2=80=99m closing this bug as =E2=80=9Cwontfix=E2=80=9D. Ludo=E2=80=99.