-
Notifications
You must be signed in to change notification settings - Fork 93
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
Xargo bombs with "no such file or directory" when compiling crates #158
Comments
Can confirm I see this too. Here's the output from an attempted build of $ xargo build --verbose
+ "rustc" "--print" "sysroot"
+ "rustc" "--print" "target-list"
+ "cargo" "build" "--release" "--manifest-path" "/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/Cargo.toml" "--target" "msp430-none-elf" "-v" "-p" "core"
Compiling core v0.0.0 (file:///Users/kivikakk/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Running `rustc --crate-name core /Users/kivikakk/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=b0cb4fa932d9e93e -C extra-filename=-b0cb4fa932d9e93e --out-dir /var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps --target msp430-none-elf -L dependency=/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps -L dependency=/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/release/deps -C link-arg=-nostartfiles -C link-arg=-Tlink.x --sysroot /Users/kivikakk/.xargo -Z force-unstable-if-unmarked`
error: linking with `msp430-elf-gcc` failed: exit code: 1
|
= note: "msp430-elf-gcc" "-mcpu=msp430" "-c" "-o" "/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps/core-b0cb4fa932d9e93e.o" "/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps/core-b0cb4fa932d9e93e.s"
= note: msp430-elf-gcc: error: /var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps/core-b0cb4fa932d9e93e.s: No such file or directory
msp430-elf-gcc: fatal error: no input files
compilation terminated.
error: aborting due to previous error
error: Could not compile `core`.
Caused by:
process didn't exit successfully: `rustc --crate-name core /Users/kivikakk/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=b0cb4fa932d9e93e -C extra-filename=-b0cb4fa932d9e93e --out-dir /var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps --target msp430-none-elf -L dependency=/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/msp430-none-elf/release/deps -L dependency=/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/target/release/deps -C link-arg=-nostartfiles -C link-arg=-Tlink.x --sysroot /Users/kivikakk/.xargo -Z force-unstable-if-unmarked` (exit code: 101)
error: `"cargo" "build" "--release" "--manifest-path" "/var/folders/57/6bcdkjmj7zz1zm5t_7fyn0y40000gn/T/xargo.ANZYoQs0mwbP/Cargo.toml" "--target" "msp430-none-elf" "-v" "-p" "core"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace And the backtrace: stack backtrace:
0: 0x103830bce - backtrace::backtrace::trace::h0f497b1bcba29b5f
1: 0x103830c0c - backtrace::capture::Backtrace::new::h7c68c9466c6ae5c9
2: 0x1038302a6 - error_chain::make_backtrace::h20f55bd347aa1bfe
3: 0x103830368 - _$LT$error_chain..State$u20$as$u20$core..default..Default$GT$::default::hc4a17d73ac756ba0
4: 0x103819975 - xargo::sysroot::update::hbe5628cfed21c0fa
5: 0x1038235f0 - xargo::run::he83b978444922056
6: 0x10381f69f - xargo::main::h59bc5ba11103c3e5
7: 0x10387371e - __rust_maybe_catch_panic
8: 0x103868b58 - std::rt::lang_start::h04a8930cf31652a8 |
Looks like rust-lang/rust#45836. This is something that has to be fixed in rustc. |
msp430 build looks fine on lastest nightly now that rust-lang/rust#45836 is in! 👍 (The compile for the |
@kivikakk thanks for reporting! Let's close this then. |
I suspect this is
xargo
because the crates I had to compile to runxargo
successfully in the first place compiled without issue. Below is an example invocation. I can also duplicate this with themsp430-quickstart
repository.Here are the contents of the xargo directory while core is being compiled (same idea, different invocation):
Only the dependencies (?)
.d
file ends up in this directory where the object and assembly files should be emitted. So indeed,rustc
can't find the objects to pass to the msp430 assembler. What I haven't figured out yet is: "where did the assembler output go?"The text was updated successfully, but these errors were encountered: