From debbugs-submit-bounces@debbugs.gnu.org Sun May 18 12:07:29 2025 Received: (at submit) by debbugs.gnu.org; 18 May 2025 16:07:29 +0000 Received: from localhost ([127.0.0.1]:59335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGgXo-00033Q-IT for submit@debbugs.gnu.org; Sun, 18 May 2025 12:07:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:52094) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uGgXj-00032x-Cd for submit@debbugs.gnu.org; Sun, 18 May 2025 12:07:18 -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 1uGgXb-0002Wf-7S for guix-patches@gnu.org; Sun, 18 May 2025 12:07:08 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uGgXW-0002rj-Au for guix-patches@gnu.org; Sun, 18 May 2025 12:07:06 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-74264d1832eso4783751b3a.0 for ; Sun, 18 May 2025 09:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747584420; x=1748189220; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JOpw9E0tckLng3ZsRqPBTfC7SXzNnU4myQRRRk3pTKw=; b=Gf+dtT/ITaTB7H1NXJ7wWaRh5SSeKXifZXQ7fXHb9zZT2lLQ2g9kN1tIJN7G5NvbOO 0/uL53QDO7pVuAyE3aEE5WK/YRyeVJaHGIuuM8une7mqZL5bQ27oPqZ7KFOHAukjYxhQ JWQrkXyMRZEztvW61rkWlcYtjbPnAa4jmQCeuwvOBBntRLShLquIZdA6EsTmpKJ+BBDa FHtT02VqXf915kfySiFYIBpS5mYgORnmMavx2HcTaIlOhFp8VdxBPTxxrS9a/rgAlL7A YZ15hbtwropCOWvhuamG7mNcEFuYWOMkg2KHhx29IM1fAERLt/XweDLgHZ9Ebhcni056 6+XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747584420; x=1748189220; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JOpw9E0tckLng3ZsRqPBTfC7SXzNnU4myQRRRk3pTKw=; b=KUYUV0d4pCtK6Vjn1vqiI+Ti4Qkc9VUh8hdmT+gdr+qItWkrxLD82SV6Y+58avX9Rp kFfTjqJg5g5pcBAuMFqXPf7We6Is1ZzKUR5ICHGjEOSQ2ZBd0CygIT8xF0WFJm2PAFev zgczTKMMQ+wHFA8SjiAV7dzyx4cWhRxzFdVrvP7syw+gUayMGZ6CFqK7/gKGCUu+3Gnc qYij/vXUW0VmVFsqeFThx1iVNewuw8Cnw7j6G66lM7CNDY1uJrP5TPaQgRoDeSvWQppQ Zs6h5DjSyn3z9X64ZcO8JsMzcMPLt++6MUkfnlo1HeJsI/TsVY/GL+Zpi/KLVO90XyLT V7mw== X-Gm-Message-State: AOJu0YzPK4CNNU/HIlvrmp+usKKWvDjq++JJ/5JU3wYUGN9r9DfdyYmq KGOb1aOb5mAnjD1LqLSePtYmzA4VAb7nFSVVYqNFB/o4HBIyHhV2LXxafA4OwA== X-Gm-Gg: ASbGncuu5AbR4dAbUt3gt7lhx26HCguUu52FYtXqsdByfcUHVK/0fdQjbzv+CU4QfR4 TlqH7rXdeE56ujkMJs9CGnRetTydRZsyS2TuhPj4QqKp1X+v439OZtIvTwd7jqPBRobJwt33StN VRNM1KplCA1MxdtNBzv0HHv0U20H27uEty1Ii3u7X91RazMfb8u9fH2SwGUhgaEoVGxp/Dm+/7M HTcD9IG+4aiKuhAJNaQPF1Y3FB83Ke3LUk8cJtK5SqB18dvAafuC59lkeYmX5NvIyiS7eAN14F8 UlW22qFTHIiFDNgWCoyD4p/GE9SE6R4mn/aUoqlYflzCMq6HiXZ2Ka4UxwtyWTV5fXqHjUs= X-Google-Smtp-Source: AGHT+IEPuClBoN7Qb5mgB5VPU0o930eddzRGz9lPhbEuGyRmtjAfj27xRvklm79w1RZp7DCmCH9s8w== X-Received: by 2002:a05:6a00:4b08:b0:730:95a6:3761 with SMTP id d2e1a72fcca58-742a97a720bmr14889365b3a.3.1747584419283; Sun, 18 May 2025 09:06:59 -0700 (PDT) Received: from localhost.localdomain ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a970ba0csm4866622b3a.54.2025.05.18.09.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 May 2025 09:06:58 -0700 (PDT) From: Maxim Cournoyer To: guix-patches@gnu.org Subject: [PATCH] rust: Bootstrap from version 1.74.0. Date: Mon, 19 May 2025 01:06:42 +0900 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Divya Ranjan Pattanaik , Efraim Flashner , Hilton Chain , Steve George Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=maxim.cournoyer@gmail.com; helo=mail-pf1-x42e.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is made possible thanks to mrustc's continued advances. * gnu/packages/rust.scm (%mrustc-commit): Update. (%mrustc-source): Update to version 0.11.2. (rust-bootstrap): Update to 1.74.0. [source]: Update snippet. [inputs]: Replace llvm-13 with llvm-15. Replace openssl-1.1 with openssl. (rust-1.55): Adapt into... (rust-1.75): ... this. (rust-1.76) [arguments] <#:phases>: Add patch-cargo-checksums. [source]: Do not inherit modules, snippet. Clear patches. [inputs]: Replace llvm-13 with llvm-15. (rust-1.56, rust-1.57, rust-1.58, rust-1.59, rust-1.60) (rust-1.61, rust-1.62, rust-1.63, rust-1.64, rust-1.65) (rust-1.66, rust-1.67, rust-1.68, rust-1.69, rust-1.70) (rust-1.71, rust-1.72, rust-1.73, rust-1.74): Delete variables. Change-Id: Ifdf13f83103a087a5ff7ea8b44206a2ef310dafc --- gnu/packages/rust.scm | 480 ++++-------------------------------------- 1 file changed, 38 insertions(+), 442 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index abaf7166fd5..37afe2f2861 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2020, 2021 Jakub Kądziołka ;;; Copyright © 2020 Pierre Langlois ;;; Copyright © 2020 Matthew James Kraai -;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2021, 2025 Maxim Cournoyer ;;; Copyright © 2021 (unmatched parenthesis ;;; Copyright © 2022 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2022 Jim Newsome @@ -128,11 +128,11 @@ (define* (rust-bootstrapped-package base-rust version checksum) ;;; Note: mrustc's only purpose is to be able to bootstap Rust; it's designed ;;; to be used in source form. -(define %mrustc-commit "5e01a76097265f4bb27b18885b9af3f2778180f9") +(define %mrustc-commit "2a9ab55bbaa706544858ab0968180e665fe7ff4a") (define %mrustc-source - (let* ((version "0.11.0") + (let* ((version "0.11.2") (commit %mrustc-commit) - (revision "1") + (revision "0") (name "mrustc")) (origin (method git-fetch) @@ -141,7 +141,7 @@ (define %mrustc-source (commit %mrustc-commit))) (file-name (git-file-name name (git-version version revision commit))) (sha256 - (base32 "1yyjfl1z6d5r9sv7zl90kqyjw1lqd2cqzwh2syi7yvrpslhihrhy")) + (base32 "177c4yr62gh9g85h3w472ybkl9mh2cx6hpp3k6n7i2zbcpd7wvqx")) (patches (search-patches "mrustc-patches.patch")) (modules '((guix build utils))) (snippet @@ -155,17 +155,17 @@ (define %mrustc-source (substitute* "minicargo.mk" (("--features vendored-openssl") ""))))))) -;;; Rust 1.54 is special in that it is built with mrustc, which shortens the +;;; Rust 1.74 is special in that it is built with mrustc, which shortens the ;;; bootstrap path. (define-public rust-bootstrap (package (name "rust") - (version "1.54.0") + (version "1.74.0") (source (origin (method url-fetch) (uri (rust-uri version)) - (sha256 (base32 "0xk9dhfff16caambmwij67zgshd8v9djw6ha0fnnanlv7rii31dc")) + (sha256 (base32 "0j8hrwjjjjf7spy0hy7gami96swhfzr6kandfzzdri91qd5mhaw8")) (modules '((guix build utils))) (snippet '(begin @@ -175,17 +175,14 @@ (define-public rust-bootstrap "vendor/tikv-jemalloc-sys/jemalloc")) ;; Remove vendored dynamically linked libraries. ;; find . -not -type d -executable -exec file {} \+ | grep ELF - (delete-file "vendor/vte/vim10m_match") - (delete-file "vendor/vte/vim10m_table") ;; Also remove the bundled (mostly Windows) libraries. - ;; find vendor -not -type d -exec file {} \+ | grep PE32 (for-each delete-file (find-files "vendor" "\\.(a|dll|exe|lib)$")) - ;; Adjust some sources for llvm-13, see llvm commit - ;; acce401068e78a8c5dc9e06802111ffad3da763f - (substitute* (find-files "." "powerpc64le_unknown_linux_gnu.rs") - (("e-m:e-i64:64-n32:64-v256:256:256-v512:512:512") - "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512")))))) + ;; Adjust vendored dependency to explicitly use rustix with libc backend. + (substitute* "vendor/tempfile/Cargo.toml" + (("features = \\[\"fs\"" all) + (string-append all ", \"use-libc\""))))) + (patches (search-patches "rust-1.70-fix-rustix-build.patch")))) (outputs '("out" "cargo")) (properties '((hidden? . #t) (timeout . 129600) ;36 hours @@ -193,8 +190,8 @@ (define-public rust-bootstrap (build-system gnu-build-system) (inputs (list bash-minimal - llvm-13 - openssl-1.1 + llvm-15 + openssl zlib)) (native-inputs `(("pkg-config" ,pkg-config) @@ -212,14 +209,14 @@ (define-public rust-bootstrap ,#~(let ((source #$(package-source this-package))) (list (string-append "RUSTC_TARGET=" #$(platform-rust-target - (lookup-platform-by-target-or-system - (or (%current-target-system) - (%current-system))))) + (lookup-platform-by-target-or-system + (or (%current-target-system) + (%current-system))))) (string-append "RUSTC_VERSION=" #$version) (string-append "MRUSTC_TARGET_VER=" #$(version-major+minor version)) (string-append "RUSTC_SRC_TARBALL=" source) - "OUTDIR_SUF=")) ;do not add version suffix to output dir + "OUTDIR_SUF=")) ;do not add version suffix to output dir #:phases (modify-phases %standard-phases (replace 'unpack @@ -274,7 +271,7 @@ (define-public rust-bootstrap (parallel-job-count) 1))) ;; Adapted from: - ;; https://github.com/dtolnay/bootstrap/blob/master/build-1.54.0.sh. + ;; https://github.com/dtolnay/bootstrap/blob/master/build-1.74.0.sh. ;; Use PARLEVEL since both minicargo and mrustc use it ;; to set the level of parallelism. (setenv "PARLEVEL" (number->string job-count)) @@ -290,7 +287,6 @@ (define-public rust-bootstrap (display "Building LIBS...\n") (apply invoke "make" "-f" "minicargo.mk" "LIBS" make-flags) - ;; The psm crate FTBFS on ppc64le with gcc. (display "Building rustc...\n") (apply invoke "make" "-f" "minicargo.mk" "output/rustc" make-flags) @@ -311,11 +307,11 @@ (define-public rust-bootstrap (cargo-bin (string-append cargo "/bin")) (lib (string-append out "/lib")) (system-lib-prefix - (string-append lib "/rustlib/" - ,(platform-rust-target - (lookup-platform-by-target-or-system - (or (%current-target-system) - (%current-system)))) "/lib"))) + (string-append lib "/rustlib/" + ,(platform-rust-target + (lookup-platform-by-target-or-system + (or (%current-target-system) + (%current-system)))) "/lib"))) (mkdir-p (dirname rustc)) (copy-file "run_rustc/output/prefix/bin/rustc_binary" rustc) (wrap-program rustc @@ -339,34 +335,18 @@ (define-public rust-bootstrap ;; Dual licensed. (license (list license:asl2.0 license:expat)))) -(define-public rust-1.55 +(define-public rust-1.75 (package (name "rust") - (version "1.55.0") + (version "1.75.0") (source (origin + (inherit (package-source rust-bootstrap)) (method url-fetch) (uri (rust-uri version)) - (sha256 (base32 "07l28f7grdmi65naq71pbmvdd61hwcpi40ry7kp7dy7m233rldxj")) - (modules '((guix build utils))) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - (delete-file "vendor/vte/vim10m_match") - (delete-file "vendor/vte/vim10m_table") - ;; Also remove the bundled (mostly Windows) libraries. - ;; find vendor -not -type d -exec file {} \+ | grep PE32 - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")) - ;; Add support for riscv64-linux. - (substitute* "vendor/tikv-jemallocator/src/lib.rs" - ((" target_arch = \"s390x\"," all) - (string-append all "\n target_arch = \"riscv64\","))))))) + (sha256 + (base32 "1260mf3066ki6y55pvr35lnf54am6z96a3ap3hniwd4xpi2rywsv")) + (patches '()))) (outputs '("out" "cargo")) (properties '((hidden? . #t) (timeout . 72000) ;20 hours @@ -492,7 +472,7 @@ (define-public rust-1.55 ("cargo-bootstrap" ,rust-bootstrap "cargo"))) (inputs `(("bash" ,bash-minimal) - ("llvm" ,llvm-13) + ("llvm" ,llvm-15) ("openssl" ,openssl))) ;; rustc invokes gcc, so we need to set its search paths accordingly. (native-search-paths @@ -506,411 +486,27 @@ (define-public rust-1.55 ;; Dual licensed. (license (list license:asl2.0 license:expat)))) -(define-public rust-1.56 +(define-public rust-1.76 (let ((base-rust (rust-bootstrapped-package - rust-1.55 "1.56.1" - "04cmqx7nn63hzz7z27b2b0dj2qx18rck9ifvip43s6dampx8v2f3"))) - (package - (inherit base-rust) - (arguments - (substitute-keyword-arguments - (strip-keyword-arguments '(#:validate-runpath?) - (package-arguments base-rust)) - ((#:phases phases) - `(modify-phases ,phases - (delete 'add-cc-shim-to-path) - (add-after 'patch-generated-file-shebangs 'patch-cargo-checksums - (lambda _ - (substitute* "Cargo.lock" - (("(checksum = )\".*\"" all name) - (string-append name "\"" ,%cargo-reference-hash "\""))) - (generate-all-checksums "vendor")))))))))) - -(define-public rust-1.57 - (rust-bootstrapped-package - ;; Verified that it *doesn't* build with 1.55. e.g.: - ;; * feature `edition2021` is required - rust-1.56 "1.57.0" "06jw8ka2p3kls8p0gd4p0chhhb1ia1mlvj96zn78n7qvp71zjiim")) - -(define-public rust-1.58 - (rust-bootstrapped-package - ;; Verified that it *doesn't* build with 1.56. e.g.: - ;; * error: attributes starting with `rustc` are reserved for use by the - ;; `rustc` compiler - ;; * error: cannot find attribute `rustc_do_not_const_check` in this scope - ;; * error[E0522]: definition of an unknown language item: - ;; `const_eval_select_ct` - rust-1.57 "1.58.1" "1iq7kj16qfpkx8gvw50d8rf7glbm6s0pj2y1qkrz7mi56vfsyfd8")) - -(define-public rust-1.59 - (let ((base-rust - (rust-bootstrapped-package - ;; Verified that it *doesn't* build with 1.57. e.g.: - ;; * error: `doc(primitive)` should never have been stable - ;; * error[E0522]: definition of an unknown language item: - ;; `generator_return` - ;; * error[E0206]: the trait `Copy` may not be implemented for this type - rust-1.58 "1.59.0" "1yc5bwcbmbwyvpfq7zvra78l0r8y3lbv60kbr62fzz2vx2pfxj57"))) - (package - (inherit base-rust) - (arguments - (if (target-riscv64?) - (substitute-keyword-arguments (package-arguments base-rust) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'unpack 'revert-riscv-pause-instruction - (lambda _ - ;; This fails with: - ;; error: unknown directive, referring to '.insn'. - ;; This is due to building with llvm < 14. - ;; https://github.com/rust-lang/stdarch/issues/1291 - ;; Partial roll-back from this commit: - ;; https://github.com/rust-lang/stdarch/pull/1271 - (substitute* - "library/stdarch/crates/core_arch/src/riscv_shared/mod.rs" - (("\\.insn i 0x0F, 0, x0, x0, 0x010") ".word 0x0100000F"))))))) - (package-arguments base-rust)))))) - -(define-public rust-1.60 - (rust-bootstrapped-package - ;; Verified that it *doesn't* build with 1.58. e.g.: - ;; * error: unknown codegen option: `symbol-mangling-version` - rust-1.59 "1.60.0" "1drqr0a26x1rb2w3kj0i6abhgbs3jx5qqkrcwbwdlx7n3inq5ji0")) - -(define-public rust-1.61 - (let ((base-rust - (rust-bootstrapped-package - rust-1.60 "1.61.0" "1vfs05hkf9ilk19b2vahqn8l6k17pl9nc1ky9kgspaascx8l62xd"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - (delete-file "vendor/vte/vim10m_match") - (delete-file "vendor/vte/vim10m_table") - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$"))))))))) - -(define-public rust-1.62 - (rust-bootstrapped-package - rust-1.61 "1.62.1" "0gqkg34ic77dcvsz69qbdng6g3zfhl6hnhx7ha1mjkyrzipvxb3j")) - -(define-public rust-1.63 - (rust-bootstrapped-package - rust-1.62 "1.63.0" "1l4rrbzhxv88pnfq94nbyb9m6lfnjwixma3mwjkmvvs2aqlq158z")) - -(define-public rust-1.64 - (let ((base-rust - (rust-bootstrapped-package - rust-1.63 "1.64.0" "018j720b2n12slp4xk64jc6shkncd46d621qdyzh2a8s3r49zkdk"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; ERROR: could not find native static library - ;; `rustix_outline_powerpc64`, perhaps an -L flag is missing? - ;; Adjust rustix to always build with cc. - (substitute* "src/bootstrap/Cargo.lock" - (("\"errno\",") "\"cc\",\n \"errno\",")) - ;; Add a dependency on the the 'cc' feature of rustix. - (substitute* "vendor/fd-lock/Cargo.toml" - (("\"fs\"") "\"fs\", \"cc\"")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - (delete-file "vendor/vte/vim10m_match") - (delete-file "vendor/vte/vim10m_table") - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")))) - (patches (search-patches "rust-1.64-fix-riscv64-bootstrap.patch")) - (patch-flags '("-p1" "--reverse")))) - (arguments - (substitute-keyword-arguments (package-arguments base-rust) - ((#:phases phases) - `(modify-phases ,phases - (replace 'patch-cargo-checksums - (lambda _ - (substitute* '("Cargo.lock" - "src/bootstrap/Cargo.lock" - "src/tools/rust-analyzer/Cargo.lock") - (("(checksum = )\".*\"" all name) - (string-append name "\"" ,%cargo-reference-hash "\""))) - (generate-all-checksums "vendor")))))))))) - -(define-public rust-1.65 - (let ((base-rust - (rust-bootstrapped-package - rust-1.64 "1.65.0" "0f005kc0vl7qyy298f443i78ibz71hmmh820726bzskpyrkvna2q"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (patches '()) - (patch-flags '("-p1"))))))) - -(define-public rust-1.66 - (rust-bootstrapped-package - rust-1.65 "1.66.1" "1fjr94gsicsxd2ypz4zm8aad1zdbiccr7qjfbmq8f8f7jhx96g2v")) - -(define-public rust-1.67 - (let ((base-rust - (rust-bootstrapped-package - rust-1.66 "1.67.1" "0vpzv6rm3w1wbni17ryvcw83k5klhghklylfdza3nnp8blz3sj26"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Adjust rustix to always build with cc. - (substitute* '("Cargo.lock" - "src/bootstrap/Cargo.lock") - (("\"errno\",") "\"cc\",\n \"errno\",")) - ;; Add a dependency on the the 'cc' feature of rustix. - (substitute* "vendor/fd-lock/Cargo.toml" - (("\"fs\"") "\"fs\", \"cc\"")) - (substitute* "vendor/is-terminal/Cargo.toml" - (("\"termios\"") "\"termios\", \"cc\"")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - (delete-file "vendor/vte/vim10m_match") - (delete-file "vendor/vte/vim10m_table") - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")))))) - (inputs (modify-inputs (package-inputs base-rust) - (replace "llvm" llvm-15)))))) - -(define-public rust-1.68 - (rust-bootstrapped-package - rust-1.67 "1.68.2" "15ifyd5jj8rd979dkakp887hgmhndr68pqaqvd2hqkfdywirqcwk")) - -(define-public rust-1.69 - (let ((base-rust - (rust-bootstrapped-package - rust-1.68 "1.69.0" - "03zn7kx5bi5mdfsqfccj4h8gd6abm7spj0kjsfxwlv5dcwc9f1gv"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Adjust rustix to always build with cc. - (substitute* '("Cargo.lock" - "src/bootstrap/Cargo.lock") - (("\"errno\",") "\"cc\",\n \"errno\",")) - ;; Add a dependency on the the 'cc' feature of rustix. - (substitute* "vendor/fd-lock/Cargo.toml" - (("\"fs\"") "\"fs\", \"cc\"")) - (substitute* "vendor/is-terminal/Cargo.toml" - (("\"termios\"") "\"termios\", \"cc\"")) - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$"))))))))) - -(define-public rust-1.70 - (let ((base-rust - (rust-bootstrapped-package - rust-1.69 "1.70.0" - "0z6j7d0ni0rmfznv0w3mrf882m11kyh51g2bxkj40l3s1c0axgxj"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Adjust rustix to always build with cc. - (substitute* "Cargo.lock" - (("\"errno\",") "\"cc\",\n \"errno\",")) - ;; Add a dependency on the the 'cc' feature of rustix. - (substitute* '("vendor/is-terminal/Cargo.toml" - "vendor/is-terminal-0.4.4/Cargo.toml") - (("\"termios\"") "\"termios\", \"cc\"")) - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")))) - ;; Rust 1.70 adds the rustix library which depends on the vendored - ;; fd-lock crate. The fd-lock crate uses Outline assembly which expects - ;; a precompiled static library. Enabling the "cc" feature tells the - ;; build.rs script to compile the assembly files instead of searching - ;; for a precompiled library. - (patches (search-patches "rust-1.70-fix-rustix-build.patch"))))))) - -(define-public rust-1.71 - (let ((base-rust - (rust-bootstrapped-package - rust-1.70 "1.71.1" "0bj79syjap1kgpg9pc0r4jxc0zkxwm6phjf3digsfafms580vabg"))) + rust-1.75 "1.76.0" + "08f06shp6l72qrv5fwg1is7yzr6kwj8av0l9h5k243bz781zyp4y"))) (package (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Adjust rustix to always build with cc. - (substitute* '("Cargo.lock" - "src/tools/cargo/Cargo.lock") - (("\"errno\",") "\"cc\",\n \"errno\",")) - ;; Add a dependency on the the 'cc' feature of rustix. - (substitute* '("vendor/is-terminal/Cargo.toml" - "vendor/is-terminal-0.4.6/Cargo.toml") - (("\"termios\"") "\"termios\", \"cc\"")) - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")))))) (arguments (substitute-keyword-arguments (package-arguments base-rust) ((#:phases phases) `(modify-phases ,phases - (replace 'patch-cargo-checksums + (add-after 'patch-generated-file-shebangs 'patch-cargo-checksums (lambda _ (substitute* (cons* "Cargo.lock" "src/bootstrap/Cargo.lock" (find-files "src/tools" "Cargo.lock")) (("(checksum = )\".*\"" all name) (string-append name "\"" ,%cargo-reference-hash "\""))) - (generate-all-checksums "vendor")))))))))) - -(define-public rust-1.72 - (let ((base-rust - (rust-bootstrapped-package - rust-1.71 "1.72.1" "15gqd1jzhnc16a7gjmav4x1v83jjbzyjh1gvcdfvpkajd9gq8j3z"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")) - ;; Adjust some crates to explicitly use rustix with the libc backend. - (substitute* '("vendor/is-terminal/Cargo.toml" - "vendor/is-terminal-0.4.7/Cargo.toml") - (("\"termios\"") "\"termios\", \"use-libc\"")) - (substitute* "compiler/rustc_driver/Cargo.toml" - (("rustix = \"=0.37.11\"") - (string-append "rustix = { version = \"=0.37.11\"," - " features = [\"use-libc\"] }")))))))))) - -(define-public rust-1.73 - (let ((base-rust (rust-bootstrapped-package rust-1.72 "1.73.0" - "0fmvn7vg3qg9xprgfwv10g3ygy8i4j4bkcxcr1xdy89d3xnjxmln"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")) - ;; Adjust vendored dependency to explicitly use rustix with libc backend. - (substitute* "vendor/tempfile-3.6.0/Cargo.toml" - (("features = \\[\"fs\"" all) - (string-append all ", \"use-libc\"")))))))))) - -(define-public rust-1.74 - (let ((base-rust (rust-bootstrapped-package rust-1.73 "1.74.1" - "07930r17dkj3dnsrmilywb6p9i2g2jx56ndfpa2wh8crzhi3xnv7"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (snippet - '(begin - (for-each delete-file-recursively - '("src/llvm-project" - "vendor/openssl-src/openssl" - "vendor/tikv-jemalloc-sys/jemalloc")) - ;; Remove vendored dynamically linked libraries. - ;; find . -not -type d -executable -exec file {} \+ | grep ELF - ;; Also remove the bundled (mostly Windows) libraries. - (for-each delete-file - (find-files "vendor" "\\.(a|dll|exe|lib)$")) - ;; Adjust vendored dependency to explicitly use rustix with libc backend. - (substitute* "vendor/tempfile/Cargo.toml" - (("features = \\[\"fs\"" all) - (string-append all ", \"use-libc\""))))))) - (arguments - (if (target-riscv64?) - (substitute-keyword-arguments (package-arguments base-rust) - ((#:phases phases) - `(modify-phases ,phases - ;; This phase is no longer needed. - (delete 'revert-riscv-pause-instruction)))) - (package-arguments base-rust)))))) - -(define-public rust-1.75 - (let ((base-rust (rust-bootstrapped-package rust-1.74 "1.75.0" - "1260mf3066ki6y55pvr35lnf54am6z96a3ap3hniwd4xpi2rywsv"))) - (package - (inherit base-rust) - (source - (origin - (inherit (package-source base-rust)) - (patches '())))))) - -(define-public rust-1.76 - (let ((base-rust (rust-bootstrapped-package rust-1.75 "1.76.0" - "08f06shp6l72qrv5fwg1is7yzr6kwj8av0l9h5k243bz781zyp4y"))) - (package - (inherit base-rust) + (generate-all-checksums "vendor"))))))) ;; Need llvm >= 16.0 (inputs (modify-inputs (package-inputs base-rust) - (replace "llvm" llvm-17)))))) + (replace "llvm" llvm-17)))))) (define-public rust-1.77 (let ((base-rust (rust-bootstrapped-package rust-1.76 "1.77.1" base-commit: 6b5fc4812981f2cadffcc5d39e48cd8e02ee73af -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 13:20:43 2025 Received: (at 78484) by debbugs.gnu.org; 19 May 2025 17:20:43 +0000 Received: from localhost ([127.0.0.1]:43731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uH4AM-0004Zf-Kd for submit@debbugs.gnu.org; Mon, 19 May 2025 13:20:43 -0400 Received: from azure.oak.relay.mailchannels.net ([23.83.215.7]:36175) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uH4AI-0004ZA-Hk for 78484@debbugs.gnu.org; Mon, 19 May 2025 13:20:40 -0400 X-Sender-Id: dreamhost|x-authsender|dannym@friendly-machines.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DE10B163F8B; Mon, 19 May 2025 17:20:36 +0000 (UTC) Received: from pdx1-sub0-mail-a267.dreamhost.com (trex-green-7.trex.outbound.svc.cluster.local [100.122.100.115]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7F917163E78; Mon, 19 May 2025 17:20:36 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1747675236; a=rsa-sha256; cv=none; b=I4kTbHCUcalm0IOrabvC9ile7Vm9mRZ7B9UJj/3f0nGmugDvcq1wS4h7dAGZMKw6VBcHaP QJZSroaq7KTLFotA0k0vEGuMoMNXFCA7ajJzbDUr+2Vi3scuj4Jr8WsEzrgs+plMm7vycg eMdWCVKlBf8VDIqfXCrksG2/AjdH5/2YijfiGCFsVE6sguT79t2GQ5hHAjboiVzqfJAxVm n0MlFmVD0gq+22Gv8brD+Ny6gc3ZLnclb/ZpTmCa3514QeEGkz3CMOPR3Dk7jeX14LAPA7 LfkJNp2RbHSFHlXQPtHM5J66pFsYzOwL52K6yG99DfHyN5Ew40K7uBs8o2fzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1747675236; h=from:from: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:dkim-signature; bh=S2hQmuP/1Dg0kYzURqzGlRu/Agqvv9YTl31qxhjy2jw=; b=WDh3//ncIidY9EXSHYMHJ1+NhB4XuaYhMGKr4Kc1tvCrRd7ZOnE4aZ0AuipPTFlwRx/kVq 6Wrshq9BQPrBPIZrk2n8W58wqCohUdhG1tUZu7c6qOvIpz6ihB3WbORHNJhMVQIS/AVbwg 2POIYBHlI1GZf63p8hIHLCfrAL0QbLSoKZui3jidMuUkteHo+egTqu9j4O1ZAAElcSzue+ 6l/ecOA73yrCCSN5rKb4lPI8OYpYaHIMpiyVCbJwObXVmf2CESkSuUlL1E/JAt/lBcSiNZ nYEovX6I79ISVJDvWLJApAkOL99E0bv863tdpdK1oDZajnuqb+eZfWp2zHoUiQ== ARC-Authentication-Results: i=1; rspamd-766f9cfddb-d8jfr; auth=pass smtp.auth=dreamhost smtp.mailfrom=dannym@friendly-machines.com X-Sender-Id: dreamhost|x-authsender|dannym@friendly-machines.com X-MC-Relay: Bad X-MC-Copy: stored-urls X-MailChannels-SenderId: dreamhost|x-authsender|dannym@friendly-machines.com X-MailChannels-Auth-Id: dreamhost X-Skirt-Ruddy: 595cc9e62e610ef4_1747675236782_581175939 X-MC-Loop-Signature: 1747675236782:1568768351 X-MC-Ingress-Time: 1747675236782 Received: from pdx1-sub0-mail-a267.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.122.100.115 (trex/7.0.3); Mon, 19 May 2025 17:20:36 +0000 Received: from nova (84-115-226-251.cable.dynamic.surfer.at [84.115.226.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dannym@friendly-machines.com) by pdx1-sub0-mail-a267.dreamhost.com (Postfix) with ESMTPSA id 4b1Pb66SLsz2K; Mon, 19 May 2025 10:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=friendly-machines.com; s=dreamhost; t=1747675236; bh=iowmsTCsPAsZ2Bd86/U8gavYR1IzY37KTYaGcdz4uXk=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=dxyMIcbiNrSUkFS//RVED7h3XWYE4PM77JRJJB6qJ42yN9H6is7aLm9csQ1IVv772 F1pudobEagf9SL84ulHAZ5OzjHPK1Fxsf9WzM79oH2zY44+MAI8XzJiAqE8D07Bsqc TRAikEvuhlXcnqSCFChnbwPwtapHQcq5Sk4cFl0cHQKdvJnoma7S197ajRoGBQk+IK BfWkjIm2LzCrHReY3vpyR6rrdoogJ/UePQqYtcXG75CxVQJW5w5rtN0D35FBPGDuC4 /PI6/5QdbNAjg44gdSgIhI8/20D3H5mAKhLl1kfXU9/VLeQluEThm658ibjDlE17K0 4DpLgxFPc2sYQ== From: Danny Milosavljevic To: Maxim Cournoyer Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. In-Reply-To: (Maxim Cournoyer's message of "Mon, 19 May 2025 01:06:42 +0900") References: User-Agent: mu4e 1.12.9; emacs 29.4 Date: Mon, 19 May 2025 19:20:28 +0200 Message-ID: <87zff8h603.fsf@friendly-machines.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I've tested it and first time around I got the following. Compiling std_detect v0.1.5 (/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/library/stdarch/crates/std_detect) Compiling addr2line v0.21.0 error: rustc interrupted by SIGSEGV, printing backtrace Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [23.83.215.7 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [23.83.215.7 listed in bl.score.senderscore.com] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [84.115.226.251 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.215.7 listed in list.dnswl.org] X-Debbugs-Envelope-To: 78484 Cc: 78484@debbugs.gnu.org, Hilton Chain , Steve George , Efraim Flashner , Divya Ranjan Pattanaik X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I've tested it and first time around I got the following. Compiling std_detect v0.1.5 (/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/library/stdarch/crates/std_detect) Compiling addr2line v0.21.0 error: rustc interrupted by SIGSEGV, printing backtrace Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [84.115.226.251 listed in zen.spamhaus.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [23.83.215.7 listed in bl.score.senderscore.com] 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [23.83.215.7 listed in sa-accredit.habeas.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.215.7 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi, I've tested it and first time around I got the following. Compiling std_detect v0.1.5 (/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.7= 8.0-src/library/stdarch/crates/std_detect) Compiling addr2line v0.21.0 error: rustc interrupted by SIGSEGV, printing backtrace /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x7f0346)[0x7ffff41f0346] /gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0x3e5= 60)[0x7ffff3860560] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x11847c5)[0x7ffff4b847c5] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvXs1_NtCs12SYDhWUoCW_19rustc_mir_transform3gvnNtB5_= 7VnStateNtNtNtCslJ9B1MvaQX0_12rustc_middle3mir5visit10MutVisitor15visit_sta= tement+0xfc)[0x7ffff4b8498c] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvXNtCs12SYDhWUoCW_19rustc_mir_transform3gvnNtB2_3GV= NNtNtCslJ9B1MvaQX0_12rustc_middle3mir7MirPass8run_pass+0x7e6)[0x7ffff4b865b= 6] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x111febb)[0x7ffff4b1febb] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvCs12SYDhWUoCW_19rustc_mir_transform13optimized_mir= +0x737)[0x7ffff4b2e667] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x1d70bce)[0x7ffff5770bce] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x1da6810)[0x7ffff57a6810] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x1f7a4c8)[0x7ffff597a4c8] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x1dd8f59)[0x7ffff57d8f59] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x2825576)[0x7ffff6225576] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvNtNtCs3HcOcE3jXp0_14rustc_metadata5rmeta7encoder15= encode_metadata+0x1331)[0x7ffff6233aa1] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvNtCs3HcOcE3jXp0_14rustc_metadata2fs25encode_and_wr= ite_metadata+0x1c2)[0x7ffff6210452] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvNtCsg4NmrJqdB1j_15rustc_interface6passes13start_co= degen+0x197)[0x7ffff4360017] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x9d5988)[0x7ffff43d5988] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(_RNvMs3_NtCsg4NmrJqdB1j_15rustc_interface7queriesNtB5_= 7Queries24codegen_and_build_linker+0x30)[0x7ffff43bad70] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x7a5553)[0x7ffff41a5553] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x7bf541)[0x7ffff41bf541] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x7e7380)[0x7ffff41e7380] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/librustc_driver= -b6c81eef2f88e71b.so(+0x7c7941)[0x7ffff41c7941] /gnu/store/4vcl4ssmvd4wz6aaipkyy4zqv8kqrwdl-rust-1.77.1/lib/libstd-2f49e6c5= f8c62b26.so(rust_metadata_std_88c4550c1155c094+0x64535)[0x7ffff7edc535] /gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0x867= f4)[0x7ffff38a87f4] /gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/lib/libc.so.6(+0xfd5= e8)[0x7ffff391f5e8] note: we would appreciate a report at https://github.com/rust-lang/rust note: backtrace dumped due to SIGSEGV! resuming signal rustc exited with signal: 11 (SIGSEGV) error: could not compile `std` (lib) Caused by: process didn't exit successfully: `/tmp/guix-build-rust-1.78.0.drv-0/rust= c-1.78.0-src/build/bootstrap/debug/rustc /tmp/guix-build-rust-1.78.0.drv-0/= rustc-1.78.0-src/build/bootstrap/debug/rustc --crate-name std --edition=3D2= 021 library/std/src/lib.rs --error-format=3Djson --json=3Ddiagnostic-render= ed-ansi,artifacts,future-incompat --crate-type dylib --crate-type rlib --em= it=3Ddep-info,link -C prefer-dynamic -C opt-level=3D3 -C embed-bitcode=3Dno= --cfg 'feature=3D"addr2line"' --cfg 'feature=3D"backtrace"' --cfg 'feature= =3D"gimli-symbolize"' --cfg 'feature=3D"miniz_oxide"' --cfg 'feature=3D"obj= ect"' --cfg 'feature=3D"panic_unwind"' --cfg 'feature=3D"std_detect_dlsym_g= etauxval"' --cfg 'feature=3D"std_detect_file_io"' -Zunstable-options --chec= k-cfg 'cfg(feature, values("addr2line", "backtrace", "compiler-builtins-c",= "compiler-builtins-mangled-names", "compiler-builtins-mem", "compiler-buil= tins-no-asm", "compiler-builtins-weak-intrinsics", "gimli-symbolize", "llvm= -libunwind", "miniz_oxide", "object", "panic-unwind", "panic_immediate_abor= t", "panic_unwind", "profiler", "profiler_builtins", "std_detect_dlsym_geta= uxval", "std_detect_env_override", "std_detect_file_io", "system-llvm-libun= wind"))' -C metadata=3D5bd25c808e006461 -C extra-filename=3D-5bd25c808e0064= 61 --out-dir /tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_6= 4-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps --targ= et x86_64-unknown-linux-gnu -L dependency=3D/tmp/guix-build-rust-1.78.0.drv= -0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknow= n-linux-gnu/release/deps -L dependency=3D/tmp/guix-build-rust-1.78.0.drv-0/= rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/release/deps --e= xtern 'priv:addr2line=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/= build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/= deps/libaddr2line-57e69f6cf50b537d.rlib' --extern alloc=3D/tmp/guix-build-r= ust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std= /x86_64-unknown-linux-gnu/release/deps/liballoc-d53df70cb8adbb00.rlib --ext= ern 'priv:cfg_if=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build= /x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/= libcfg_if-5dc786e7f7c2e692.rlib' --extern 'priv:compiler_builtins=3D/tmp/gu= ix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/= stage0-std/x86_64-unknown-linux-gnu/release/deps/libcompiler_builtins-886e1= 36a2fd55680.rlib' --extern core=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1= .78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gn= u/release/deps/libcore-8c94e8d207d10fe9.rlib --extern 'priv:hashbrown=3D/tm= p/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-= gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libhashbrown-1fb491793= 304cd78.rlib' --extern libc=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.= 0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/re= lease/deps/liblibc-3e25b89e388ac0b7.rlib --extern 'priv:miniz_oxide=3D/tmp/= guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gn= u/stage0-std/x86_64-unknown-linux-gnu/release/deps/libminiz_oxide-b4f398c72= f07b575.rlib' --extern 'priv:object=3D/tmp/guix-build-rust-1.78.0.drv-0/rus= tc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linu= x-gnu/release/deps/libobject-9088b5375e33ed28.rlib' --extern 'priv:panic_ab= ort=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unkno= wn-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libpanic_abor= t-4507de92ecd6bf32.rlib' --extern 'priv:panic_unwind=3D/tmp/guix-build-rust= -1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x8= 6_64-unknown-linux-gnu/release/deps/libpanic_unwind-7518274129638bff.rlib' = --extern 'priv:rustc_demangle=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.7= 8.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/= release/deps/librustc_demangle-222ca244345da321.rlib' --extern 'priv:std_de= tect=3D/tmp/guix-build-rust-1.78.0.drv-0/rustc-1.78.0-src/build/x86_64-unkn= own-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libstd_detec= t-de82c72cd3e622fd.rlib' --extern 'priv:unwind=3D/tmp/guix-build-rust-1.78.= 0.drv-0/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-u= nknown-linux-gnu/release/deps/libunwind-22bfbc8f6bbd4395.rlib' -Z unstable-= options --cfg=3Dbootstrap -Csymbol-mangling-version=3Dlegacy -Zunstable-opt= ions '--check-cfg=3Dcfg(feature,values(any()))' -Zunstable-options '--check= -cfg=3Dcfg(bootstrap)' '--check-cfg=3Dcfg(stdarch_intel_sde)' '--check-cfg= =3Dcfg(no_fp_fmt_parse)' '--check-cfg=3Dcfg(no_global_oom_handling)' '--che= ck-cfg=3Dcfg(no_rc)' '--check-cfg=3Dcfg(no_sync)' '--check-cfg=3Dcfg(netbsd= 10)' '--check-cfg=3Dcfg(backtrace_in_libstd)' '--check-cfg=3Dcfg(target_env= ,values("libnx","p2"))' '--check-cfg=3Dcfg(target_arch,values("arm64ec","sp= irv","nvptx","xtensa"))' -Zmacro-backtrace -Csplit-debuginfo=3Doff -Cprefer= -dynamic -Zinline-mir -Clink-args=3D-Wl,-z,origin '-Clink-args=3D-Wl,-rpath= ,$ORIGIN/../lib' '-Zcrate-attr=3Ddoc(html_root_url=3D"https://doc.rust-lang= .org/1.78.0/")' -Z binary-dep-depinfo --cfg backtrace_in_libstd` (exit stat= us: 254) Build completed unsuccessfully in 0:00:44 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "./x.py" arguments: ("-j16" "build" "--= stage=3D1" "library/std" "src/tools/cargo") exit-status: 1 term-signal: #f = stop-signal: #f>=20 phase `build' failed after 44.2 seconds command "./x.py" "-j16" "build" "--stage=3D1" "library/std" "src/tools/carg= o" failed with status 1 build process 18 exited with status 256 note: keeping build directory `/tmp/guix-build-rust-1.78.0.drv-0' builder for `/gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv' f= ailed with exit code 1 build of /gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv failed View build log at '/var/log/guix/drvs/m4/89v41vf6djzdlncsin7960jg9rgx2n-rus= t-1.78.0.drv.gz'. cannot build derivation `/gnu/store/3h9aax6xnhmwlqq15b1m6sla782m04hd-rust-1= .79.0.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/f8fhkkbvmn5fbnwjpxqdls6f6r4scbl9-rust-1= .80.1.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/6aa0fhp44vf08dvnj8zis4jdgwykfj15-rust-1= .81.0.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1= .82.0.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-ru= st-1.82.0.drv' failed Second time around with no change it worked fine. So LGTM! From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 19:18:31 2025 Received: (at 78484) by debbugs.gnu.org; 19 May 2025 23:18:31 +0000 Received: from localhost ([127.0.0.1]:47569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uH9kc-0003VT-Gu for submit@debbugs.gnu.org; Mon, 19 May 2025 19:18:31 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:53567) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uH9kZ-0003UU-D2 for 78484@debbugs.gnu.org; Mon, 19 May 2025 19:18:28 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-742c9563fd9so1685288b3a.3 for <78484@debbugs.gnu.org>; Mon, 19 May 2025 16:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747696701; x=1748301501; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=7cIvdYg041jbkevptCFzBoq7BqlXI2xtj5CX57O7JGc=; b=IDw9Z0d8NjCW2lWC/f4y29ClEWextSVIPYgzIJ3IoVHfbE8rA/bjEhb9t0p+ZVbyJ7 GUy7XZZlOzoGXZESWXAGxdaFHrRCifwpJS77QKK2EzpuFdZJp701fmqpBtSy29NCPVie sJFDHfojQzF0xw9CkF+40RI3J2XYvkdGNbp4ce0hgvMis7qVYScW6rCFq0hSS8G+fZaq cdoFkZWOp5Gnx/zjWRaMm93+MEkrhsqz7Z7n0syDl97yrVCgLkPAuqQACVo4QHwGRXsA tTwnagZKVeBcmyhTR2p44e7jx7V7mUiOAwHfcWf/ztBCAhLFiU/I9gTeYC+w+glVUb48 sXDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747696701; x=1748301501; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7cIvdYg041jbkevptCFzBoq7BqlXI2xtj5CX57O7JGc=; b=PtyH9qLHGdTNrIG2C9HEsOu6t6TqaV2Y8ss0RE18mZ67SqY/2orwMhDj3eDWN+wSl+ bmZkZjBwob19B59ECNqhFcdkkpM05CGxJsgAPIjWxvQlPgLi4C7lyILAAZi7NqMbLSwy +mGJXyG8NQSu5JBzATvrtnKTdyad8ldfKNgmVKGs64TnuRIJl1E0U8z92AxxlGoppOxR Ca4kpygBqkvRYUXSP3asTkN59YAanZ1/oJXVb6Zawma0IV9GHNm2ZvUjagFkUoi8NwAh 8Ellg27Q3TkNECBGyEtofKZMbDNwT/IV5DEatzAB5mDZqUxiOxoldGlfnhUuKUSv4KMP Bb7w== X-Gm-Message-State: AOJu0YzeUJzn0FzCknrN9863HjPlsf2WXileKwriLqFdOzjrhWmPQeYp eoKYYzZrnrF58hNQtd1Lsf2vsKT56PV8ewZAcwQJlVLMtpA9chZNj8VhXdbhUQ== X-Gm-Gg: ASbGncvG7ZgfADllx/scXVDlo2XOHIduGbg3Trg8B+C64vCh1QGfaNHKnb/LxsxOwt2 ciHquT75KRNwx3Yi9FnRhpoal7ufa8qFyCt905StAhWitDIySxq17WlA45S7spLCLSWN4JEa8s6 Z4b9O0++7k/8CseMN44koq+iRDxMSijG5MBkfFf9MCMP0m0ohKRMESrDU6MJLYAU8k0R0zaRvRN RQuSYb2A2cqUOVdchwTcPsJYZiBmcviPP/S0Dr7993vi2ph/vvfcCfYKGPEsq4rEh3Cw52qxe/N ZkSIxuSM/a4xY65v6CmwIbLWQOiGBgUi3Kn6Tai+1hUjxHO4Vw== X-Google-Smtp-Source: AGHT+IEYLBvBHZaAMnetGxOBRRW713AlHXA1Vjxln1Oy3igY98Yv7crojlQbwheZUO66MTeNAVTbwA== X-Received: by 2002:a05:6a00:23c8:b0:73c:b86:b47f with SMTP id d2e1a72fcca58-742acc8da94mr18392358b3a.4.1747696701081; Mon, 19 May 2025 16:18:21 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a9829c37sm6792126b3a.117.2025.05.19.16.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 May 2025 16:18:20 -0700 (PDT) From: Maxim Cournoyer To: Danny Milosavljevic Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. In-Reply-To: <87zff8h603.fsf@friendly-machines.com> (Danny Milosavljevic's message of "Mon, 19 May 2025 19:20:28 +0200") References: <87zff8h603.fsf@friendly-machines.com> Date: Tue, 20 May 2025 08:18:17 +0900 Message-ID: <87jz6cchqe.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78484 Cc: 78484@debbugs.gnu.org, Hilton Chain , Steve George , Efraim Flashner , Divya Ranjan Pattanaik X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Danny Milosavljevic writes: [...] > %exception #<&invoke-error program: "./x.py" arguments: ("-j16" "build" "--stage=1" "library/std" "src/tools/cargo") exit-status: 1 term-signal: #f stop-signal: #f> > phase `build' failed after 44.2 seconds > command "./x.py" "-j16" "build" "--stage=1" "library/std" "src/tools/cargo" failed with status 1 > build process 18 exited with status 256 > note: keeping build directory `/tmp/guix-build-rust-1.78.0.drv-0' > builder for `/gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv' failed with exit code 1 > build of /gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv failed > View build log at '/var/log/guix/drvs/m4/89v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv.gz'. > cannot build derivation `/gnu/store/3h9aax6xnhmwlqq15b1m6sla782m04hd-rust-1.79.0.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/f8fhkkbvmn5fbnwjpxqdls6f6r4scbl9-rust-1.80.1.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/6aa0fhp44vf08dvnj8zis4jdgwykfj15-rust-1.81.0.drv': 1 dependencies couldn't be built > cannot build derivation `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv': 1 dependencies couldn't be built > guix build: error: build of `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv' failed > > Second time around with no change it worked fine. I think there are many some race in cargo when using many parallel jobs -- it rarely but sometimes fails. > So LGTM! Thanks for checking. Efraim pointed me to this change having already partially merged to the rust-team branch from a recent effort. Unfortunately it seems like the mrustc 1.74 bootstrap didn't work on aarch64 and powerpc64le architectures, so the alternative, longer 1.54 bootstrap is kept for these there. I think it'd be beneficial if someone could test on these systems again and report the actual errors to the mrustc project, so that there's hope that the author knows and can fix these problems. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 15 03:55:16 2025 Received: (at 78484) by debbugs.gnu.org; 15 Jun 2025 07:55:16 +0000 Received: from localhost ([127.0.0.1]:53647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQiCy-0002X3-38 for submit@debbugs.gnu.org; Sun, 15 Jun 2025 03:55:16 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:41114) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQiCs-0002RB-N5 for 78484@debbugs.gnu.org; Sun, 15 Jun 2025 03:55:14 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 1A526334; Sun, 15 Jun 2025 09:55:04 +0200 (CEST) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id iPdHnSXhT0we; Sun, 15 Jun 2025 09:55:03 +0200 (CEST) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 1ACA71E3; Sun, 15 Jun 2025 09:55:02 +0200 (CEST) Date: Sun, 15 Jun 2025 09:55:01 +0200 From: Andreas Enge To: Maxim Cournoyer Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. Message-ID: References: <87zff8h603.fsf@friendly-machines.com> <87jz6cchqe.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87jz6cchqe.fsf@gmail.com> X-Rspamd-Server: hera X-Rspamd-Queue-Id: 1A526334 X-Spamd-Result: default: False [-4.60 / 15.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM(-2.00)[-0.668]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Action: no action X-Spamd-Bar: ---- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78484 Cc: 78484@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Maxim, I do not know what the progress in rust-team is (it has not filed a request to merge yet, but the latest commit is from the end of May), but just wanted to report that I could bootstrap rust on x86_64. On aarch64, already the very first step rust-1.74 fails with the following message: Process was terminated with signal 6 FAILING COMMAND: /tmp/guix-build-rust-1.74.0.drv-0/source/bin/mrustc rustc-1.74.0-src/vendor/compiler_builtins/src/lib.rs -o output/libcompiler_builtins-0_1_101_H10c.rlib -C emit-depfile=output/libcompiler_builtins-0_1_101_H10c.rlib.d --cfg debug_assertions -O -L output --cfg feature="compiler-builtins" --cfg feature="rustc-dep-of-std" --cfg feature="core" --cfg feature="dep:core" --crate-name compiler_builtins --crate-type rlib --crate-tag 0_1_101_H10c --cfg feature="unstable" --edition 2018 --extern core=output/librustc_std_workspace_core-1_99_0.rlib Env: OUT_DIR=/tmp/guix-build-rust-1.74.0.drv-0/source/output/build_compiler_builtins-0_1_101_H10c CARGO_MANIFEST_DIR=/tmp/guix-build-rust-1.74.0.drv-0/source/rustc-1.74.0-src/vendor/compiler_builtins CARGO_PKG_NAME=compiler_builtins CARGO_PKG_VERSION=0.1.101 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=101 (15.8% 1r,0w,15b,3c/19t): libc v0.2.148 Completed libc v0.2.148 (21.1% 0r,0w,15b,4c/19t): BUILD FAILED make: *** [minicargo.mk:236: LIBS] Error 1 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-f" "minicargo.mk" "LIBS" "RUSTC_TARGET=aarch64-unknown-linux-gnu" "RUSTC_VERSION=1.74.0" "MRUSTC_TARGET_VER=1.74" "RUSTC_SRC_TARBALL=/gnu/store/r7fn309n0jhki5a06ipwhlmk71mprql8-rustc-1.74.0-src.tar.zst" "OUTDIR_SUF=") exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed after 3856.9 seconds command "make" "-f" "minicargo.mk" "LIBS" "RUSTC_TARGET=aarch64-unknown-linux-gnu" "RUSTC_VERSION=1.74.0" "MRUSTC_TARGET_VER=1.74" "RUSTC_SRC_TARBALL=/gnu/store/r7fn309n0jhki5a06ipwhlmk71mprql8-rustc-1.74.0-src.tar.zst" "OUTDIR_SUF=" failed with status 2 build process 6 exited with status 256 Not very helpful, unfortunately. Andreas From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 03:34:34 2025 Received: (at 78484) by debbugs.gnu.org; 18 Jun 2025 07:34:34 +0000 Received: from localhost ([127.0.0.1]:44431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRnJZ-0007v6-CB for submit@debbugs.gnu.org; Wed, 18 Jun 2025 03:34:34 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:46842) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRmv8-0005BS-0g for 78484@debbugs.gnu.org; Wed, 18 Jun 2025 03:09:21 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1uRmuz-00BiCL-9c for 78484@debbugs.gnu.org; Wed, 18 Jun 2025 09:09:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=guixotic.coop; s=selector1; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From; bh=iJiis4OPWthuutUn/rBCxBGAxrqtFNp2yDQ1nxb2cUA=; b=pmGt5wPHdsvh52XfnF1ZR2SmCl Ma1Bk9QZIE5gcj+tChqe52A+38TqjJ/6pFGbiNIaUqWU97F7PlPVNJrZt4v40t5k5D0+z1Q0hlv6r l3obypYCoacTNhGbRQP+auFpsyocUtFijrBRjEpztFsjmDB7WJ9DdGxg3lieQTRdpe5BGSjPhBf5+ VzM6wXWkaH/jjLBSzzloBkUKgwAqTZkYv6dEDq0I9XrgKU33ke+2k3PPc1DJsXwE5r8uP0QSM5NOq 1BaOV13Dk6AR5wwvCiadl9rsREZUenti/dSkRRMZY/HPncUXLMz2mp7J+5vtVU8reQFeQE6z8paxL XX4V4LfA==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1uRmuy-00023T-RN; Wed, 18 Jun 2025 09:09:08 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (1476852)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1uRmuw-00EcsG-K8; Wed, 18 Jun 2025 09:09:07 +0200 From: Maxim Cournoyer To: Andreas Enge Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. In-Reply-To: (Andreas Enge's message of "Sun, 15 Jun 2025 09:55:01 +0200") Organization: Guixotic References: <87zff8h603.fsf@friendly-machines.com> <87jz6cchqe.fsf@gmail.com> Date: Wed, 18 Jun 2025 16:09:02 +0900 Message-ID: <87ldppzfu9.fsf@terra.mail-host-address-is-not-set> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78484 X-Mailman-Approved-At: Wed, 18 Jun 2025 03:34:32 -0400 Cc: 78484@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Andreas, Andreas Enge writes: > Hello Maxim, > > I do not know what the progress in rust-team is (it has not filed a > request to merge yet, but the latest commit is from the end of May), > but just wanted to report that I could bootstrap rust on x86_64. > > On aarch64, already the very first step rust-1.74 fails with the > following message: > Process was terminated with signal 6 > FAILING COMMAND: /tmp/guix-build-rust-1.74.0.drv-0/source/bin/mrustc > rustc-1.74.0-src/vendor/compiler_builtins/src/lib.rs -o > output/libcompiler_builtins-0_1_101_H10c.rlib -C > emit-depfile=output/libcompiler_builtins-0_1_101_H10c.rlib.d --cfg > debug_assertions -O -L output --cfg feature="compiler-builtins" --cfg > feature="rustc-dep-of-std" --cfg feature="core" --cfg > feature="dep:core" --crate-name compiler_builtins --crate-type rlib > --crate-tag 0_1_101_H10c --cfg feature="unstable" --edition 2018 > --extern core=output/librustc_std_workspace_core-1_99_0.rlib > Env: > OUT_DIR=/tmp/guix-build-rust-1.74.0.drv-0/source/output/build_compiler_builtins-0_1_101_H10c > CARGO_MANIFEST_DIR=/tmp/guix-build-rust-1.74.0.drv-0/source/rustc-1.74.0-src/vendor/compiler_builtins > CARGO_PKG_NAME=compiler_builtins CARGO_PKG_VERSION=0.1.101 > CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 > CARGO_PKG_VERSION_PATCH=101 > (15.8% 1r,0w,15b,3c/19t): libc v0.2.148 > Completed libc v0.2.148 > (21.1% 0r,0w,15b,4c/19t): > BUILD FAILED > make: *** [minicargo.mk:236: LIBS] Error 1 > error: in phase 'build': uncaught exception: > %exception #<&invoke-error program: "make" arguments: ("-f" > "minicargo.mk" "LIBS" "RUSTC_TARGET=aarch64-unknown-linux-gnu" > "RUSTC_VERSION=1.74.0" "MRUSTC_TARGET_VER=1.74" > "RUSTC_SRC_TARBALL=/gnu/store/r7fn309n0jhki5a06ipwhlmk71mprql8-rustc-1.74.0-src.tar.zst" > "OUTDIR_SUF=") exit-status: 2 term-signal: #f stop-signal: #f> > phase `build' failed after 3856.9 seconds > command "make" "-f" "minicargo.mk" "LIBS" > "RUSTC_TARGET=aarch64-unknown-linux-gnu" "RUSTC_VERSION=1.74.0" > "MRUSTC_TARGET_VER=1.74" > "RUSTC_SRC_TARBALL=/gnu/store/r7fn309n0jhki5a06ipwhlmk71mprql8-rustc-1.74.0-src.tar.zst" > "OUTDIR_SUF=" failed with status 2 > build process 6 exited with status 256 > > Not very helpful, unfortunately. If you ever have the time/interest to dig deeper, you could report that to https://github.com/thepowersgang/mrustc/issues; the author is usually keen to troubleshoot issues and will probably ask extra steps from you to gather more hints. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 03:48:56 2025 Received: (at 78484) by debbugs.gnu.org; 4 Aug 2025 07:48:56 +0000 Received: from localhost ([127.0.0.1]:48898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uipwF-0001Wg-V6 for submit@debbugs.gnu.org; Mon, 04 Aug 2025 03:48:56 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:39276) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uipwC-0001WK-E1 for 78484@debbugs.gnu.org; Mon, 04 Aug 2025 03:48:53 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6866930A; Mon, 4 Aug 2025 09:48:45 +0200 (CEST) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id hKjcCX9vgQh1; Mon, 4 Aug 2025 09:48:44 +0200 (CEST) Received: from jurong (86.56.141.77.rev.sfr.net [77.141.56.86]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8AB7516C; Mon, 4 Aug 2025 09:48:43 +0200 (CEST) Date: Mon, 4 Aug 2025 09:48:42 +0200 From: Andreas Enge To: Maxim Cournoyer Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. Message-ID: References: <87zff8h603.fsf@friendly-machines.com> <87jz6cchqe.fsf@gmail.com> <87ldppzfu9.fsf@terra.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ldppzfu9.fsf@terra.mail-host-address-is-not-set> X-Spamd-Result: default: False [-5.12 / 15.00]; NEURAL_HAM(-3.00)[-1.000]; BAYES_HAM(-2.52)[97.84%]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_CC(0.00)[gmail.com,debbugs.gnu.org] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 6866930A X-Rspamd-Server: hera X-Spamd-Bar: ----- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78484 Cc: 78484@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Wed, Jun 18, 2025 at 04:09:02PM +0900 schrieb Maxim Cournoyer: > If you ever have the time/interest to dig deeper Well, I am not really interested in rust, I just wanted to provide a data point; shortening the rust bootstrap would be nice for the build farms ;-) Andreas From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 05 22:24:04 2025 Received: (at 78484-done) by debbugs.gnu.org; 6 Aug 2025 02:24:04 +0000 Received: from localhost ([127.0.0.1]:57459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ujTox-0004EH-Lg for submit@debbugs.gnu.org; Tue, 05 Aug 2025 22:24:04 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:42168) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ujTov-0004Dg-0e for 78484-done@debbugs.gnu.org; Tue, 05 Aug 2025 22:24:01 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ujTon-00C7Aa-IP; Wed, 06 Aug 2025 04:23:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=guixotic.coop; s=selector1; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From; bh=XJ+acQV8t6IEDKaPKRi1gMv6wSjmcnsObR2e6487pGk=; b=ttjyj2ii/Qv0+a1+zvg4ElUYrk H3eNl7qronLSB9nkH/mBQi9SQ1GFpWW9zBdOq6JvDi33Bw3YVjDe7cuWZlbAHdu4Ly+ePgT6UyaUA BJF7kku3g3TTZ3JAFH6hAO0MM1rewqLzjL352oM0x64LZbddTt96y2YPQvZzm6xQmdcXDWM+qK2fv qS1tHAbtAxyicgxzO/ss4ucztIuMC9IlD9nCqFbADhN4Y//fOuBMVkkq4OuPbD73m3b5vaPbeoLid 3i9DlXMz3+x4FAyn+BSJgG8ysBFe0aS+5DQ3UkRoFs8vWuVpfJ1cyqXZPhhictcIAo0PrPj9JczCe Rbx1NSjA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ujTon-0007Eg-5i; Wed, 06 Aug 2025 04:23:53 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (1476852)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1ujToR-006yL6-Dp; Wed, 06 Aug 2025 04:23:31 +0200 From: Maxim Cournoyer To: Andreas Enge Subject: Re: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0. In-Reply-To: Organization: Guixotic References: <87zff8h603.fsf@friendly-machines.com> <87jz6cchqe.fsf@gmail.com> <87ldppzfu9.fsf@terra.mail-host-address-is-not-set> Date: Wed, 06 Aug 2025 11:23:27 +0900 Message-ID: <87v7n1xk68.fsf@guixotic.coop> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78484-done Cc: 78484-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Andreas Enge writes: > Am Wed, Jun 18, 2025 at 04:09:02PM +0900 schrieb Maxim Cournoyer: >> If you ever have the time/interest to dig deeper > > Well, I am not really interested in rust, I just wanted to provide a data > point; shortening the rust bootstrap would be nice for the build farms ;-) Let's close this, I'm happy to leave the rust-team handle the issue, which they already do on their branch. -- Thanks, Maxim From unknown Sat Sep 06 21:08:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 03 Sep 2025 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator