Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Closed
japaric opened this Issue Mar 4, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@japaric
Copy link
Member

japaric commented Mar 4, 2018

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

@japaric

This comment has been minimized.

Copy link
Member Author

japaric commented Mar 4, 2018

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

newpavlov added a commit to RustCrypto/block-ciphers that referenced this issue Mar 4, 2018

newpavlov added a commit to RustCrypto/block-ciphers that referenced this issue Mar 4, 2018

alexcrichton added a commit to alexcrichton/rust that referenced this issue Mar 4, 2018

bors added a commit that referenced this issue Mar 4, 2018

Auto merge of #48736 - alexcrichton:fix-rust-src, r=3
Include stdsimd in rust-src component

Closes #48734

@bors bors closed this in #48736 Mar 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.