From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id x74cDie9vGE8QgAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 17:39:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KAXbBie9vGHoSgAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 16:39:03 +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 7D83AFB45 for ; Fri, 17 Dec 2021 17:39:02 +0100 (CET) Received: from localhost ([::1]:39976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myGG3-0007k3-HU for larch@yhetil.org; Fri, 17 Dec 2021 11:38:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myGF9-0007ju-Lm for help-guix@gnu.org; Fri, 17 Dec 2021 11:38:03 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:53478) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myGEy-0002La-LH for help-guix@gnu.org; Fri, 17 Dec 2021 11:37:56 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 7D63B1AA2C; Fri, 17 Dec 2021 08:37:49 -0800 (PST) From: Vagrant Cascadian To: phodina , help-guix Subject: Re: Aarch64 build of rust-1.39.0 fails In-Reply-To: <03dH3EelmiQdYTJqTSLQYf_eB7j9uheDFeDNQS66yUacJ7XXjRyHwLU23SQzAhvT0I1xQ1m40P2DPKa5S7SbfQrAsqGCjzg-niw-rOLgo50=@protonmail.com> References: <03dH3EelmiQdYTJqTSLQYf_eB7j9uheDFeDNQS66yUacJ7XXjRyHwLU23SQzAhvT0I1xQ1m40P2DPKa5S7SbfQrAsqGCjzg-niw-rOLgo50=@protonmail.com> Date: Fri, 17 Dec 2021 08:37:40 -0800 Message-ID: <87ilvnyyp7.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639759142; 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; bh=O4/iwLNmbNyq1Q8Bm/lOZnrd8zHmMyxNaSvwn3BUbDM=; b=o+3MpTQA8TlS8ClMkrNgdmtG8jhbVTTN2ztgrmvHAdk6arKZ21JCHsK63o2C/VnjQ4bAPo YujdssnLIJN6syOq7OaQQdZsyytGuwwSqlI1+mtCkMNe+boX+CA9Is8dUrFMukyU4t7FCN urzxyEgYhepcQlW6Ji/hTE/WEtqAGsRojPbVXm9IAFPuq8V9zs/hDwDU4MucgtRS6KwdLt D6aIZ3wSpS98Khg6eqAdV+gFkEaQ5Zeio0sSv2kJsTO0anCU34yIHzxOOMBGzVdB9grIcp 50sSC0BMx400onsLmQBUKd7wiuLWyiSaJRCorYtub6kpVOcq5epf+/sWttmeoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639759142; a=rsa-sha256; cv=none; b=sd6CXtBNRS1bYzmeiftSyBqkEEvnU/KjXMXaQrfG8+jcgeZOhFZcRcu6YKE/KX8fsZCRI8 bljlNJPn0lfAIjv595csIc+ES0b76Q09wo56lbiijTV91syKN3VikMdgETkPhdbm3/n+S2 8ck4Bn8qobziu3gv6boL5RUoq7nl2r1Fu4AVmEl6lDW3DIN5l9hakx/ptCcz6og1tyZUe7 NH56YyVvo6YLvG+fWhcHB2MM3ZHDfj0dt5ZIm3S27VY6aMCrH/ckQdwm1uhmudDPekjpF/ V8b7/kg8EZxBtTFf0r/zjrQZUCBwZHGYz6uGfODpYI6Do8JHtPEqwxR6WAlobg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7D83AFB45 X-Spam-Score: -5.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: iITH9VVH8DQa --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-12-16, phodina via wrote: > I checked the build server and there were no substitutes [1] for rust-1.3= 9.0 for the Aarch64 system. This is unfortunately a known issue; there isn't a good bootstrap path for rust on aarch64... and an increasingly number of things are depending on rust, which makes it a more obvious problem now. > When building natively (Pinebook Pro) there is this problem: > > $ uname -a > Linux valhalla 5.14.9-gnu #1 SMP PREEMPT 1 aarch64 GNU/Linux > ~/guix$ guix build rust -K > ... >> /tmp/guix-build-rust-1.39.0.drv-0/mrustc/bin/mrustc rustc-1.39.0-src/src= /libcore/lib.rs -o output/libcore.rlib --crate-name core --crate-type rlib = -C emit-depfile=3Doutput/libcore.rlib.d --crate-tag 0_0_0 -g --cfg debug_as= sertions -O -L output --edition 2018 > rustc-1.39.0-src/src/libcore/slice/mod.rs:67: warn:0:Unexpected attribute= allow_internal_unstable on associated item > rustc-1.39.0-src/src/libcore/str/mod.rs:2173: warn:0:Unexpected attribute= allow_internal_unstable on associated item > In file included from output/libcore.rlib.c:7: > output/libcore.rlib.c: In function =E2=80=98ZRQG2ch4core50_0_03ffi10VaLis= tImpl0g2cb05clone5Clone0gb30g=E2=80=99: > output/libcore.rlib.c:219717:10: warning: passing argument 1 of =E2=80=98= __builtin_va_copy=E2=80=99 from incompatible pointer type [-Wincompatible-p= ointer-types] > 219717 | va_copy(var3, arg0); > | ^~~~ > | | > | struct s_ZRG2ch4core50_0_03ffi10VaListImpl0g ** > output/libcore.rlib.c:219717:10: note: expected =E2=80=98__va_list *=E2= =80=99 but argument is of type =E2=80=98struct s_ZRG2ch4core50_0_03ffi10VaL= istImpl0g **=E2=80=99 > output/libcore.rlib.c:219717:16: error: incompatible type for argument 2 = of =E2=80=98__builtin_va_copy=E2=80=99 > 219717 | va_copy(var3, arg0); > | ^~~~ > | | > | struct s_ZRG2ch4core50_0_03ffi10VaListImpl0g * > output/libcore.rlib.c:219717:16: note: expected =E2=80=98__va_list=E2=80= =99 but argument is of type =E2=80=98struct s_ZRG2ch4core50_0_03ffi10VaList= Impl0g *=E2=80=99 > C Compiler failed to execute - error code 256 > Process exited with non-zero exit status 1 > BUILD FAILED > make: *** [minicargo.mk:82: output/libstd.rlib] Error 1 > error: in phase 'build': uncaught exception: > %exception #<&invoke-error program: "make" arguments: ("-f" "minicargo.mk= " "output/rustc" "-j6" "RUSTC_TARGET=3Daarch64-unknown-linux-gnu" "RUSTC_VE= RSION=3D1.39.0" "MRUSTC_TARGET_VER=3D1.39" "OUTDIR_SUF=3D") exit-status: 2 = term-signal: #f stop-signal: #f> > phase `build' failed after 1006.4 seconds > command "make" "-f" "minicargo.mk" "output/rustc" "-j6" "RUSTC_TARGET=3Da= arch64-unknown-linux-gnu" "RUSTC_VERSION=3D1.39.0" "MRUSTC_TARGET_VER=3D1.3= 9" "OUTDIR_SUF=3D" failed with status 2 > > Not sure if this PR [2] would help as I don't know how to apply the patch= to the package definition for rust-1.39. ... > [2] https://github.com/rust-lang/rust/pull/49878 Looks somewhat plausible... You could try pulling out the patches and adding them in gnu/packages/patches/rust-1.39-XXX.patch, and then adding into the search-patches definition in gnu/packages/rust.scm for rust-1.39. Though, they may require backwards or forwards-porting those patches; not sure if those patches were applied before or after 1.39. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYby82QAKCRDcUY/If5cW qjzVAP9V/qH6v9m07eEhPFfXW6I9NrG/n7Edk5IkJ7Tv9ZJcfwEAkuoosFfxqi6p R19lQnT7XloYkW/L7coBZh4jVIX8mQY= =HMCj -----END PGP SIGNATURE----- --=-=-=--