Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 667026

Summary: dev-lang/rust-9999 - cargo clippy: error[E0463]: can't find crate for `core`
Product: Gentoo Linux Reporter: unlord
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description unlord 2018-09-25 09:27:41 UTC
After emerging rust-9999 with clippy useflag on, running "cargo clippy" fails with:

$ cargo clippy
    Checking libc v0.2.43                                                                                                                                                         
    Checking unicode-width v0.1.5                                                                                                                                                 
    Checking bitflags v1.0.4                                                                                                                                                      
    Checking cfg-if v0.1.5                                                                                                                                                        
error[E0463]: can't find crate for `core`                                                                                                                                         
                                                                                                                                                                                  
error: aborting due to previous error                                                                                                                                             
                                                                                                                                                                                  
For more information about this error, try `rustc --explain E0463`.                                                                                                               
error: Could not compile `cfg-if`.                                                                                                                                                
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `std`                                                                                                                                          
                                                                                                                                                                                  
error: aborting due to previous error                                                                                                                                             
                                                                                                                                                                                  
For more information about this error, try `rustc --explain E0463`.                                                                                                               
error[E0463]: can't find crate for `core`                                                                                                                                         
                                                                                                                                                                                  
error: aborting due to previous error                                                                                                                                             
                                                                                                                                                                                  
For more information about this error, try `rustc --explain E0463`.                                                                                                               
error: Could not compile `libc`.                                                                                                                                                  
warning: build failed, waiting for other jobs to finish...
error: Could not compile `bitflags`.                                                                                                                                              
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `core`                                                                                                                                         
                                                                                                                                                                                  
error: aborting due to previous error                                                                                                                                             
                                                                                                                                                                                  
For more information about this error, try `rustc --explain E0463`.                                                                                                               
error: Could not compile `unicode-width`.                                                                                                                                         

To learn more, run the command again with --verbose.

Reproducible: Always

Steps to Reproduce:
1. USE="rustfmt clippy" emerge =rust-9999*
2. cargo clipppy
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-09-25 13:09:11 UTC
The official gentoo tree doesn't contain a rust-9999 ebuild. Assuming you have the rust overlay enabled and are getting it there, please report your issue here: https://github.com/gentoo/gentoo-rust/issues.
Comment 2 unlord 2018-09-26 01:49:43 UTC
Thanks, you can find that issue here:

https://github.com/gentoo/gentoo-rust/issues/368