Skip to content

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

Not planned
@vinay110974

Description

@vinay110974

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

Activity

ehuss

ehuss commented on May 11, 2022

@ehuss
Contributor

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

vinay110974 commented on May 13, 2022

@vinay110974
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

jyn514 commented on Jun 20, 2022

@jyn514
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@jyn514@vinay110974

        Issue actions

          build/bootstrap/debug/rustc -vV throws error with env · Issue #96945 · rust-lang/rust