Skip to content

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

Closed

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

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    on Mar 4, 2018
  2. japaric commented on Mar 4, 2018

    @japaric
    ContributorAuthor

    Also, this broke Xargo and the development workflow of all the no_std / embedded users who use it. cc @aturon

  3. added a commit that references this issue on Mar 4, 2018
    2f2ac9a
  4. added a commit that references this issue on Mar 4, 2018
    e2746d8
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.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