Skip to content

build-std: the build is broken after rust-lang/rust#73265 #8557

Closed
@JohnTitor

Description

@JohnTitor

Problem

Cargo now says when I use build-std feature with today(2020-07-29)'s nightly:

error: failed to read `/home/me/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

This assumes there're libstd and other paths but it has been changed in rust-lang/rust#73265:

String::from("src/libstd"),
String::from("src/libcore"),
String::from("src/liballoc"),
String::from("src/libtest"),

I think this should be also updated.

Steps

e.g. cargo build --target hexagon-unknown-linux-musl -Z build-std=core,alloc

Output of cargo version:

cargo 1.47.0-nightly (aa68721 2020-07-23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions