Skip to content

x test src/tools/lint-docs fails when download-rustc is enabled #110354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jyn514 opened this issue Apr 15, 2023 · 1 comment · Fixed by #110521
Closed

x test src/tools/lint-docs fails when download-rustc is enabled #110354

jyn514 opened this issue Apr 15, 2023 · 1 comment · Fixed by #110521
Labels
A-download-rustc Area: The `rust.download-rustc` build option. A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@jyn514
Copy link
Member

jyn514 commented Apr 15, 2023

I tried this code: ./configure --set download-rustc && x test src/tools/lint-docs

I expected to see this happen: All tests pass.

Instead, this happened:

Building tool lint-docs (stage0)
    Finished release [optimized] target(s) in 0.10s
error: failed to test example in lint docs for `forbidden_lint_groups` in /home/jyn/src/rust/compiler/rustc_lint_defs/src/builtin.rs:11: did not find lint `forbidden_lint_groups` in output of example, got:
/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc: symbol lookup error: /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustc_driver-51fc469e8c788ca6.so: undefined symbol: LLVMInitializeLoongArchTargetInfo, version LLVM_16

This looks like the same issue as #110226; not sure why #110263 didn't fix it.

Meta

HEAD is branched from ce1073b.

@jyn514 jyn514 added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. A-download-rustc Area: The `rust.download-rustc` build option. labels Apr 15, 2023
@jyn514
Copy link
Member Author

jyn514 commented Apr 15, 2023

Note that x test linkchecker depends on lint-docs / src/doc/rustc; when you fix this issue you should also double check that x test linkchecker is fixed.

@jyn514 jyn514 added the A-testsuite Area: The testsuite used to check the correctness of rustc label Apr 15, 2023
@bors bors closed this as completed in 1de29ac Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-download-rustc Area: The `rust.download-rustc` build option. A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant