Closed
Description
I followed instructions for avr-rust
and blink
compilation. But I am getting this error:
➤ rustup run avr-toolchain xargo build --target avr-atmega328p --release
warning: Patch `rustc-std-workspace-core v1.0.0 (/home/linguini/Desktop/rust/rust-avr/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.
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --sysroot /home/linguini/.xargo -Z force-unstable-if-unmarked --target avr-atmega328p --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro` (exit code: 1)
--- stderr
error: Error loading target specification: Could not find specification for target "avr-atmega328p"
|
= help: Use `--print target-list` for a list of built-in targets
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.GqdRz0LJNIMX/Cargo.toml" "--target" "avr-atmega328p" "-p" "core"` failed with exit code: Some(101)
stack backtrace:
0: error_chain::make_backtrace::h90af62d5c4a6fbd6 (0x55fde99c316b)
1: <error_chain::State as core::default::Default>::default::h23f817a122243ac9 (0x55fde99c3235)
2: <std::process::Command as xargo::extensions::CommandExt>::run::h01346a6b4f35f543 (0x55fde9976d4b)
3: xargo::sysroot::build::h240260972f2e09ed (0x55fde997e541)
4: xargo::sysroot::update::h94fd82f52808b493 (0x55fde998265d)
5: xargo::main::ha282b52dabbcaa07 (0x55fde996fc7a)
6: std::rt::lang_start::{{closure}}::h6c099b348d99c7de (0x55fde99738f2)
7: std::rt::lang_start_internal::{{closure}}::h53f6e74893a27d59 (0x55fde99ee162)
at src/libstd/rt.rs:59
std::panicking::try::do_call::h8945e3e0fe63365a
at src/libstd/panicking.rs:307
8: __rust_maybe_catch_panic (0x55fde99fb1a9)
at src/libpanic_unwind/lib.rs:102
9: std::panicking::try::hee49dda4da841cb1 (0x55fde99ee058)
at src/libstd/panicking.rs:286
10: std::panic::catch_unwind::h89d0b17e1bb724c9 (0x55fde99e1665)
at src/libstd/panic.rs:398
std::rt::lang_start_internal::hcbec2a0475a1169a
at src/libstd/rt.rs:58
11: main (0x55fde9970a61)
12: __libc_start_main (0x7f6283dcf222)
13: _start (0x55fde99601ad)
14: <unknown> (0x0)
I'm using Arch Linux and I used latest version of avr-rust
from avr-support
branch(cea79f77f5eac10eddf63e1e8728fd0e34c5998f).
➤ rustup -V
rustup 1.16.0
➤ xargo -V
xargo 0.3.13
cargo 1.34.0-nightly (865cb7010 2019-02-10)
Metadata
Metadata
Assignees
Labels
No labels