Closed
Description
The libc crate cron job has started failing to build on master for the target thumbv6m-none-eabi
. To reproduce:
cargo install xargo
rustup target add thumbv6m-none-eabi
git clone [email protected]:rust-lang/libc.git
cd libc
xargo +nightly build -vv --no-default-features --target thumbv6m-none-eabi
errors with
Compiling core v0.0.0 (/home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
Running `rustc --edition=2018 --crate-name core /home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=60fcc652106674f6 -C extra-filename=-60fcc652106674f6 --out-dir /tmp/xargo.t1IUdReqtxLM/target/thumbv6m-none-eabi/release/deps --target thumbv6m-none-eabi -L dependency=/tmp/xargo.t1IUdReqtxLM/target/thumbv6m-none-eabi/release/deps -L dependency=/tmp/xargo.t1IUdReqtxLM/target/release/deps --sysroot /home/travis/.xargo -Z force-unstable-if-unmarked`
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
--> /home/travis/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/lib.rs:77:37
|
77 | #![cfg_attr(not(bootstrap), feature(const_generics))]
| ^^^^^^^^^^^^^^
LLVM ERROR: invalid symbol redefinition
error: Could not compile `core`.
libcore failing to build for the target is bad - that it prevents to build the libc crate for the target is a sideeffect of that.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: This is a bug.Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateHigh priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.