From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id COvWIe4KrWbfGwEAe85BDQ:P1 (envelope-from ) for ; Fri, 02 Aug 2024 16:35:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id COvWIe4KrWbfGwEAe85BDQ (envelope-from ) for ; Fri, 02 Aug 2024 18:35:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=W0EbgTLO; 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=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722616558; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=24cxKvYIUI5puexwRn/MM285Bcz5Kmv2+tOrhyA26hk=; b=g3/3/h4JWd6YAyC3fv+Xa7o+nPx/6pUE+/+sJoEJLk5Y4/VKXJeGoIWJfD5hOMhcEmR6M0 DeKnttxgeponyAEAs7EGKNRJpcxICWnIeAv61Onq9a0PTpNqCT7Cvlxa45OZ3N5jrOhxFF Ny5fdGE/7x+3ZPeU5nn1IoVZGjNZA1aF4BRK6NzmcHqpnGIXhiVDyKxX7sUtWnMmkz0HIN gLQlLLwbzag3np+8l4DoNaKxbk0qRhoAbo5B6reXZ1R07zAtYcjJEuzeHuHtzOpU42EgnD BtXipY+kZzr4w7AVNOgdKZEpvJhSOvuWYt7MDHJUnzZ/J6V/q/hQLwOSMEQT7g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=W0EbgTLO; 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=none; arc=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1722616558; a=rsa-sha256; cv=pass; b=jDfMmCdDKpjdgwGYzGJ3H39zCtqHGZBbmkvPkIYPdshm25zXOnd5MMbjDhHcoFXNkr+3pE NmXGdgMN6bYvMpFB2yVsmM+Hf4oGKH3xd0s/b+yHkwXm2xfqWoaLA+BKaEQEZlI1cZEwkl QTe2uZ/W2dNsJQlrQgUaBj/VK/GZvI05DgE+fBB3LAxFva5QlzDtKFvpVT4NhZFlmHkQ4L 99aBMjzaazTC/DRZ3pBJkkDT6I+WyLQhZ4iC8aLuhKHP65uJXeX+4xd+1xkSmRfGZC/2U0 42x0IH+hrlZ0ErVorWKdnWHcfzugXRhUuxJRUR6Xju3jRymx8lSC3epkKQXtUg== 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 69C9324713 for ; Fri, 2 Aug 2024 18:35:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZvFL-0002qD-59; Fri, 02 Aug 2024 12:35:15 -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 1sZvFF-0002pw-BD for guix-devel@gnu.org; Fri, 02 Aug 2024 12:35:09 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZvFC-00016W-Gt for guix-devel@gnu.org; Fri, 02 Aug 2024 12:35:08 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1722616502; cv=none; d=zohomail.com; s=zohoarc; b=ASZEPJBwgi5nD+LqA2nQWgc2li1GMjbYxj10Zzflit9pLxvwIdFcetnyKMIjJYxFe25fFFIcqM0UfUKVZV5QRrpmNrE5YEkSJnpoStk+KInxSeBEvGDUXNGvhfpkPZC4WF+ByJI+5pO9sOfxAzTLNiZb1UeaBXn3Zyco50PSLN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722616502; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=24cxKvYIUI5puexwRn/MM285Bcz5Kmv2+tOrhyA26hk=; b=YQ3/mBBNoe91DurwPdO+iY1RDfDxPyhI1vLc6fXb2mA6fzdSODT0rZaZdYkMCziGxbp2kNOT2ZzEx7KL9Yr4dUCupLcsaygYFdfGXXxAKZHVlFAkQOJT8wSm8R7pq2IZRUuS37O/cmN5OjxLPTEAE/PiYr4ay7JJ/Hd3pL6h2qk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1722616502; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=24cxKvYIUI5puexwRn/MM285Bcz5Kmv2+tOrhyA26hk=; b=W0EbgTLOGPeNRToFTpY5bsrrOJAGnWllD0GbKeVgMsuxJ74tY6pMWz13pQXd0Ce8 ewcUlDD57Z6nS44BuOLNS4xI/5vAAPwVNzqfFib3dbwfSBqo/0wonU8uGuAPRWOmS1G xQbXcToyXBhN7xDgWeF14sbU4pV85ViuPbPrR+eA= Received: by mx.zohomail.com with SMTPS id 1722616500400853.2293042180128; Fri, 2 Aug 2024 09:35:00 -0700 (PDT) From: Ricardo Wurmus To: guix-devel@gnu.org Subject: Re: [core-updates] aarch64: Cannot build glibc-2.39 In-Reply-To: <87zfpxdydx.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 31 Jul 2024 23:50:34 +0200") References: <87h6cf28f4.fsf@elephly.net> <87zfpxdydx.fsf@elephly.net> Date: Fri, 02 Aug 2024 18:34:56 +0200 Message-ID: <87ed76289b.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-ZohoMailClient: External X-Zoho-Virus-Status: 1 Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Spam-Score: -10.49 X-Migadu-Queue-Id: 69C9324713 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.49 X-TUID: rBF/tbD6AifV --=-=-= Content-Type: text/plain 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=aarch64-linux -e \ > '((@@ (gnu packages make-bootstrap) glibc-for-bootstrap) (@ (gnu packages base) glibc))' I was able to build that glibc with this diff: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=p.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=-DNO_MPROTECT_VDB")) + (else flags))))) (properties '((hidden? . #t))))) (define-public libgc-7 diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.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 aarch64. (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)))) ;; Remove the 'debug' output to allow bit-reproducible builds (when the ;; 'debug' output is used, ELF files end up with a .gnu_debuglink, which --=-=-= Content-Type: text/plain Does this diff make sense to you? Should it be applied on core-updates or are there objections? I'm now failing at the build of guile-static-initrd: --8<---------------cut here---------------start------------->8--- removing store references from `/gnu/store/wir05g46map9dd3y5sn3nwpblaydhmj5-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 Backtrace: 1 (primitive-load "/gnu/store/qizd8cfpajaf75hmkdn6a02k00p?") In guix/build/utils.scm: 822:6 0 (invoke "/gnu/store/wir05g46map9dd3y5sn3nwpblaydhmj5-g?" ?) guix/build/utils.scm:822:6: In procedure invoke: ERROR: 1. &invoke-error: program: "/gnu/store/wir05g46map9dd3y5sn3nwpblaydhmj5-guile-static-initrd-3.0.9/bin/guile" arguments: ("--version") exit-status: 255 term-signal: #f stop-signal: #f builder for `/gnu/store/q4i9cf52196h31zslhjfjaf9fc9r9p2j-guile-static-initrd-3.0.9.drv' failed with exit code 1 build of /gnu/store/q4i9cf52196h31zslhjfjaf9fc9r9p2j-guile-static-initrd-3.0.9.drv failed --8<---------------cut here---------------end--------------->8--- Perhaps that's because I'm using the qemu-binfmt service to build aarch64 packages on my x86_64 laptop? This seems to be the last package I need to be able to finish building my aarch64 system on core-updates. -- Ricardo --=-=-=--