bytecount icon indicating copy to clipboard operation
bytecount copied to clipboard

Aarch64 build appears broken

Open inferiorhumanorgans opened this issue 9 months ago • 3 comments

Intrinsic has incorrect return type!
ptr @llvm.aarch64.neon.ld1x4.v16i8.p0i8
in function _ZN4core9core_arch10arm_shared4neon9generated11vld1q_u8_x417h224d569be9c8b1b6E
LLVM ERROR: Broken function found, compilation aborted!
error: could not compile `bytecount` (lib)
warning: build failed, waiting for other jobs to finish...
$ uname -vm
Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64

inferiorhumanorgans avatar Nov 27 '23 11:11 inferiorhumanorgans

What kind of machine is this? I get that Darwin is MacOS, right?

Can you try compiling with RUSTFLAGS="-c target-cpu=native"?

llogiq avatar Nov 27 '23 18:11 llogiq

$ RUSTFLAGS="-C target-cpu=native" cargo build
   Compiling bytecount v0.6.7 (pwd/bytecount)
Intrinsic has incorrect return type!
ptr @llvm.aarch64.neon.ld1x4.v16i8.p0i8
in function _ZN4core9core_arch10arm_shared4neon9generated11vld1q_u8_x417hc2c70c85f2363de7E
LLVM ERROR: Broken function found, compilation aborted!
error: could not compile `bytecount` (lib)
$ rustc --version
rustc 1.76.0-nightly (37b2813a7 2023-11-24)

The processor is an M2 Pro.

inferiorhumanorgans avatar Nov 27 '23 22:11 inferiorhumanorgans

https://github.com/rust-lang/rust/issues/118124 It‘s a Rust ICE

Librazy avatar Nov 28 '23 06:11 Librazy