Closed NobodyXu closed 1 year ago
armv7 looks like https://github.com/ziglang/zig/issues/10411, aarch64 maybe we can fix it on our end.
$ /Users/messense/Library/Caches/cargo-zigbuild/0.16.11/zigcc-aarch64-unknown-linux-musl.sh $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -march=armv8-a+crc -fno-lto -MD -MT CMakeFiles/zlib.dir/arch/arm/crc32_acle.c.o -MF CMakeFiles/zlib.dir/arch/arm/crc32_acle.c.o.d -o CMakeFiles/zlib.dir/arch/arm/crc32_acle.c.o -c /Users/messense/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libz-ng-sys-1.1.9/src/zlib-ng/arch/arm/crc32_acle.c
zsh: command not found: C_DEFINES
zsh: command not found: C_INCLUDES
zsh: command not found: C_FLAGS
info: available CPUs for architecture 'aarch64':
a64fx
ampere1
apple_a10
apple_a11
apple_a12
apple_a13
apple_a14
apple_a7
apple_a8
apple_a9
apple_latest
apple_m1
apple_s4
apple_s5
carmel
cortex_a34
cortex_a35
cortex_a510
cortex_a53
cortex_a55
cortex_a57
cortex_a65
cortex_a65ae
cortex_a710
cortex_a72
cortex_a73
cortex_a75
cortex_a76
cortex_a76ae
cortex_a77
cortex_a78
cortex_a78c
cortex_r82
cortex_x1
cortex_x1c
cortex_x2
cyclone
emag
exynos_m1
exynos_m2
exynos_m3
exynos_m4
exynos_m5
falkor
generic
kryo
neoverse_512tvb
neoverse_e1
neoverse_n1
neoverse_n2
neoverse_v1
saphira
thunderx
thunderx2t99
thunderx3t110
thunderxt81
thunderxt83
thunderxt88
tsv110
xgene1
error: unknown CPU: 'armv8'
So zig
doesn't recognize -march=armv8-a+crc
, I'm not sure what's the best way to workaround it, what do we replace armv8-a
to?
So
zig
doesn't recognize-march=armv8-a+crc
, I'm not sure what's the best way to workaround it, what do we replacearmv8-a
to?
I guess replacing it wifh "generic" makes sense?
Compiling
zlib-ng
onarmv7-unknown-linux-musleabihf
failed with:On
aarch64-unknown-linux-musl
: