Skip to content

./x.py dist fails in rust 1.71.0 on lint-docs #113678

Closed

Description

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:

cmd.env_remove("LD_LIBRARY_PATH");

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

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-releaseRelevant to the release subteam, which will review and decide on the PR/issue.beta-acceptedAccepted for backporting to the compiler in the beta channel.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.stable-acceptedAccepted for backporting to the compiler in the stable channel.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions