From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aI99K4ZWdGb8WAEA62LTzQ:P1 (envelope-from ) for ; Thu, 20 Jun 2024 16:19:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id aI99K4ZWdGb8WAEA62LTzQ (envelope-from ) for ; Thu, 20 Jun 2024 18:19:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=FI71bjs7; dmarc=pass (policy=none) header.from=gnu.org; 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=1718900358; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=fJ2k/+DOqo89OWpiuIZtmuc+sbF6bMOEll07ClGkHxM=; b=KKOx9WoLauPqBncMzYMTNVkKbbaoCQ3/4Wya00bmJhQMsgofomZ0rJrDY3aKqI6W+HQL+5 9adZHKTRKVczmGC86ahU+M2/vGzGgSS6nVJY9bn23XskNoFjn4OC4LTI758C97TllVAfW7 2i7L4EVC/uCt8sEdzJiHU5tT06Oi7hTMxG7IZaScmM7eLHXh4W7kEo3DeIV9JoxyxWKLv6 I+PMBAudCEeB27QOkA0L2t7YpBAVGDjwjJFZn85poGRkeFPwR8Dw0lz7muoHG2XiSjMkBb 37zMKvzhF630PX4aPUgR6/cX+SiELJxkUUf7by7C2EfL0VNQhYxHll0aXgdvLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718900358; a=rsa-sha256; cv=none; b=T1jemtnRhHqwH5E1TqDw7j2hfHWeiaPuzRmMOlwhk7H/N30jO3PUGU04zhBdSlyfUpIUVV qzEiIRxCuhbxPoSd10h/s0kl7MsZrpeogDAAv3s9beiXlSem+YeMo3jsroU2XWbS8DEPHU 8yP5usJAF4wutRQ7CRKOH5j6fEddQ1LZLW01cXe52Vbun3vae6lfFuQyd7iwfREzSzCulz 0c0jkSm9Jz9A3PHyBNnRU2VnLqqkkn3N2UJ3CYP31XTpTWMP7HPvfV9plP6/d76Ewi5HxO u9LghWB5vDEaP1uXPH8ttix5uD+UD7/bqBRNAp6NVvNU2WF0OyfjNZCofS2PcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=FI71bjs7; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 79698706E9 for ; Thu, 20 Jun 2024 18:19:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKKV2-0005uM-2H; Thu, 20 Jun 2024 12:19:00 -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 1sKKV0-0005uA-2n for bug-guix@gnu.org; Thu, 20 Jun 2024 12:18:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKKUz-0001ba-PB for bug-guix@gnu.org; Thu, 20 Jun 2024 12:18:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKKV3-0006Xj-LS for bug-guix@gnu.org; Thu, 20 Jun 2024 12:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64794: Guile 3.0.9 in guix shell container with emulated FHS throws ldconfig error @ a050897 Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 20 Jun 2024 16:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64794 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Rostislav Svoboda Cc: 64794@debbugs.gnu.org Received: via spool by 64794-submit@debbugs.gnu.org id=B64794.171890028625060 (code B ref 64794); Thu, 20 Jun 2024 16:19:01 +0000 Received: (at 64794) by debbugs.gnu.org; 20 Jun 2024 16:18:06 +0000 Received: from localhost ([127.0.0.1]:35127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKKUA-0006W7-BB for submit@debbugs.gnu.org; Thu, 20 Jun 2024 12:18:06 -0400 Received: from mx.kolabnow.com ([212.103.80.154]:42798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKKU7-0006Va-Jv for 64794@debbugs.gnu.org; Thu, 20 Jun 2024 12:18:04 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 29F8C20D1355; Thu, 20 Jun 2024 18:17:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:references:in-reply-to:subject:subject :from:from:received:received:received; s=dkim20240523; t= 1718900269; x=1720714670; bh=fJ2k/+DOqo89OWpiuIZtmuc+sbF6bMOEll0 7ClGkHxM=; b=FI71bjs7bLE2ww15z1cNTQxXLa84vxQuOUseF/wPlOSHcWVHJ+6 dikgiWmdyzfJ644E4WqLqpFHsqIEBUuHwBuhJzWZd/JGsgA1yBe1gJvgqS5UiQh9 cJMrpm7s7tWQvHgLUEv9nrcsqiWWZupy3xL1kmXBIg59V5edqQ1dzvsAjjRNlgTg 94DydHGT8DjOdRKdglvU7YpJOg5tu+cNZ9OXIdT08uAuD45KGuVcHzAHpu/oLQCk m00fBaI+kGaquf9yEsZXYa+zzBFe/v9VyODSMN3awB/+7YfpPg2kqREK9YluharM ZjE4Lm5hPa8fbuOObZ5GovJ398vI9gq/jSA== X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id ZPXYpBJN201y; Thu, 20 Jun 2024 18:17:49 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id 9554420D1352; Thu, 20 Jun 2024 18:17:48 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id 416E632A1B85; Thu, 20 Jun 2024 18:17:48 +0200 (CEST) In-Reply-To: (Rostislav Svoboda's message of "Thu, 20 Jun 2024 15:00:33 +0200") References: Date: Thu, 20 Jun 2024 13:17:44 -0300 Message-ID: <86r0cry4ev.fsf@kolabnow.com> 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: Thiago Jung Bauermann From: Thiago Jung Bauermann 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.86 X-Spam-Score: -3.86 X-Migadu-Queue-Id: 79698706E9 X-Migadu-Scanner: mx11.migadu.com X-TUID: dEgjhXJ5RA5x Hello, Rostislav Svoboda writes: > The warning appears also for guile@2.0 and later. guile@1.8 works fine: > > ``` > $ guix shell --emulate-fhs --container guile@1.8 > [env]$ exit > $ guix shell --emulate-fhs --container guile@2.0 > ldconfig: /lib/libguile-2.0.so.22.8.1-gdb.scm is not an ELF file - it > has the wrong magic bytes at the start. > > [env]$ > ``` The error is harmless. AFAIU ldconfig ignores the non-ELF file and compiles the ld cache with the ELF shared libraries. libguile-=E2=80=A6-gdb.scm is a GDB extension file=C2=B9 that GDB auto-load= s when debugging programs using libguile.so=C2=B2. From the beginning of said .scm file: ;;; Commentary: ;;; ;;; This file defines GDB extensions to pretty-print 'SCM' objects, and ;;; to walk Guile's virtual machine stack. ;;; ;;; This file is installed under a name that follows the convention that ;;; allows GDB to auto-load it anytime the user is debugging libguile ;;; (info "(gdb) objfile-gdbdotext file"). In distros using the Filesystem Hierarchy Standard, this file is installed in GDB's data directory instead of /lib, so ldconfig doesn't run into it. For example, in Debian/Ubuntu: $ dpkg -L guile-3.0-dev | grep gdb.scm /usr/share/gdb/auto-load/libguile-3.0.so.1.6.0-gdb.scm Unfortunately, in the case of Guix the auto-load directory is in GDB's own immutable installation directory so Guile can't put it there: $ gdb -q (gdb) show auto-load scripts-directory=20 List of directories from which to load auto-loaded scripts is $debugdir:$da= tadir/auto-load. (gdb) show data-directory=20 GDB's data directory is "/gnu/store/i6x19fvlb1ladc3hcg70hnkcq6i6x232-gdb-14= .2/share/gdb". One way to improve that would be to propose a patch to upstream GDB so that additional auto-load scripts directories could be specified via an environment variable. Then Guile and other packages that provided GDB extentions (such as libstdc++) could install them in their respective /gnu/store/=E2=80=A6-package/share/gdb/auto-load directories, and the Guix profile could set the GDB environment variable to point to them. --=20 Thiago =C2=B9 https://sourceware.org/gdb/current/onlinedocs/gdb.html/Guile.html =C2=B2 https://sourceware.org/gdb/current/onlinedocs/gdb.html/objfile_002dg= dbdotext-file.html