Skip to content

libcore fails to compile for thumbv6m-none-eabi #62932

Closed
@gnzlbg

Description

@gnzlbg

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

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateP-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions