Skip to content
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

build/bootstrap/debug/rustc -vV throws error with env #96945

Closed
vinay110974 opened this issue May 11, 2022 · 3 comments
Closed

build/bootstrap/debug/rustc -vV throws error with env #96945

vinay110974 opened this issue May 11, 2022 · 3 comments
Labels
C-bug Category: This is a bug.

Comments

@vinay110974
Copy link

Hi,

We are implementing Oe-Selftest for rust in Yocto Framework.
The test runs complete rust testsuite for all folders.
However, we are facing an issue while printing the verbose details in many testcases.
It is hindering the test process and unable to run many folders.

$oe-selftest/build-st/tmp/work/core2-64-poky-linux/
rust-testsuite/1.60.0-r0/rustc-1.60.0-src/build/bootstrap/debug/rustc -vV

thread 'main' panicked at 'RUSTC_SYSROOT was not set', src/bootstrap/bin/rustc.rs:50:48
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Same issue is observed with rust native build also.
It was noted that the issue has been addressed earlier as:- #39888

Can you please let us know whether the issue still persists in rust or we missing anything
while building rust that addresses the issue?

Regards,
Vinay

@vinay110974 vinay110974 added the C-bug Category: This is a bug. label May 11, 2022
@ehuss
Copy link
Contributor

ehuss commented May 11, 2022

Typically you should never run the bootstrap wrappers directly. You should run the rustc from the appropriate stage directory. For example, build/x86_64-unknown-linux-gnu/stage1/bin/rustc -vV

@vinay110974
Copy link
Author

Hi @ehuss,

Thanks for quick reply.
build/x86_64-unknown-linux-gnu/stage1/bin/rustc -vV gives the expected output.

rustc 1.60.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.60.0-dev
LLVM version: 14.0.0

Will check with rust test-suite and update.

@jyn514
Copy link
Member

jyn514 commented Jun 20, 2022

Going to close this since using the fake rustc shim directly isn't supported.

@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants