From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wD/aG/rOZmLJlQAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 18:40:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id l/YjG/rOZmIxbwAAG6o9tA (envelope-from ) for ; Mon, 25 Apr 2022 18:40:26 +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 C48C840E1 for ; Mon, 25 Apr 2022 18:40:25 +0200 (CEST) Received: from localhost ([::1]:57440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nj1lA-0003J4-OG for larch@yhetil.org; Mon, 25 Apr 2022 12:40:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nj1jt-0003E9-Mp for bug-guix@gnu.org; Mon, 25 Apr 2022 12:39:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nj1jq-000247-BG for bug-guix@gnu.org; Mon, 25 Apr 2022 12:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nj1jq-0008Fx-6O for bug-guix@gnu.org; Mon, 25 Apr 2022 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54728: [PATCH 2/2] gnu: valgrind: fix ld.so symbols not found Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 Apr 2022 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 54728-submit@debbugs.gnu.org id=B54728.165090469231679 (code B ref 54728); Mon, 25 Apr 2022 16:39:02 +0000 Received: (at 54728) by debbugs.gnu.org; 25 Apr 2022 16:38:12 +0000 Received: from localhost ([127.0.0.1]:35957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nj1j1-0008Et-RW for submit@debbugs.gnu.org; Mon, 25 Apr 2022 12:38:12 -0400 Received: from cyberdimension.org ([80.67.179.20]:60756 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nj1iz-0008Ej-1K for 54728@debbugs.gnu.org; Mon, 25 Apr 2022 12:38:09 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 3d49c523; Mon, 25 Apr 2022 16:32:06 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id a4c484d3; Mon, 25 Apr 2022 16:32:06 +0000 (UTC) Date: Mon, 25 Apr 2022 18:39:09 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20220425183909.0cbc7cd0@primarylaptop.localdomain> In-Reply-To: <87czhi48s2.fsf@gnu.org> References: <20220415012611.6edbf92c@primarylaptop.localdomain> <20220414233012.13243-1-GNUtoo@cyberdimension.org> <20220414233012.13243-2-GNUtoo@cyberdimension.org> <87czhi48s2.fsf@gnu.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/TySRXghSpvskmfmISUZfp3m"; protocol="application/pgp-signature"; micalg=pgp-sha256 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: , Cc: 54728@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650904826; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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; bh=QB66AxFiYasya3MR+DjCFldkXFzVdEJ3WbM8E3MW5Ls=; b=Kydk04EbOShuf8ecJjNJ2Wkqk6HdnCssB3kmsvTcqwuL6aUc3EMCfEabbfO2bPYXxqUJYP /UsnDPkrRTbz/A0YVWxuOfQMxJ5oDklvST5iuUpXH7dwklPYL8LqsIWHRcHo5IstfKYvtz CCODTczGvznJsjr4BA8/BJ5O6c5jTe1Ew/CRUoFlm1YBdeTcY82mLxO5bu8iCeVqQqgxAO HaTT9Yg/rIj5FbTMpqM4wE4Q7tU6WIlhVA08F+YpidDEsafp3L++BEd6ZycpJeRl5751qd BdFXCBPHJFL571B5XofsAUmVtDIY1kEZhV+IhumeXPzMtfgrkcDi0N5CF0/lNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650904826; a=rsa-sha256; cv=none; b=LzQlPtisLbv7zZFWTcofaFMRBr1DlcaYJlvkFZIRG3VTo/urcqfB8SMlZ0+BfBX19HyOYT 8/69H23+F0LfTgMI7V5KgLxW7LNDF1GviEwXbPsw+BxJYoa34ph1wxmxFi67Q9HFCcazV+ CjBffLwSkLtIzp9lRKgTFxRt+F1rWZc/19E821daDn1HL+4DK+BwdkFekspZfXfhKd1QPg IIn4+VqMRD0YL0Q444w5EsYkj7VcvQC3CxxpvfOgeh6tA3ZeHlLrTvTXb6zGiSyjaPkDSk evS1wkoE2W3XM36l7pzgftRZk9MhjXL4lal6zin4OyHMfXc8ULf3uTgNgaQE8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Migadu-Spam-Score: -5.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Migadu-Queue-Id: C48C840E1 X-Spam-Score: -5.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: K0CXQ37Y8Hzu --Sig_/TySRXghSpvskmfmISUZfp3m Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 15 Apr 2022 18:21:33 +0200 Ludovic Court=C3=A8s wrote: > Hello! Hi, [...] > I find this patch-as-code snippet rather difficult to follow; it might > also break easily if minor things change in those C files. >=20 > How about making it an actual patch? In the patch, you=E2=80=99d have > placeholders for the store file names, like @LIBC_DEBUG_DIRECTORY@; > the phase would replace those placeholders with =E2=80=98substitute*=E2= =80=99. Thanks, I've done that and now the code is much easier to read. > Rather: ("libc:debug" ,(canonical-package glibc) "debug"). The issue with that is that importing "gnu packages commencement" fails with the following error: > $ ./pre-inst-env guix build hello > error: tcc: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: googletest: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: bzip2: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: binutils: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: gcc-4.9: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: xz: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: gnu-make: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: binutils: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: perl: unbound variable > hint: Did you forget a `use-modules' form? >=20 > error: coreutils: unbound variable > hint: Did you forget a `use-modules' form? >=20 > Throw to key `unbound-variable' with args `("resolve-interface" "no > binding `~A' in module ~A" (python (gnu packages python)) #f)'. > Backtrace: In guix/store.scm: > 658:37 19 (thunk) > 1320:8 18 (call-with-build-handler # > ?) In guix/scripts/build.scm: > 499:2 17 (_) > In srfi/srfi-1.scm: > 673:15 16 (append-map _ _ . _) > 586:17 15 (map1 ((argument . "hello") (build-mode . 0) (# . #t) ?)) > In guix/scripts/build.scm: > 519:31 14 (_ _) > In gnu/packages.scm: > 480:2 13 (%find-package "hello" "hello" #f) > 365:6 12 (find-best-packages-by-name _ _) > 295:56 11 (_ "hello" _) > In unknown file: > 10 (force # gnu/packages.sc?>) In gnu/packages.scm: > 242:33 9 (fold-packages # > ?) In guix/discovery.scm: > 159:11 8 (all-modules _ #:warn _) > In srfi/srfi-1.scm: > 460:18 7 (fold # > ?) In guix/discovery.scm: > 149:19 6 (_ _ ()) > 116:5 5 (scheme-modules _ _ #:warn _) > In srfi/srfi-1.scm: > 691:23 4 (filter-map # . > #) In guix/discovery.scm: > 124:24 3 (_ . _) > In guix/ui.scm: > 319:2 2 (report-unbound-variable-error _ #:frame _) > In ice-9/boot-9.scm: > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) >=20 > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > Throw to key `match-error' with args `("match" "no matching pattern" > (unbound-variable "resolve-interface" "no binding `~A' in module ~A" > (python (gnu packages python)) #f))'. So I need to not import gnu packages commencement globally. I can also do something like that instead:=20 > ("glibc:debug" > ,((@@ (gnu packages commencement) canonical-package) > (@@ (gnu packages commencement) glibc)) "debug") Which form is the best? Beside the glibc:debug input, the new patch is ready to be sent. I also successfully managed to run tests that use valgrind transparently (by using valgrind/interactive in the native inputs). Denis. --Sig_/TySRXghSpvskmfmISUZfp3m Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmJmzq4ACgkQX138wUF3 4mPpeg/+LA9MHXMp7RlYwjHeAg9zMWOdUiLknWq6BXJ632CwUeXskeL9x0x0Baki qwRv3wc5QfK9CipBTRLkX8065jPG4kP8IYLuEUKrEBo+00HKmDBPXC+cAw7YGk2H +U69V1DWpDPThE6vwy0GOmFYXNUo2aMhnSpvV9jBYTKc4U/zsMueB/blp238Bol6 NzC+pgKHEywGdcKcxzoTN7/FQHco/BcmrZfO0VgfzWhcmNBNZOZetFZDgL8A5lMJ iEFUTXXUhGl6W3Xp5PmjAwBVSUNIYS7lFUqlU3Wp/qV15HmYo+rrApht7e/pEv3k 752A47lO9JJMGHlvfFARBKyXucUSalw25j0eZDElnQMj8aFsnRE/zFlMGLBqFfl2 uIoh1G/kEQV6oJgdPF08sP8nIAOhYWOuv8vj2Xjx/ix/86qeBjQnKDIjjV2nyZJA mI3+6ZEZfmU9eHe9Z7u1LEgJZ9cVd504Hwsiy+OpKYoPkBG3JpRH0/YUr6uh4T7V XYpcqKv1xD99hUhbOlOJkC5OszEOzrD1swCn+GzU0juLg2zbFMnVPGbSaWqTgfaA Z74EP3XijcHWOfSJi4AKJU36n3vj8LnrAjekFHDMWBzBsPRPFfiubc9UCJ4g31Rp +dBQa1IrT7desPpvzUauuUfvIr4bBczELM2IsPd2kWp1CapMklk= =Y/3V -----END PGP SIGNATURE----- --Sig_/TySRXghSpvskmfmISUZfp3m--