Compilation fails because of libcore
dmitriy-serdyuk opened this issue · 2 comments
dmitriy-serdyuk commented
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
Compiling core v0.0.0 (/data/projects/rust/src/libcore)
Expected either Y or Z register
UNREACHABLE executed at /Volumes/data/projects/rust/src/llvm/lib/Target/AVR/MCTargetDesc/AVRMCCodeEmitter.cpp:146!
error: Could not compile `core`.
Caused by:
process didn't exit successfully: `rustc --crate-name core /data/projects/rust/src/libcore/lib.rs --color always --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=e108d56649d84ee9 -C extra-filename=-e108d56649d84ee9 --out-dir /var/folders/gr/btjlj89x0y17vf4ndzl5vklh0000gn/T/xargo.J7xalPBrudXQ/target/avr-atmega328p/release/deps --target avr-atmega328p -L dependency=/var/folders/gr/btjlj89x0y17vf4ndzl5vklh0000gn/T/xargo.J7xalPBrudXQ/target/avr-atmega328p/release/deps -L dependency=/var/folders/gr/btjlj89x0y17vf4ndzl5vklh0000gn/T/xargo.J7xalPBrudXQ/target/release/deps --sysroot /Users/dima/.xargo -Z force-unstable-if-unmarked` (signal: 6, SIGABRT: process abort signal)
error: `"cargo" "build" "--release" "--manifest-path" "/var/folders/gr/btjlj89x0y17vf4ndzl5vklh0000gn/T/xargo.J7xalPBrudXQ/Cargo.toml" "--target" "avr-atmega328p" "-p" "core"` failed with exit code: Some(101)
stack backtrace:
0: error_chain::make_backtrace::h166fa119e1985af1 (0x10096842f)
1: <error_chain::State as core::default::Default>::default::h18ae0d13c0463715 (0x100968508)
2: <std::process::Command as xargo::extensions::CommandExt>::run::h88ad1c2e9a782259 (0x1009199c8)
3: xargo::sysroot::build::hd0470fbf77e421f3 (0x100921bc9)
4: xargo::sysroot::update::hd8eeb1f442bbaa50 (0x100925e3b)
5: xargo::main::h47d600b4ed14ec0b (0x10091270b)
6: std::rt::lang_start::{{closure}}::h374674c83cbdbbae (0x100935145)
7: std::panicking::try::do_call::h851b364ae5b66c84 (0x10098a657)
8: ___rust_maybe_catch_panic (0x10099843e)
9: std::panicking::try::h58b3913a15145a6c (0x10098a547)
10: std::rt::lang_start_internal::h38db6b8e7df2b1dd (0x10097e4d2)
11: _main (0x1009134a8)
I'm using Mac and I used latest version of avr-rust
from avr-support
branch (cea79f77f5eac).
dmitriy-serdyuk commented
avr-rust/rust-legacy-fork#128 seems to be related
dmitriy-serdyuk commented
Seems it was fixed