From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yPv/BL0MVGQaQAEASxT56A (envelope-from ) for ; Thu, 04 May 2023 21:51:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oKwwBb0MVGTgWQEAauVa8A (envelope-from ) for ; Thu, 04 May 2023 21:51:25 +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 7D866244EE for ; Thu, 4 May 2023 21:51:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pueyn-0005PI-Nk; Thu, 04 May 2023 15:51:05 -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 1pueyk-0005NW-T4 for bug-guix@gnu.org; Thu, 04 May 2023 15:51:02 -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 1pueyk-000601-Ks for bug-guix@gnu.org; Thu, 04 May 2023 15:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pueyk-0007RG-3n for bug-guix@gnu.org; Thu, 04 May 2023 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63258: [PATCH] gnu: gcc-toolchain: Add empty librt.a. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 May 2023 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63258 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: mekeor@posteo.de, 63258@debbugs.gnu.org Cc: Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: Mekeor Melire , bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168322985528545 (code B ref -1); Thu, 04 May 2023 19:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 May 2023 19:50:55 +0000 Received: from localhost ([127.0.0.1]:52117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pueyc-0007QI-OD for submit@debbugs.gnu.org; Thu, 04 May 2023 15:50:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:59326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pueyb-0007Pw-Gp for submit@debbugs.gnu.org; Thu, 04 May 2023 15:50:53 -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 1pueyR-0005Me-LH for bug-guix@gnu.org; Thu, 04 May 2023 15:50:45 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pueyP-00051a-Nk; Thu, 04 May 2023 15:50:43 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 3AFE1184F2A; Thu, 4 May 2023 19:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1683229838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RewN7oxaBDWTlt1ICOcwieBuxwi0a1ltxAjFd6uoQgo=; b=J5il2brJ5BrOkx+Q+dVNKNxYkQazyFHiOdrJ/sA9f8aBlFMDkxViAeVMKimCpkepRhmLnA yeoVPmzwMwoWg+E1Kl+6nYVdSlhNLJHUZ+HChyW1Bkt0VDiutJ8Q0PpfQvy5mlO/FclifW qVD9apUV1EyKvoDJTgOyu7Da3C1i9VgIYfupuGHAXwVqkMReRKmqN5QDbrcbje2ii6v6Qe SEne6igFzCd/nsRDLKa1aSwgr2H/EdreaC+wQ6EZdbpIKoBV/jHpONfNZ5MMT33pa9tFu+ 0dOnD6gJDkqJv8oUQmjjP9KHOcLbvoFOpjRvVJvp/+YkTWRdvqLHAAzruvaLdQ== Date: Thu, 4 May 2023 21:50:37 +0200 Message-Id: In-Reply-To: <87ttwscuow.fsf@posteo.de> References: <87ttwscuow.fsf@posteo.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Josselin Poiret From: Josselin Poiret 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-Seal: i=1; s=key1; d=yhetil.org; t=1683229884; a=rsa-sha256; cv=none; b=tQXFrq54pFvmbvAuI/7sQhpgYDvbVvAXGI1bWp2vTaCyXrxjqki/6Ij28GMWjYYg1SMtdL GmsAYBQqXE39/PYe/Ogh155XdJwqsLEsOBUgUu8+qZfT9MBb2N8sxxI4oeDsrFJzn+vg9b dSxZbXS83c0DpZOcBJ2y+9gS2ckuHj2zQc0meID0tpfWaJXgEzaeVBzJrss90iKPeBvt/o /we8JhzciOIMDWekWCMxBfNS8E8kSSPgNFZpZFYIU09GVeR6ffC8lLl71mBVCUFsPe9Y5k +nQHe4lhOzoedtB0tNGHL19ll5LHTiaZOgBt3LLnY9cCTuecoFXgb9a/L2pvtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=J5il2brJ; 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=1683229884; 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-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=RewN7oxaBDWTlt1ICOcwieBuxwi0a1ltxAjFd6uoQgo=; b=YKJmPATqyheMnvMWFjH45WEvTWfVTbMDOeKyBNQkRy9ye7K4kSKWbpgaq3B24PaIxyhd+2 gtk00wiCfOCQJV//Rg0VcbjKAymuVeV8FYyYKoxozoE6C8a2qtEIxELpXbDVjorvU08+fe UKyXX9mJopTtvve5MtlHt5x1SzD0S5AGM751wV5kY4+kDuXZV+uBh0UpYrIyB9pTqfUvFc Pru4aXsDlJEc9lQzybUcfeInJdT02oPXJ4sLMnbSklx14pziTan+WpPKc3SNNbRErKOSb/ 0WyTyh/ozt4WqDVZXwec8jQ4VPxGCp2fcNoZ9mzScUZ4l7WSyiEyOjG9myG7Iw== X-Migadu-Spam-Score: -2.70 X-Spam-Score: -2.70 X-Migadu-Queue-Id: 7D866244EE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=J5il2brJ; 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" X-TUID: J1bNCzc8Mnk/ From: Josselin Poiret * gnu/packages/commencememnt.scm (make-gcc-toolchain): Add empty librt.a. * gnu/packages/base.scm (gcc): Add a warning regarding the missing librt.a. --- Hi, This patch should be enough for -lrt to work with gcc-toolchain. This doesn't fix the underlying issue for the gcc package though, as it would incur a world rebuild. Best, Josselin gnu/packages/base.scm | 4 ++++ gnu/packages/commencement.scm | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 6911ea78be..4350fd4041 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -945,6 +945,10 @@ (define-public glibc ;; library is empty by some criterion (such as their file ;; size equaling eight bytes) rather than hardcoding them ;; by name. + + ;; XXX: We forgot librt.a for the current version! In + ;; the meantime, gcc-toolchain provides it, but remove + ;; that fix once librt.a is added here. (define empty-static-libraries '("libpthread.a" "libdl.a" "libutil.a" "libanl.a")) (define (empty-static-library? file) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 25e96b1aa6..26d5eb3819 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -3452,6 +3452,13 @@ (define* (make-gcc-toolchain gcc (union-build (assoc-ref %outputs "static") (list (assoc-ref %build-inputs "libc-static"))) + ;; XXX Remove once an empty librt.a is added to + ;; libc:out. + (copy-file + (string-append (assoc-ref %outputs "out") + "/lib/libpthread.a") + (string-append (assoc-ref %outputs "out") + "/lib/librt.a")) #t)))) (native-search-paths base-commit: f14d3944cc699d1426c31b304fb49b72a579666a -- 2.39.2