From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MH7zNepxV2etmgAAqHPOHw:P1 (envelope-from ) for ; Mon, 09 Dec 2024 22:40:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MH7zNepxV2etmgAAqHPOHw (envelope-from ) for ; Mon, 09 Dec 2024 23:40:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vC+Wuxhw; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Dy3sbXyh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733784042; a=rsa-sha256; cv=none; b=tsA3MrsJwHxPQEQ+E9PbLd7hpbGdoDFV+ECmO/FRZMaZLEK0n8uvRi3mQgc2B2XSVci43/ pmt0324GtbDqF76egnEJ3yBuo/MICesU2jtQEAiYbi285Lvdio+vEgascnb121IcFVT0nC nsLqxvH9y963AjqSd/h7WLVLJZwtWkTDj2FTIo5y7OlxRoP0W+KCvZaIhw4VZAPK+Yy8vE tenzqi4X6nE0eP6InMuiO+j1NJMZBoM4p2LYffF8PRVh/kmXUDOqpFvYOhhesuvJtmPrr/ TQAJXgF9HXDCtBeYm6OfeOr1x6ZHXcNqUHxVl+idXZHrZwsZz7qp35YKYe5t1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vC+Wuxhw; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Dy3sbXyh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733784042; 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: content-transfer-encoding:content-transfer-encoding:resent-to: 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=wtoVUOb4zdudL7R/88ybrwA+8PS4bAPMxZ6vjqDOlQc=; b=YEyOd/gIqy+A0aroqEpo3D9DcHXYsoqRJPkJYgMHOZn/1ScO92JJq0wS5WnULpEeiKs1y8 OhGgZcmqJ62Vl9+7sv7OPimpQCBOA9cAIW3rOqpKuBrIZK7t0ByeURVO2Wpzp7+duJ7X94 iiDIIu1MqPhqSs/64LgiiUIrBfrWNn2OCeoH33MdrXfH9fzOiokhUuaidHte5V5j6TcIpy 1lhlwkepw2KaCxx325FVk/8v6RW0JYNpz1oYb0vlqPTnxxRlG/PiiGXEh4PTNj1NPemLAR F8MK1eqd5nKl8MC9yvswenGbbu8PbGUk7hZmwRgsW5zxfYD+DFRZLINp9ey07w== 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 8B7A581B2A for ; Mon, 09 Dec 2024 23:40:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKm4q-0001Dv-Lr; Mon, 09 Dec 2024 17:18:04 -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 1tKm4p-0001Dc-9X for guix-patches@gnu.org; Mon, 09 Dec 2024 17:18:03 -0500 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 1tKm4p-0006y8-1F for guix-patches@gnu.org; Mon, 09 Dec 2024 17:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=wtoVUOb4zdudL7R/88ybrwA+8PS4bAPMxZ6vjqDOlQc=; b=vC+WuxhwytvxMENFadDH7WpJXqmPChXa9n+nEox5H276Kpaar6BpOJqv5D7K4nIOrVH1n+8vgcXtQ1KsYUBIwWaE7rqbsooE5y99v33HN/OjWGK0xOG2YYzGvDl+rFDdgt+M+xFVaqhW3uTqD/OtyIv46ugoAIl/OK2p3OMp6LYHOvjZtKppFvYI5yEITE+SF7MIhoFbFnodDcpCnzmia9pIBenyB3zlC2nOOs9rUhO9wqD+h3HVJPA6ve3zu1nWR2+R6SYe+dWz3VqMfd08RWkJdgMvGSx85OGO3fxKz0EWmBJQaK7PqXD05BKWOl0YhnPRhEvZAamA9CaaU8PmQw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKm4o-0004nB-Sv for guix-patches@gnu.org; Mon, 09 Dec 2024 17:18:02 -0500 Subject: bug#74677: [PATCH] nix/local.mk: fix -lgcrypt link on --as-needed toolchains Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 09 Dec 2024 22:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74677 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sergei Trofimovich Cc: 74677-done@debbugs.gnu.org Mail-Followup-To: 74677@debbugs.gnu.org, ludo@gnu.org, slyich@gmail.com Received: via spool by 74677-done@debbugs.gnu.org id=D74677.173378266218365 (code D ref 74677); Mon, 09 Dec 2024 22:18:02 +0000 Received: (at 74677-done) by debbugs.gnu.org; 9 Dec 2024 22:17:42 +0000 Received: from localhost ([127.0.0.1]:56062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKm4U-0004m9-1v for submit@debbugs.gnu.org; Mon, 09 Dec 2024 17:17:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKm4S-0004lo-Te for 74677-done@debbugs.gnu.org; Mon, 09 Dec 2024 17:17:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKm4N-0006tW-Ed; Mon, 09 Dec 2024 17:17:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=wtoVUOb4zdudL7R/88ybrwA+8PS4bAPMxZ6vjqDOlQc=; b=Dy3sbXyhIBHYUjfS4Fn1 RDXHSMkRdHqM5hC/5whReFxn7809AxAshx2Ql35MQ4lEDwNeUlNtsVmJ3r/qUGqIBKQfwh4GzgJm3 l1/nJcJUa/Rzf3rzoO1R1/ety+nuoBE6uVMzwBhNM5XUrYJQ7QM8S8MlTrDvJpKtErwNNLP4n7CVn PB3HqeWX0oQ+nbIYhr53xPIfoMAOE7scohUWys7HGnKa9OIJHPuM4mNp5m1YIE70YbfSJrsyXQRB5 cheq+3jbtKrwhT0s2GWKa10N//u7ASRJg2MwfM5NLeyLh5UcxXUg7whPKnkCygeGMO+7EgotKPmVA pLX56Hs1CJRMbQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <20241203211515.1620700-1-slyich@gmail.com> (Sergei Trofimovich's message of "Tue, 3 Dec 2024 21:15:15 +0000") References: <20241203211515.1620700-1-slyich@gmail.com> Date: Mon, 09 Dec 2024 23:17:31 +0100 Message-ID: <871pyglcw4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8B7A581B2A X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.56 X-Spam-Score: -8.56 X-TUID: RHpAiNN9ood7 Hi Sergei, Sergei Trofimovich skribis: > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D8a7bd211d21f06c12= 34fbb82bb905d202d58f598 > introduced a build regression on Gentoo as: > > x86_64-pc-linux-gnu-g++ -Wall -std=3Dc++11 -O2 -pipe -Wl,-O1 -Wl,--= as-needed -Wl,-z,pack-relative-relocs -Wl,--hash-style=3Dgnu -lgcrypt -o gu= ix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o nix/nix-daemon/guix_daemo= n-guix-daemon.o libstore.a libutil.a libformat.a -lz -lsqlite3 -lbz2 > /usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/b= in/ld: nix/nix-daemon/guix_daemon-guix-daemon.o: in function `main': > guix-daemon.cc:(.text.startup+0x62): undefined reference to `gcry_check_v= ersion' > > This happens because: > - Gentoo linker is using --Wl,-as-needed by default > - -lgcrypt is passed before actual use of it's symbols in `guix-daemon.cc` I pushed as dcaccc8b722cee279c00bb321baa48ae73563931 the patch Do=C4=9Fan =C3=87e=C3=A7en submitted to fix this regression and more: https://issues.guix.gnu.org/74686 Thanks, Ludo=E2=80=99.