Closed Razaekel closed 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.
$ xargo build --release
LLVM ERROR: Unexpected anonymous function when writing summary error: Could not compile compiler_builtins.
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)
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
"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.wiFZ2xMeLRgJ/Cargo.toml" "--target" "thumbv7em-none-eabihf" "-v" "-p" "compiler_builtins"
Target is thumbv7-none-eabihf. Rustc is 1.28.0-nightly (e3bf634e0 2018-06-28). compiler-builtins is v0.1.0.
thumbv7-none-eabihf
1.28.0-nightly (e3bf634e0 2018-06-28)
v0.1.0
Compiling compiler-builtins by itself with xargo build --release --target thumbv7em-none-eabihf completes with no errors.
compiler-builtins
xargo build --release --target thumbv7em-none-eabihf
Issue was using Xargo instead of cargo.
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 is1.28.0-nightly (e3bf634e0 2018-06-28)
. compiler-builtins isv0.1.0
.Compiling
compiler-builtins
by itself withxargo build --release --target thumbv7em-none-eabihf
completes with no errors.