Closed
Description
#![no_std]
pub fn u128_count_ones(x: u128) -> u32 {
x.count_ones()
}
when compiled with cargo build --target aarch64-unknown-none-softfloat
it gives:
error: could not compile `testlib`
Caused by:
process didn't exit successfully: `rustc --crate-name testlib --edition=2018 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=ec790c6e5e4455bc -C extra-filename=-ec790c6e5e4455bc --out-dir C:\Users\aaron\Documents\github\testlib\target\aarch64-unknown-none-softfloat\debug\deps --target aarch64-unknown-none-softfloat -C incremental=C:\Users\aaron\Documents\github\testlib\target\aarch64-unknown-none-softfloat\debug\incremental -L dependency=C:\Users\aaron\Documents\github\testlib\target\aarch64-unknown-none-softfloat\debug\deps -L dependency=C:\Users\aaron\Documents\github\testlib\target\debug\deps` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
This is preventing upgrading the compiler-builtins
used by rustc. See rust-lang/compiler-builtins#398 and #79863.
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 stateRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.