From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyuX3-0000Dr-9w for guix-patches@gnu.org; Thu, 22 Mar 2018 03:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyuX0-0007yr-2G for guix-patches@gnu.org; Thu, 22 Mar 2018 03:21:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyuWz-0007yk-SN for guix-patches@gnu.org; Thu, 22 Mar 2018 03:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyuWz-0005Sm-NM for guix-patches@gnu.org; Thu, 22 Mar 2018 03:21:01 -0400 Subject: [bug#30831] building rust on aarch64 References: <874llhdocu.fsf@member.fsf.org> In-Reply-To: <874llhdocu.fsf@member.fsf.org> Resent-Message-ID: Date: Thu, 22 Mar 2018 09:20:12 +0200 From: Efraim Flashner Message-ID: <20180322072012.GD20703@macbook41> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vv4Sf/kQfcwinyKX" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30831@debbugs.gnu.org --vv4Sf/kQfcwinyKX Content-Type: multipart/mixed; boundary="AkbCVLjbJ9qUtAXD" Content-Disposition: inline --AkbCVLjbJ9qUtAXD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I tested the patch on my aarch64 box and with the following patch I was able to start the building process. Currently rust fails its test stage with the error: test result: ok. 193 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out finished in 267.991 Testing libstd stage1 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-g= nu) Compiling libc v0.2.34 Compiling core v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/rustc-1.= 24.1-src/src/libcore) Compiling std_unicode v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/r= ustc-1.24.1-src/src/libstd_unicode) Compiling rand v0.3.19 Compiling std v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/rustc-1.2= 4.1-src/src/libstd) Compiling alloc v0.0.0 (file:///tmp/guix-build-rust-1.24.1.drv-0/rustc-1= =2E24.1-src/src/liballoc) error: unused attribute --> src/libstd/sys/unix/process/process_common.rs:449:5 | 449 | #[ignore] | ^^^^^^^^^ | note: lint level defined here --> src/libstd/lib.rs:232:9 | 232 | #![deny(warnings)] | ^^^^^^^^ =3D note: #[deny(unused_attributes)] implied by #[deny(warnings)] error: aborting due to previous error error: Could not compile `std`. warning: build failed, waiting for other jobs to finish... error: build failed command did not execute successfully: "/gnu/store/3vvhw5xpbcym5l3xk2pszzzyx= 4m7k8l6-cargo-bootstrap-0.24.0/bin/cargo" "test" "--target" "aarch64-unknow= n-linux-gnu" "-j" "6" "--release" "--frozen" "--features" "panic-unwind jem= alloc backtrace" "--manifest-p ath" "/tmp/guix-build-rust-1.24.1.drv-0/rustc-1.24.1-src/src/libstd/Cargo.t= oml" "-p" "std:0.0.0" "-p" "libc:0.0.0" "-p" "alloc_system:0.0.0" "-p" "pan= ic_abort:0.0.0" "-p" "compiler_builtins:0.0.0" "-p" "alloc:0.0.0" "-p" "std= _unicode:0.0.0" "-p" "unwind:0 =2E0.0" "-p" "core:0.0.0" "--" expected success, got: exit code: 101 failed to run: /tmp/guix-build-rust-1.24.1.drv-0/rustc-1.24.1-src/build/boo= tstrap/debug/bootstrap test Build completed unsuccessfully in 1:53:33 phase `check' failed after 6813.3 seconds This is ultimately no different from master, where rust currently fails somewhere during the test stage. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --AkbCVLjbJ9qUtAXD Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-don-t-build-native-on-arm.patch" Content-Transfer-Encoding: quoted-printable =46rom d3f6c14535163be65aedfc761b747c4386387537 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Thu, 22 Mar 2018 09:14:53 +0200 Subject: [PATCH] don't build native on arm* --- gnu/packages/rust.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index ae81ff8e0..5c5a61594 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -259,6 +259,11 @@ rustc-bootstrap and cargo-bootstrap packages.") ;; guix llvm-3.9.1 package installs only shared libraries (setenv "LLVM_LINK_SHARED" "1") #t)) + (add-after 'unpack 'dont-build-native + (lambda _ + (substitute* "src/binaryen/CMakeLists.txt" + (("ADD_COMPILE_FLAG\\(\\\"-march=3Dnative\\\"\\)") "")) + #t)) (add-after 'unpack 'patch-tests (lambda* (#:key inputs #:allow-other-keys) (let ((bash (assoc-ref inputs "bash"))) --=20 2.16.2 --AkbCVLjbJ9qUtAXD-- --vv4Sf/kQfcwinyKX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlqzWScACgkQQarn3Mo9 g1ESiQ//fjuOqhdXx9HdL0ArVX8ncOJ8y+7T4Ys9tGGKXg7U1DRUz+BKTyCse/jT 8uKiiACU3TZXroqYhSDSK9ZmOh3xggEURaRJotDrRpv/eeAIMxPP9wau1X5rPZrp mPCdS6eKiWgabzhYIQS36/Yr8bpK7PIWIojelmT3wlQuT5n69j67bmpTJ+OeUFNl KK17wulHmCgqLvItG9XsoeBkf+2ApoEqnJM1q/jVaiLMZZ1MkJAcdNT9Qjs5MmnE Mtf3WAM9l7sNghgdkATsIpcVXzTPrkrzcjAOoSfBWV1px2LHMJ9lfBMldpz2ks6q ShrPLtESLtBWjjp/FFNZYbCzji/p29myc5l+U5xHEkvxrFQrCiPEsvFjTrXDKp+u MdJWojjlRTlaApJaxjkATNnqphAXKOCqsSV9hv181sH6b2+RBWG6xjmADDQhnzvG awejmzkO0Fr7f23ewwOejE4w0bCLa/USyPbVutSniRA8GoRevrbNVF5RgPD92SYh 76+f34y+K4rWIxnOm8tGDWR+28xRgkRteRV1qGoHBYw6pZfbPNo3kn3OaLN5ZY7n Y6eRXzCq1BQSAqfG2xRp0WLJePltdDPSBVPZdmBGdQqZs9M/01BiL8a5xXBqrUyC 3Js63/JQtgETqZ7sIPiTdEFkm6vddEXKQQKJ/qNU74H0kCPrmUc= =GVvj -----END PGP SIGNATURE----- --vv4Sf/kQfcwinyKX--