From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oO2MIRqVU2EOdAAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 00:20:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EJk5HRqVU2GUeAAA1q6Kng (envelope-from ) for ; Tue, 28 Sep 2021 22:20:10 +0000 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 43425565E for ; Wed, 29 Sep 2021 00:20:10 +0200 (CEST) Received: from localhost ([::1]:43900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVLSL-000086-3W for larch@yhetil.org; Tue, 28 Sep 2021 18:20:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVLSE-00007E-U5 for guix-patches@gnu.org; Tue, 28 Sep 2021 18:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVLSE-0001Vb-Lp for guix-patches@gnu.org; Tue, 28 Sep 2021 18:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVLSE-00021U-Hv for guix-patches@gnu.org; Tue, 28 Sep 2021 18:20:02 -0400 Subject: bug#50174: [PATCH core-updates-frozen 1/2] gnu: make-bootstrap: Fix build of static gawk. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 22:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann Cc: 50174-done@debbugs.gnu.org Mail-Followup-To: 50174@debbugs.gnu.org, ludo@gnu.org, bauermann@kolabnow.com Received: via spool by 50174-done@debbugs.gnu.org id=D50174.16328675567716 (code D ref 50174); Tue, 28 Sep 2021 22:20:02 +0000 Received: (at 50174-done) by debbugs.gnu.org; 28 Sep 2021 22:19:16 +0000 Received: from localhost ([127.0.0.1]:47249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVLRU-00020O-1P for submit@debbugs.gnu.org; Tue, 28 Sep 2021 18:19:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVLRR-000207-Me for 50174-done@debbugs.gnu.org; Tue, 28 Sep 2021 18:19:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32822) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVLRM-0000tB-CR; Tue, 28 Sep 2021 18:19:08 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36412 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVLRK-0000aX-Dy; Tue, 28 Sep 2021 18:19:08 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210823205127.27102-1-bauermann@kolabnow.com> <87fstphf6i.fsf@gnu.org> <2181202.jG5neBWyxe@popigai> Date: Wed, 29 Sep 2021 00:19:04 +0200 In-Reply-To: <2181202.jG5neBWyxe@popigai> (Thiago Jung Bauermann's message of "Tue, 28 Sep 2021 00:39:17 -0300") Message-ID: <87a6jw9wdj.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632867610; 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; bh=xV8me9X+FV9yW8mxD4TT2jsMKZZf6bZ0+homWN7lcy4=; b=JIQqHu1suWQRgyh8UCHNoEpdqu38DLZMfQYKuwkANiwWbJHsWpHM+NwMRIrHsmkA89kmEo PrgmanGvtEWucwqAyLAGWUKqRPvUF7/EfQhOiC4m2XppJy15jdF8yGRvVy7u8nCNqT+EE6 lq+0fgp1kf4oO25fG/1Uh/106gaOMm2pTwIAFlZHO0j4OKWQHcCWJc/liZbRwLe0TXg3cF LV8Ptf3Ra5IegCBL/CMH2IzW1dGFS3qP11BZ2u+r1VdXW+LAusLDmKTOMJtHk4106iOp4d 2EfgsEry7mlrXeNj2fzhnc7KHOtZZMbBAUqrAjbLzky90npB2Lsw+BZUWwHsew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632867610; a=rsa-sha256; cv=none; b=Ramanj/ftAzwP2BtxDOPx6ARNjrJslWq95GnjWwv4xw5I2uYnt2OWueAA62/L+zitP/kRJ q7L6KGgq7W/tJUanUSfp72d1qqlePUTlWgM/ccyFfDnR0Zcwq+IuyCNVE/GBGBcIs65pED oSrmPq8icHcF/ogLr/7wz2+LFVTMLtYLQTzYYgxIrxYUj2xJOPDb+rkFOaESalqXqUAgm9 OitI2hnp9YTHqBIrQuu1wKk/dQZz1IaJYw+aXZJV+lzsDv1VfSPyo9gQm7Ou6wpMosL10P fHWtR9xWUd2IAy9u0HlXrB8nrV3x+vj7jpbBetBOFjm/0Fc07hFHG9IJB5MTsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.70 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 43425565E X-Spam-Score: -3.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: G/gsoHnTCcgr Hi Thiago, Thiago Jung Bauermann skribis: > Em segunda-feira, 27 de setembro de 2021, =C3=A0s 18:38:45 -03, Ludovic C= ourt=C3=A8s=20 > escreveu: >> Thiago Jung Bauermann skribis: >> > gawk for =E2=80=98static-binaries-tarball=E2=80=99 is failing to build= natively, at >> > least for x86_64-linux=C2=B9 and powerpc64le-linux. On both of them, t= he >> > problem is the same: >> >=20 >> > ld: ext.o: in function `load_ext': >> > /tmp/guix-build-gawk-5.1.0.drv-0/gawk-5.1.0/ext.c:59: warning: Using >> > 'dlopen' in statically linked applications requires at runtime the >> > shared libraries from the glibc version used for linking ld: >> > /gnu/store/qmgsfxm3ad5n7bi947n7xw0wq86blqr9-glibc-2.33-static/lib/libc >> > .a(getopt.o): in function `_getopt_internal_r': (.text+0x6e0): multiple >> > definition of `_getopt_internal_r'; >> > support/libsupport.a(getopt.o):/tmp/guix-build-gawk-5.1.0.drv-0/gawk-5 >> > .1.0/support/getopt.c:404: first defined here >>=20 >> I don=E2=80=99t see that on x86_64/i686: >>=20 >> --8<---------------cut here---------------start------------->8--- >> $ ./pre-inst-env guix weather bootstrap-tarballs -s x86_64-linux -s i68= 6-linux > > I=E2=80=99m using the package =E2=80=98static-binaries-tarball=E2=80=99 t= o expose the issue. IIUC, > the static binaries (of which =E2=80=98gawk-static=E2=80=99 is one) aren= =E2=80=99t used for > bootstrapping on i686-linux and x86_64-linux so you won=E2=80=99t see thi= s problem > with =E2=80=98bootstrap-tarballs=E2=80=99 on those platforms. > >> -s aarch64-linux -s armhf-linux > > OTOH, these platforms do use the static binaries. For some reason which T= BH > I didn=E2=80=99t try to investigate, =E2=80=98gawk-static=E2=80=99 cross-= builds correctly so you=E2=80=99ll only see > this problem on native builds of =E2=80=98bootstrap-tarballs=E2=80=99 or = =E2=80=98static-binaries-tarball=E2=80=99. Oooh, my bad, sorry for the confusion. >> Substitutes are missing for the following items: >> /gnu/store/3c8gbn2gljj48wihs9h3nxmfwix55wrn-bootstrap-tarballs-0=20=20= =20=20=20=20=20 >> armhf-linux >> /gnu/store/8b6rznm54l6drbs6qfca5bi8yjqbx51f-bootstrap-tarballs-0=20=20= =20=20=20=20=20=20 >> aarch64-linux > > Doesn=E2=80=99t this mean that there is indeed a problem with =E2=80=98bo= otstrap-tarballs=E2=80=99 > on these platforms? Yes, it does! But I thought it might be =E2=80=9Csomething else=E2=80=9D. I fixed it slightly differently in 7d30e6e5c21f5e0b79f73428414fef2dbf75e7a6, followed by the second patch you had here. Let=E2=80=99s see how far that brings us towards =E2=80=99static-binaries-tarball=E2=80=99. Thank you & sorry for the delay! Ludo=E2=80=99.