rust-embedded / cortex-m-quickstart

Template to develop bare metal applications for Cortex-M microcontrollers
809 stars 167 forks source link

LLVM ERROR: Unexpected anonymous function when writing summary #37

Closed Razaekel closed 6 years ago

Razaekel commented 6 years ago

Compiling cortex-m-quickstart when following the guide in the documentation results in the following:

$ xargo build --release LLVM ERROR: Unexpected anonymous function when writing summary error: Could not compile compiler_builtins.

Caused by: process didn't exit successfully: rustc --crate-name compiler_builtins /home/raz/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcompiler_builtins/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C codegen-units=1 -C debuginfo=2 --cfg feature="compiler-builtins" --cfg feature="default" --cfg feature="mem" -C metadata=3f2fd4d5819eb5d9 -C extra-filename=-3f2fd4d5819eb5d9 --out-dir /tmp/xargo.wiFZ2xMeLRgJ/target/thumbv7em-none-eabihf/release/deps --target thumbv7em-none-eabihf -L dependency=/tmp/xargo.wiFZ2xMeLRgJ/target/thumbv7em-none-eabihf/release/deps -L dependency=/tmp/xargo.wiFZ2xMeLRgJ/target/release/deps -C link-arg=-Wl,-Tlink.x -C link-arg=-nostartfiles --sysroot /home/raz/.xargo -Z force-unstable-if-unmarked --cfg thumb (exit code: 1) error: "cargo" "build" "--release" "--manifest-path" "/tmp/xargo.wiFZ2xMeLRgJ/Cargo.toml" "--target" "thumbv7em-none-eabihf" "-v" "-p" "compiler_builtins" failed with exit code: Some(101)

Target is thumbv7-none-eabihf. Rustc is 1.28.0-nightly (e3bf634e0 2018-06-28). compiler-builtins is v0.1.0.

Compiling compiler-builtins by itself with xargo build --release --target thumbv7em-none-eabihf completes with no errors.

Razaekel commented 6 years ago

Issue was using Xargo instead of cargo.