From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 IOY5FRkWumYIBAEA62LTzQ:P1 (envelope-from ) for ; Mon, 12 Aug 2024 14:03:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IOY5FRkWumYIBAEA62LTzQ (envelope-from ) for ; Mon, 12 Aug 2024 16:03:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=nUmh6lkk; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723471385; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iyCQQsqVhfjTy1OhcMoFLOpyd2j9DntGbOdTg/nBqdA=; b=FOjwyv3KRS3Gw3hATyKVF0C7lEInh58UXbn7pHombNBOhWiyOqC4yqhRqVem5qMKlPpEXy r94JVT0tDYEk3q3fURCeaLdl2EEshDjJ9GCAKUQ8Nphm8wRFrwMu/IbCf6hgIjj9aoPMs9 iPVx79WaBx/4ZKdrSQ2yDrqnQQQ10hmUIQfhlpjnNz9oNzirKMlT9uZJvyR70va/Wp1ahb Gs5+MlAB+Y8GFh0bjXLT5wZn7YEHFOAw1vx+XLuFFCxH5iwr1phDXYy5UFIO8ikc8Q1xzp 7YeIslFlPSJpLrc7t755/BmKnlZ9vqn1Pc5XjM8BnE6N7lSzoEvRvGP/AZDQiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=nUmh6lkk; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723471385; a=rsa-sha256; cv=none; b=ZTKzTPDpsIw5kfm/rtjtPCbhhgc5+kEXF5qZoKRAEdWIV1CXfHF+BpHDdBD1UUYTrK+Vcv ubLJ2st9bfb5Rv3rkY4sJbAcMh87IE4qY0S/UUzCVuy3AaQvROCE95TlGGftlovhYGFBx0 7x/qr4g8J6xxZwxDPd4y2jjTJLc8MLFlc8o6hZLwsBZ6+2GenBuxmox3tKb0P2i4fDGZbE eHxr+JGRH/fEYGLJWpEZ+ZvlMJNatol4IaOCumqdHk5gDfD2LLhvpYG/HEWMPBo5l+/USu MVQdWo3UHIT0+SLTm7+Bs9c9RfBtzPPtkTq6PpWdDlvf8amjIRRT8anXc1Gksw== 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 1C91169CBF for ; Mon, 12 Aug 2024 16:03:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdVcg-0007Bb-Vf; Mon, 12 Aug 2024 10:02:11 -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 1sdVce-000712-G0 for guix-devel@gnu.org; Mon, 12 Aug 2024 10:02:08 -0400 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 1sdVcc-00041P-DW; Mon, 12 Aug 2024 10:02:06 -0400 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=iyCQQsqVhfjTy1OhcMoFLOpyd2j9DntGbOdTg/nBqdA=; b=nUmh6lkkNLx/jrFUhu/M UhInYMZ3pfQxIUQaKG4kOegC+CKoSU6WNXd6qhJ3yv5CGKxHWOlsEUEQxtCzoxMCVk/DJZNvd/CN8 3PiDVN/WBkhk8cgfvUrBXAM7ZT3hox58N3hfWRTnpT2jaDu/i010H10UuSl8rGX3JcUwDVElMIYO+ lEMDe6chTSOPUNbd2uJx8MkHrH+Sof/6oViXTQ4Ndpo+dboOqzvdBaZc+rqFdLPzsfESMVprmz3QM j/9v91gF/s1cI3LG7jicDCQR8AF3dCZINd4J3uwZMQ1eCx3hA3lxcCV8Lqcnqg7FFn8K/P3m5t1Qt S2MDiouVgPTMyg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: [core-updates] aarch64: Cannot build glibc-2.39 In-Reply-To: <87ed76289b.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 02 Aug 2024 18:34:56 +0200") References: <87h6cf28f4.fsf@elephly.net> <87zfpxdydx.fsf@elephly.net> <87ed76289b.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 Thermidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Myrte X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 12 Aug 2024 16:01:40 +0200 Message-ID: <87le11dem3.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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 1C91169CBF X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -11.19 X-Spam-Score: -11.19 X-TUID: gsmByS87UHXD Hey Ricardo! Ricardo Wurmus skribis: >> You can reproduce this like so: >> >> ./pre-inst-env guix build -K --system=3Daarch64-linux -e \ >> '((@@ (gnu packages make-bootstrap) glibc-for-bootstrap) (@ (gnu p= ackages base) glibc))' > > I was able to build that glibc with this diff: > > diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm > index 8eed98d1fd..acd0033d1e 100644 > --- a/gnu/packages/bdw-gc.scm > +++ b/gnu/packages/bdw-gc.scm > @@ -114,8 +114,14 @@ (define-public libgc/static-libs > (arguments > (substitute-keyword-arguments (package-arguments libgc) > ((#:configure-flags flags #~'()) > - #~(cons "--enable-static" #$flags)))) > - > + #~(cons "--enable-static" #$flags)) > + ((#:make-flags flags #~'()) > + (cond > + ((target-aarch64?) > + ;; This is a known workaround upstream. > + ;; https://github.com/ivmai/bdwgc/issues/479 > + #~(list "CFLAGS_EXTRA=3D-DNO_MPROTECT_VDB")) > + (else flags))))) > (properties '((hidden? . #t))))) This one LGTM, I think you can push it on =E2=80=98core-updates=E2=80=99. > diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstra= p.scm > index 63c84e93ef..0c513040d6 100644 > --- a/gnu/packages/make-bootstrap.scm > +++ b/gnu/packages/make-bootstrap.scm > @@ -90,8 +90,11 @@ (define glibc-for-bootstrap > ;; Make sure to build glibc with the same compiler version as the = rest > ;; of the bootstrap. Otherwise it fails to statically link on aar= ch64. > (native-inputs > - `(("gcc" ,gcc-7) > - ,@(package-native-inputs base))) > + (if (target-aarch64?) > + (modify-inputs (package-native-inputs base) > + (replace "gcc" gcc-7)) > + `(("gcc" ,gcc-7) > + ,@(package-native-inputs base)))) What=E2=80=99s the rationale here? I would expect both to be almost equiva= lent. At any rate, I would remove the =E2=80=98if=E2=80=99: it should be the same= on all platforms. > I'm now failing at the build of guile-static-initrd: > > removing store references from `/gnu/store/wir05g46map9dd3y5sn3nwpblaydhm= j5-guile-static-initrd-3.0.9/bin/guile'... > qemu-aarch64: Could not open '/gnu/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee= -glibc-2.39/lib/ld-linux-aarch64.so.1': No such file or directory This suggests that the =E2=80=98guile=E2=80=99 binary is not actually stati= cally linked: it has PT_INTERP set to ld-linux*.so. This is surprising because there=E2=80=99s no such problem on x86_64-linux. Maybe one of the build fl= ags for static builds is getting lost somewhere? Thanks, Ludo=E2=80=99.