void-linux / void-linux/void-packages
zig: can not compile on aarch64
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void 6.6.78_1 aarch64-musl (Raspberry Pi 5 8GB)
Package(s) Affected
zig-0.13.0_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
The package supports the aarch64* architecture in the the template.
Actual behaviour
It fails to build after finishing to compile and reaching some unreachable code:
=> zig-0.13.0_1: running do_build ...
[ 10%] Built target zig-wasm2c
[ 52%] Built target zig1
[ 68%] Built target zigcpp
[ 94%] Built target zig2
[100%] Building stage3
thread 7811 panic: reached unreachable code
Panicked during a panic. Aborting.
error: the following build command crashed:
/builddir/zig-0.13.0/.zig-cache/o/dea8c170b76a1e8b027d2e61991cb180/build /builddir/zig-0.13.0/build/zig2 /builddir/zig-0.13.0 /builddir/zig-0.13.0/.zig-cache /tmp/.cache/zig --seed 0x63965aae -Zcca47bed0d25e2ff --prefix /builddir/zig-0.13.0/build/stage3 --zig-lib-dir /builddir/zig-0.13.0/lib -Dversion-string=0.13.0 -Dtarget=native -Dcpu=baseline -Denable-llvm -Dconfig_h=/builddir/zig-0.13.0/build/config.h -Dno-langref -Dstd-docs=false -Doptimize=ReleaseFast -Dstrip
make[2]: *** [CMakeFiles/stage3.dir/build.make:73: stage3/bin/zig] Error 1
make[1]: *** [CMakeFiles/Makefile2:196: CMakeFiles/stage3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
=> ERROR: zig-0.13.0_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2
=> ERROR: in do_build() at common/build-style/cmake.sh:96
This happens either when using the build style or when building the package directly via ./xbps-src pkg zig.
Steps to reproduce
Build Zig on a Raspberry Pi.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with ./xbps-src pkg zig on the reported aarch64 system and inspect the Zig package build configuration. The log points to the CMake build path in common/build-style/cmake.sh and the stage3 build command. Done means the zig-0.13.0_1 package completes successfully on aarch64.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- zig
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100