Closed
Description
I followed instructions for avr-rust
and blink
compilation. But I am getting this error:
$ RUST_BACKTRACE=1 rustup run avr-toolchain xargo build --target avr-atmega328p --release --verbose
+ "rustc" "rustc" "--print" "sysroot"
+ "rustc" "rustc" "--print" "target-list"
+ RUSTFLAGS="--sysroot /home/greatgodoffire/.xargo -Z force-unstable-if-unmarked"
+ "cargo" "cargo" "build" "--release" "--manifest-path" "/tmp/xargo.MNxWNBlqynYS/Cargo.toml" "--target" "avr-atmega328p" "-v" "-p" "core"
warning: Patch `rustc-std-workspace-alloc v1.0.0 (/home/greatgodoffire/rust/rust/src/tools/rustc-std-workspace-alloc)` was not used in the crate graph.
Patch `rustc-std-workspace-core v1.0.0 (/home/greatgodoffire/rust/rust/src/tools/rustc-std-workspace-core)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Compiling core v0.0.0 (/home/greatgodoffire/rust/rust/src/libcore)
Running `rustc --crate-name core --edition=2018 /home/greatgodoffire/rust/rust/src/libcore/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=e4bf3f58269cc549 -C extra-filename=-e4bf3f58269cc549 --out-dir /tmp/xargo.MNxWNBlqynYS/target/avr-atmega328p/release/deps --target avr-atmega328p -L dependency=/tmp/xargo.MNxWNBlqynYS/target/avr-atmega328p/release/deps -L dependency=/tmp/xargo.MNxWNBlqynYS/target/release/deps --sysroot /home/greatgodoffire/.xargo -Z force-unstable-if-unmarked`
error: Unrecognized option: 'json'
error: could not compile `core`.
Caused by:
process didn't exit successfully: `rustc --crate-name core --edition=2018 /home/greatgodoffire/rust/rust/src/libcore/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=e4bf3f58269cc549 -C extra-filename=-e4bf3f58269cc549 --out-dir /tmp/xargo.MNxWNBlqynYS/target/avr-atmega328p/release/deps --target avr-atmega328p -L dependency=/tmp/xargo.MNxWNBlqynYS/target/avr-atmega328p/release/deps -L dependency=/tmp/xargo.MNxWNBlqynYS/target/release/deps --sysroot /home/greatgodoffire/.xargo -Z force-unstable-if-unmarked` (exit code: 1)
error: `"cargo" "cargo" "build" "--release" "--manifest-path" "/tmp/xargo.MNxWNBlqynYS/Cargo.toml" "--target" "avr-atmega328p" "-v" "-p" "core"` failed with exit code: Some(101)
stack backtrace:
0: error_chain::make_backtrace
1: <error_chain::State as core::default::Default>::default
2: <std::process::Command as xargo::extensions::CommandExt>::run
3: xargo::sysroot::build
4: xargo::sysroot::update
5: xargo::main_inner
6: std::rt::lang_start::{{closure}}
7: std::rt::lang_start_internal::{{closure}}
at src/libstd/rt.rs:52
std::panicking::try::do_call
at src/libstd/panicking.rs:292
8: __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
9: std::panicking::try
at src/libstd/panicking.rs:270
std::panic::catch_unwind
at src/libstd/panic.rs:394
std::rt::lang_start_internal
at src/libstd/rt.rs:51
10: main
11: __libc_start_main
12: _start
I'm using Ubuntu 16.04 and I've compiled avr-rust
yesterday.
$ xargo --version
xargo 0.3.19
cargo 1.42.0-nightly (9d32b7b01 2020-01-26)
Metadata
Metadata
Assignees
Labels
No labels