Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panicked during panic during building zig hello world project #18442

Closed
nerodono opened this issue Jan 3, 2024 · 1 comment
Closed

Panicked during panic during building zig hello world project #18442

nerodono opened this issue Jan 3, 2024 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@nerodono
Copy link

nerodono commented Jan 3, 2024

Zig Version

0.11.0

Steps to Reproduce and Observed Behavior

On asahi linux (aarch64, M1 Pro, Fedora Linux Asahi Remix 39 (Thirty Nine) aarch64)

  1. Download either zig master's prebuilt binary or zig 0.11.0
  2. create example project by running mkdir test-helloworld, change directory, zig init-exe
  3. run zig build

Also build fails on stage2, while building stage3. lldb shows nothing, I don't know how to provide more info about failure, so I'll be happy if you provide additional guidance!

Expected Behavior

You'll see build process, and then the following error message:

nerodono@fedora:~/Dev/Zig/zig/build/d$ zig build
thread 13251 panic: reached unreachable code
Panicked during a panic. Aborting.
error: the following build command crashed:
/home/nerodono/Dev/Zig/zig/build/d/zig-cache/o/362532143189cb2855a61cdc759dd4f6/build /opt/zig/zig /home/nerodono/Dev/Zig/zig/build/d /home/nerodono/Dev/Zig/zig/build/d/zig-cache /home/nerodono/.cache/zig

For stage3 build process:

[100%] Building stage3
thread 13785 panic: reached unreachable code
Panicked during a panic. Aborting.
error: the following build command crashed:
/home/nerodono/Dev/Zig/zig/zig-cache/o/e0921c74b72314c4b77dbb562620893f/build /home/nerodono/Dev/Zig/zig/build/zig2 /home/nerodono/Dev/Zig/zig /home/nerodono/Dev/Zig/zig/zig-cache /home/nerodono/.cache/zig --seed 0x97efa293 --prefix /home/nerodono/Dev/Zig/zig/build/stage3 --zig-lib-dir /home/nerodono/Dev/Zig/zig/lib -Dconfig_h=/home/nerodono/Dev/Zig/zig/build/config.h -Denable-llvm -Dno-langref -Dno-autodocs -Dtarget=native -Dcpu=native -Dversion-string=0.12.0-dev.2018+9a56228c2
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
@nerodono nerodono added the bug Observed behavior contradicts documented or intended behavior label Jan 3, 2024
@nektro
Copy link
Contributor

nektro commented Jan 3, 2024

Duplicate of #16331

@Vexu Vexu closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants