From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id INFYBo8/pWPyhAAAbAwnHQ (envelope-from ) for ; Fri, 23 Dec 2022 06:41:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AFGKBo8/pWODZwAA9RJhRA (envelope-from ) for ; Fri, 23 Dec 2022 06:41:35 +0100 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 81D71B157 for ; Fri, 23 Dec 2022 06:41:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8any-0005G0-MZ; Fri, 23 Dec 2022 00:41:16 -0500 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 1p8ant-0005Fj-7f for bug-guix@gnu.org; Fri, 23 Dec 2022 00:41:10 -0500 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 1p8anm-00008G-Nw for bug-guix@gnu.org; Fri, 23 Dec 2022 00:41:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8anm-0002ns-DX for bug-guix@gnu.org; Fri, 23 Dec 2022 00:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59855: Guix Shell with FHS Feedback: lib/tls/x86_64/x86_64? References: In-Reply-To: Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Dec 2022 05:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59855 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marek =?UTF-8?Q?Pa=C5=9Bnikowski?= , 59855@debbugs.gnu.org Received: via spool by 59855-submit@debbugs.gnu.org id=B59855.167177400610748 (code B ref 59855); Fri, 23 Dec 2022 05:41:02 +0000 Received: (at 59855) by debbugs.gnu.org; 23 Dec 2022 05:40:06 +0000 Received: from localhost ([127.0.0.1]:36626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8ams-0002nI-80 for submit@debbugs.gnu.org; Fri, 23 Dec 2022 00:40:06 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]:54993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8amq-0002mk-1j for 59855@debbugs.gnu.org; Fri, 23 Dec 2022 00:40:05 -0500 Date: Fri, 23 Dec 2022 05:39:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1671773997; x=1672033197; bh=IsTARky4SZtpaSkl7yzUzAxQHWUFPMOcXluF23+K+a8=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=vF8kmnxREEMVdi/l50oJIagsrjOp058F9HwtbN5jR6+BrfRRHbPQprrQ5m5t6xM5q D3vlov25Swi5FGfYbSpXghsUM0g2Xua7TcuoX84rXHU+3CGKKYSWT+LRncwhdKrQ1E EThbd2n1RgR3Pda3Y60UKbUnzECrtQrvsGs5QgfK/z9Ebfwgi/Bab0K5oBDVYbQ5aS BMgk6Fvbs5pxDpWsuP1YPoUtKffDJIEtjbaQBigI6XblVkM0IjjkhNigkyd78Q7sxS Ip/SBQHCXKZE/GY/4MbgIOpJPhuhnYXuZ0U5UBlvhNf21nGuzJ5EuJIf5GIFwotwDT hdczbLlFg5LkA== Message-ID: <87v8m2k7a8.fsf@protonmail.com> Feedback-ID: 7805494:user:proton 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: , Reply-to: John Kehayias From: John Kehayias via Bug reports for GNU Guix 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671774094; h=from:from:sender:sender:reply-to: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=IsTARky4SZtpaSkl7yzUzAxQHWUFPMOcXluF23+K+a8=; b=Gfwf9DIIP8bFk3oAjE2EhkslazM/oZchC8/RcncSBkS3718cGr6oXrgA+kSFyC8WB4nXHL vK0ElNEa4dNjsWr0UmHhZaFBfadRta00pxGspBtIGyZfKvMKfDZA0ikj7SWhnD3PFe9pHY SIGc1VFvitH2Z+jeUtm8C5K1L41AladdMrbrCRqtnEsgn6LhNFq/A5hVQLbHjL9mzZyWH+ arP795yTNwBdV9d6wUlr0eoIngkLwSXqS3AV5o/GNhbsaD65VsySqDsawUP+JGoZnFYfxH TFTD+lxN4uvNwDyal5VEg6VIrWY5uwlrWG/JCFSE6bO9geotx9na+gqVeqYSyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=vF8kmnxR; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671774094; a=rsa-sha256; cv=none; b=QwzBw92h0rbmFFkuOVWZSaJV61S/Sb2MpfSCW9W4U13wY54RCsFRRNqAlPc7KPZ9shamv1 1btfoRdpat829vd6YTEXOmnrpmfQsaGU3InaAu0qzbzKSSHdBt0oe8jisjSoegZbfQRX5E aye1pc8pGRCu2FO8ZBO0aWagM/u9Utzz95DAKv3NQedWMghdE9NsU2QX0F8QM9aM5WJh1y klBnVan/qroCLD/iy1gkzlWW/NoKOfSAdd+xNDDGxPrbIyz3d1Rime921ZtAkiRxYhuFK3 Um7XOgPtT0T5VGNb9I4SMaoTLTCNjQFS688jEcljbasahaHcl8+KPUNWwnWCqA== X-Spam-Score: -1.51 X-Migadu-Queue-Id: 81D71B157 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=vF8kmnxR; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.51 X-TUID: vLVB6ETCf2se On Tue, Dec 06, 2022 at 09:07 AM, Marek Pa=C5=9Bnikowski wrote: Hello! (resending as it seems debbugs in Emacs doesn't automatically add the bug number email in the To/CC list.) > I recently started attempting to execute an AppImage with > guix shell --container --emulate-fhs . Great! You may want to see this recent mailing list thread and draft blog post which also covers exactly this in an example: specifically: https://lists.gnu.org/r/guix-devel/2022-12/msg00156.html and: https://issues.guix.gnu.org/60112 > I found a workflow, where I set LD_LIBRARY_PATH=3D$LIBRARY_PATH > and trace the executable with strace -ffZ ./Program.AppImage . In the FHS container you shouldn't need to set LD_LIBRARY_PATH. There was a bug in the first weeks after it was merged (where this would work around it), but assuming you have updated somewhat recently this shouldn't be needed in genera. > Its concept is that I want to turn each failing call to a successful > one, until the program runs flawlessly. I think this way lies madness. There will always be a ton of failing calls, by nature of how things work. In particular, if you haven't see this blog post, which covers exactly this (library loading), it was enlightening for me at least: https://guix.gnu.org/blog/2021/taming-the-stat-storm-with-a-loader-cache/ > I program as a hobby, and have no way of knowing if any of the > trace calls can be safely ignored. > > I would like to encourage development of such an implementation, > where strace -ffZ output is reduced as much as possible by default. But in general I agree, I also use strace to find out what is breaking. Often you want to see the last set of calls, but not always. > Here is the head of the current trace I am stuck at: > >> access("/etc/ld.so.preload", R_OK) =3D -1 ENOENT (No such file >> or directory) >> >> openat(AT_FDCWD, "/gnu/store/c8ndz685xbqm29r9zwlwsbjqj4ylh4m4- >> profile/lib/tls/x86_64/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) =3D >> -1 ENOENT (No such file or directory) > > The second line is the interesting one. Yes, the first one should be ignored as far as I know and is not important. The second one could be a failure, if that is where it stops looking for libdl and errors out. So a more complete log, or at least the end where an actual failure happens, would be helpful. As well as the exact command you are running and the AppImage (if it is free software, of course) would be good. Usually you'll see lots of these ENOENT errors until it finds it in one of the search paths, or else an actual error that the library could not be found and loaded. > According to an ancient post on the Linux Questions forum[1], This link didn't show for me. > $PATH/lib/tls is the directory for glibc with thread support (NPTL). > I do not know if the glibc in Guix has the thread support or not. > However, it is the next two subdirectories that baffle me. > x86_64/x86_64? I have never seen anything like this. > I thought, that maybe having a tls->. link in the lib directory > would suppress the failure, but lib also does not have > an x86_64 directory. > > I have spent a couple of hours chasing the libdl libry, > only to realise that it is supplied by glibc, and it is > the AppImage program trying to reach it in a different place. > I strongly believe that solving this mode of failure will save > countless hours of futile struggle for future users of Guix Shell. > For the same purpose, the first error can be permanently silenced > by creating an empty file at /etc/ld.so.preload . I'm not certain you are actually failing at libdl. The FHS container will show this library in /lib and in the ld cache, which should cover just about everything trying to find it. More details would be helpful. Hope this helps in the meantime! John