Skip to content

Can't compile core from the rust-src component #48734

Closed
@japaric

Description

@japaric

STR

$ rustup component add rust-src

$ cd $(rustc --print sysroot)/lib/rustlib/src/rust/src/libcore

$ cargo build
   Compiling core v0.0.0 (file:///home/japaric/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
error: couldn't read "../stdsimd/coresimd/mod.rs": No such file or directory (os error 2)
   --> lib.rs:199:5
    |
199 | mod coresimd;
    |     ^^^^^^^^

error: aborting due to previous error

error: Could not compile `core`.

Metadata

$ rustc -V
rustc 1.26.0-nightly (e026b59cf 2018-03-03)

Workaround

$ # switch to an older nightly
$ rustup default nightly-2018-03-03

cc @alexcrichton possibly caused by #48513; it seems that stdsimd will have to be included in rust-src

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions