Closed
Description
openedon Jul 14, 2023
Build of rust 1.71.0
fails on Linux/aarch64 (bootstrapped by system rust 1.70.0
) with:
running: LD_LIBRARY_PATH="/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/lib:/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/lib" RUSTC="/usr/bin/rustc" RUSTC_BOOTSTRAP="1" "/home
/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage0-tools-bin/lint-docs" "--src" "/home/users/builder/rpm/BUILD/rustc-1.71.0-src/compiler" "--out" "/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/
md-doc/rustc/src/lints" "--rustc" "/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "--rustc-target" "aarch64-unknown-linux-gnu" "--verbose"
compiling lint forbidden_lint_groups
running: cd "/home/users/builder/tmp/.tmpxILHkF" && "/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "--edition=2018" "--error-format=json" "--target" "aarch64-unknown-linux-gnu" "lint_example.rs"
warning: the code example in lint `forbidden_lint_groups` in /home/users/builder/rpm/BUILD/rustc-1.71.0-src/compiler/rustc_lint_defs/src/builtin.rs failed to generate the expected output: did not find lint `forbidden_lint_groups` in output of example, got:
/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/bin/rustc: error while loading shared libraries: librustc_driver-c3edb2d0282ade3e.so: cannot open shared object file: No such file or directory
compiling lint ill_formed_attribute_input
running: cd "/home/users/builder/tmp/.tmpoGbUcU" && "/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "--edition=2018" "--error-format=json" "--target" "aarch64-unknown-linux-gnu" "lint_example.rs"
warning: the code example in lint `ill_formed_attribute_input` in /home/users/builder/rpm/BUILD/rustc-1.71.0-src/compiler/rustc_lint_defs/src/builtin.rs failed to generate the expected output: did not find lint `ill_formed_attribute_input` in output of exa
mple, got:
/home/users/builder/rpm/BUILD/rustc-1.71.0-src/build/aarch64-unknown-linux-gnu/stage2/bin/rustc: error while loading shared libraries: librustc_driver-c3edb2d0282ade3e.so: cannot open shared object file: No such file or directory
I believe the culprit is explicit removal of LD_LIBRARY_PATH
despite it being apparently necessary in this case:
rust/src/tools/lint-docs/src/lib.rs
Line 411 in 8ede3aa
I see on master this was already reverted in 67b5990 but looks like it missed the release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Category: This is a bug.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the release subteam, which will review and decide on the PR/issue.Accepted for backporting to the compiler in the beta channel.Performance or correctness regression from one stable version to another.Accepted for backporting to the compiler in the stable channel.