Skip to content

build-std seems broken in nightly (rustc 1.71.0-nightly (74c482104 2023-05-04)) #111225

New issue

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

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

Already on GitHub? # to your account

Closed
Tracked by #393
gamozolabs opened this issue May 5, 2023 · 3 comments
Closed
Tracked by #393
Labels
-Zbuild-std Unstable Cargo option: Compile the standard library yourself. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. requires-nightly This issue requires a nightly compiler in some way.

Comments

@gamozolabs
Copy link

When I attempt to build (seemingly anything) with -Zbuild-std=core on nightly I get an error with package test not having the feature backtrace.

This seems to affect a random sampling of targets I picked, it seems more fundamental than that:

pleb@gamey ~/regression $ cat src/main.rs 
#![no_std]
#![no_main]

#[panic_handler]
fn panic(pi: &core::panic::PanicInfo) -> ! {
    loop {}
}

#[no_mangle]
extern fn efi_main() {
}
pleb@gamey ~/regression $ cat Cargo.toml 
[package]
name = "regression"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pleb@gamey ~/regression $ cargo build --target powerpc-unknown-freebsd -Zbuild-std=core
error: Package `test v0.0.0 (/home/pleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test)` does not have the feature `backtrace`
pleb@gamey ~/regression $ cargo build --target x86_64-unknown-none -Zbuild-std=core
error: Package `test v0.0.0 (/home/pleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test)` does not have the feature `backtrace`
pleb@gamey ~/regression $ cargo build --target x86_64-unknown-uefi -Zbuild-std=core
error: Package `test v0.0.0 (/home/pleb/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/test)` does not have the feature `backtrace`
@gamozolabs gamozolabs changed the title build-std seems broken in in nightly (rustc 1.71.0-nightly (74c482104 2023-05-04)) build-std seems broken in nightly (rustc 1.71.0-nightly (74c482104 2023-05-04)) May 5, 2023
@jyn514 jyn514 added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. requires-nightly This issue requires a nightly compiler in some way. -Zbuild-std Unstable Cargo option: Compile the standard library yourself. labels May 5, 2023
@jyn514
Copy link
Member

jyn514 commented May 5, 2023

Probably caused by #108865

@mqudsi
Copy link
Contributor

mqudsi commented May 6, 2023

Yes, #108865 is the one behind this. It should be fixed by rust-lang/cargo#12088, probably in the next cargo nightly build.

@ehuss
Copy link
Contributor

ehuss commented May 6, 2023

I believe this is now fixed in the latest nightly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
-Zbuild-std Unstable Cargo option: Compile the standard library yourself. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. requires-nightly This issue requires a nightly compiler in some way.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants