Dear maintainer, Rust compilation fails with: -------------------------------------8<------------------------------------- [...] Building stage0 std artifacts (x86_64-unknown-freebsd -> x86_64-unknown-freebsd) running: "/usr/ports/lang/rust/work/rustc-1.19.0-src/build/x86_64-unknown-freebsd/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-freebsd" "-v" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/libstd/Cargo.toml" "--message-format" "json" Fresh libc v0.2.22 Fresh gcc v0.3.50 Fresh core v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libcore) Fresh std_unicode v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libstd_unicode) Fresh rand v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/librand) Fresh alloc v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/liballoc) Fresh filetime v0.1.10 Fresh build_helper v0.1.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/build_helper) Fresh collections v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libcollections) Fresh libc v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/rustc/libc_shim) Fresh alloc_system v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/liballoc_system) Fresh unwind v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libunwind) Fresh panic_abort v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libpanic_abort) Fresh panic_unwind v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libpanic_unwind) Fresh compiler_builtins v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libcompiler_builtins) Fresh alloc_jemalloc v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/liballoc_jemalloc) Fresh std v0.0.0 (file:///usr/ports/lang/rust/work/rustc-1.19.0-src/src/libstd) Finished release [optimized] target(s) in 0.0 secs executing step Step { name: "libstd-link", stage: 0, host: "x86_64-unknown-freebsd", target: "x86_64-unknown-freebsd" } Copying stage0 std from stage0 (x86_64-unknown-freebsd -> x86_64-unknown-freebsd / x86_64-unknown-freebsd) executing step Step { name: "libstd", stage: 0, host: "x86_64-unknown-freebsd", target: "x86_64-unknown-freebsd" } executing step Step { name: "libstd-tool", stage: 0, host: "x86_64-unknown-freebsd", target: "x86_64-unknown-freebsd" } Dirty - /usr/ports/lang/rust/work/rustc-1.19.0-src/build/x86_64-unknown-freebsd/stage0-tools/x86_64-unknown-freebsd/release executing step Step { name: "maybe-clean-tools", stage: 0, host: "x86_64-unknown-freebsd", target: "x86_64-unknown-freebsd" } executing step Step { name: "tool-rust-installer", stage: 0, host: "x86_64-unknown-freebsd", target: "x86_64-unknown-freebsd" } Building stage0 tool rust-installer (x86_64-unknown-freebsd) running: "/usr/ports/lang/rust/work/rustc-1.19.0-src/build/x86_64-unknown-freebsd/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-freebsd" "-v" "--release" "--frozen" "--manifest-path" "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/tools/rust-installer/Cargo.toml" error: the listed checksum of `/usr/ports/lang/rust/work/rustc-1.19.0-src/src/vendor/lzma-sys/xz-5.2.3/build-aux/config.rpath` has changed: expected: c8b4c017079da9dfb3086a0583e60ffe736184d89005dc5973f0bb0fd17c04bb actual: 561b00eb30ecaef2c9da17bc195e7d2a7ea63facea38ea9849fbb0ed340bebba directory sources are not intended to be edited, if modifications are required then it is recommended that [replace] is used with a forked copy of the source command did not execute successfully: "/usr/ports/lang/rust/work/rustc-1.19.0-src/build/x86_64-unknown-freebsd/stage0/bin/cargo" "build" "-j" "4" "--target" "x86_64-unknown-freebsd" "-v" "--release" "--frozen" "--manifest-path" "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/tools/rust-installer/Cargo.toml" expected success, got: exit code: 101 Traceback (most recent call last): File "/usr/ports/lang/rust/work/rustc-1.19.0-src/x.py", line 20, in <module> bootstrap.main() File "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/bootstrap/bootstrap.py", line 678, in main bootstrap() File "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/bootstrap/bootstrap.py", line 670, in bootstrap run(args, env=env, verbose=rb.verbose) File "/usr/ports/lang/rust/work/rustc-1.19.0-src/src/bootstrap/bootstrap.py", line 142, in run raise RuntimeError(err) RuntimeError: failed to run: /usr/ports/lang/rust/work/rustc-1.19.0-src/build/bootstrap/debug/bootstrap install --verbose --config ./config.toml --jobs 4 *** Error code 1 Stop. make[1]: stopped in /usr/ports/lang/rust *** Error code 1 Stop. make: stopped in /usr/ports/lang/rust -------------------------------------8<------------------------------------- sha256 of /usr/ports/lang/rust/work/rustc-1.19.0-src/src/vendor/lzma-sys/xz-5.2.3/build-aux/config.rpath is 561b00eb30ecaef2c9da17bc195e7d2a7ea63facea38ea9849fbb0ed340bebba. I fetched an upstream tarball of xz-5.2.3, the sha256 of the file is c8b4c017079da9dfb3086a0583e60ffe736184d89005dc5973f0bb0fd17c04bb as expected. Replacing the config.rpath file allowed me to resume the build. There is a minor difference between those files: -------------------------------------8<------------------------------------- diff /usr/ports/lang/rust/work/rustc-1.19.0-src/src/vendor/lzma-sys/xz-5.2.3/build-aux/config.rpath /tmp/config.rpath 553c553 < freebsd[123].*) --- > freebsd[123]*) -------------------------------------8<------------------------------------- I have not found where this difference comes from… Hopping you may have an idea about what is going wrong!
Maintainer informed via mail
> error: the listed checksum of `/usr/ports/lang/rust/work/rustc-1.19.0-src/src/vendor/lzma-sys/xz-5.2.3/build-aux/config.rpath` has changed: > expected: c8b4c017079da9dfb3086a0583e60ffe736184d89005dc5973f0bb0fd17c04bb > actual: 561b00eb30ecaef2c9da17bc195e7d2a7ea63facea38ea9849fbb0ed340bebba This has been already reported. See parent bug for the pending fix. *** This bug has been marked as a duplicate of bug 221088 ***