From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wKrRHVqPu2Zx9gAA62LTzQ:P1 (envelope-from ) for ; Tue, 13 Aug 2024 16:52:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wKrRHVqPu2Zx9gAA62LTzQ (envelope-from ) for ; Tue, 13 Aug 2024 18:52:42 +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=FaN4FON1; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723567962; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5Hw/nY7boSYbtWfmG/P4IjuMMdp9NmbCQ7OcHp+vUpQ=; b=NrrZCbreoAtK+YwlsYqMWALrEvA/JAEtO0DX5DDcr33AQJz8J81kphwkuc9XopAyN1K+DF imF3BW0y9JEbwJw0n8yM8Vs1jpOIGpy3MF3rMPebXlHm8plNLdbxnfPO41j4Sltvo6XDbR 0hqShAIDO90+HWbEKt3Ft3QZKY8wXHOItBs8R1CiwLTb6WOamIujTTwx0VcGsn1T8hqik2 JpTeFs/cCtSPW8YYQEygNBnSmJhkuzulbDpo0rFfDVewYmrwzbRMnUeCQQ9JOcTEogJ1j0 uU+BCZVBePzHzJAIW7Nm+7w6UsoC9+rQQHKN3NI8+8ZjnQPj1q7LQPyB7Mzfdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723567962; a=rsa-sha256; cv=none; b=KRTPTVcCU3o/58s+bSgnBaPB0Nq+u7Ljnlp1CkP91uZ4woGSLSHXBRHrT1wW2zSCh8Ry50 bn/J/rqM38j6E9gDfgGHSkvmBZoIggjmB9+r2008/rJGCuIwSF2UoJQc8N7TYZDiu2tJHX Y6Ku407XlG9F1YRhcChNvooU36ROSKlzHdqHnIOuEsP5jEX1eHZFrEhg7aZm+j3PzTntSa YKQqfhGJS/ZQgkXTtxeS/hEAlgjSM5DjlDZHD0fmbfCFdHeDvn9CT9v2S/vwbwdZZ9litq jdYPywAFcFBLB10xmJ7NZ6oW5K3aA8V7q0raH1xrPmWblbaT0Llc4uxIKJ+73Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=FaN4FON1; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 294BA1D49C for ; Tue, 13 Aug 2024 18:52:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sduki-0004Nl-Vy; Tue, 13 Aug 2024 12:52:09 -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 1sduke-0004NR-MZ for guix-devel@gnu.org; Tue, 13 Aug 2024 12:52:04 -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 1sduke-0000z0-8w; Tue, 13 Aug 2024 12:52:04 -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=5Hw/nY7boSYbtWfmG/P4IjuMMdp9NmbCQ7OcHp+vUpQ=; b=FaN4FON1a2ZRBUccroBK 8ZYXVR6maIEGONB257mIZpMNy9wcv1vO8gb/gvUD0kpS/yXOYAFlwnRi/Q7jr/3kg8rFbZyaxM2Q8 s6zz+CLP+3mbvKcpJIaVghCcTtk8bw8Zz/aHo+RZLVn1ZE2pu/V3nvXZ/eUcAxGWxSIWgrA1SgiYK uhGdH3Kgn+plbAsD/CAtt65MfdNN3C/yXl6X6QkkcF48ows1SASNVYvn7lQYh6wygxG02aob3A9Cr BjaJF7SwA/UV0pWby/7HoMjtfXc374/YxF6CIwBQO37DsQZEZC6Eoblf10A5RdSqZQWUygznFqg/g zpMfe/jgyZqv2A==; 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: Septidi 27 Thermidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Colza 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: Tue, 13 Aug 2024 18:52:01 +0200 Message-ID: <87zfpg8ixa.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 294BA1D49C X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.19 X-Spam-Score: -10.19 X-TUID: S6TZpeTFWefV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus skribis: > Ricardo Wurmus writes: > >> Ricardo Wurmus writes: >> >>> I tried to deploy to my aarch64 system with Guix on core-updates. This >>> fails with a configure failure in the build of glibc 2.39. >> >> 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: I=E2=80=99m testing this other patch below. I can build =E2=80=98bootstrap= -tarballs=E2=80=99 and =E2=80=98guile-initrd=E2=80=99 on x86_64-linux with it; the aarch64-lin= ux build is still ongoing and will take a while. That would be a welcome simplification of all this. Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm index 63c84e93ef..13cf40d37b 100644 --- a/gnu/packages/make-bootstrap.scm +++ b/gnu/packages/make-bootstrap.scm @@ -87,12 +87,6 @@ (define glibc-for-bootstrap "--enable-static-nss" ,flags)))) - ;; Make sure to build glibc with the same compiler version as the rest - ;; of the bootstrap. Otherwise it fails to statically link on aarch64. - (native-inputs - `(("gcc" ,gcc-7) - ,@(package-native-inputs base))) - ;; Remove the 'debug' output to allow bit-reproducible builds (when the ;; 'debug' output is used, ELF files end up with a .gnu_debuglink, which ;; includes a CRC of the corresponding debugging symbols; those symbols @@ -103,13 +97,13 @@ (define gcc-for-bootstrap (mlambdaq (glibc) "Return a variant of GCC that uses the bootstrap variant of GLIBC." (package - (inherit gcc-7) + (inherit gcc) (outputs '("out")) ;all in one so libgcc_s is easily found (inputs `( ;; Distinguish the name so we can refer to it below. ("bootstrap-libc" ,(glibc-for-bootstrap glibc)) ("libc:static" ,(glibc-for-bootstrap glibc) "static") - ,@(package-inputs gcc-7)))))) + ,@(package-inputs gcc)))))) (define (package-with-relocatable-glibc p) "Return a variant of P that uses the libc as defined by @@ -148,7 +142,7 @@ (define (package-with-relocatable-glibc p) (cons (search-path-specification (variable "CROSS_CPLUS_INCLUDE_PATH") (files '("include"))) - (package-search-paths gcc-7))))) + (package-search-paths gcc))))) ("cross-binutils" ,(cross-binutils target)) ,@(%final-inputs))) `(("libc" ,(glibc-for-bootstrap glibc)) @@ -472,11 +466,11 @@ (define (%glibc-stripped) (define %gcc-static ;; A statically-linked GCC, with stripped-down functionality. (package-with-relocatable-glibc - (package (inherit gcc-7) + (package (inherit gcc) (name "gcc-static") (outputs '("out")) ; all in one (arguments - (substitute-keyword-arguments (package-arguments gcc-7) + (substitute-keyword-arguments (package-arguments gcc) ((#:modules modules %default-gnu-modules) `((srfi srfi-1) (srfi srfi-26) @@ -527,7 +521,7 @@ (define %gcc-static (inputs `(("zlib:static" ,zlib "static") ("isl:static" ,isl "static") - ,@(package-inputs gcc-7))) + ,@(package-inputs gcc))) (native-inputs (if (%current-target-system) `(;; When doing a Canadian cross, we need GMP/MPFR/MPC both @@ -540,13 +534,13 @@ (define %gcc-static ("gmp-native" ,gmp) ("mpfr-native" ,mpfr) ("mpc-native" ,mpc) - ,@(package-native-inputs gcc-7)) - (package-native-inputs gcc-7)))))) + ,@(package-native-inputs gcc)) + (package-native-inputs gcc)))))) (define %gcc-stripped ;; The subset of GCC files needed for bootstrap. (package - (inherit gcc-7) + (inherit gcc) (name "gcc-stripped") (build-system trivial-build-system) (source #f) --=-=-=--