Skip to content

Building Zig from source on windows crashes the compiler #12925

Description

@bpeake13

Zig Version

0.10.0-dev.61+9be8396b7

Steps to Reproduce

Followed instructions for building zig with an older version of zig. Ran this command:

..\..\zig+llvm+lld+clang-x86_64-windows-gnu-0.10.0-dev.61+9be8396b7\bin\zig.exe build -p stage3 --search-prefix ..\..\zig+llvm+lld+clang-x86_64-windows-gnu-0.10.0-dev.61+9be8396b7 --zig-lib-dir lib -Denable-stage1 -Dstatic-llvm -Duse-zig-libcxx -Dtarget=x86_64-windows-gnu

Expected Behavior

Compiles zig

Actual Behavior

Get the following error:

Semantic Analysis... comptime_0... thread 14772 panic: zig compiler bug: NeededSourceLocation
Unable to dump stack trace: debug info stripped

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions