-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Cross-compilation of async/await code trips compiler assertion #4063
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Running the following command from macOS over this code:
https://gist.github.com/kristoff-it/5f0fe16708b74e464c39e6bde4c3664b
zig build-exe -target x86_64-linux test.zig
Causes the compilation to fail with the following error:
Code Generation [74/901] std.debug.DwarfInfo.parseAbbrevTable...Assertion failed at /Users/kristoff/zig/src/analyze.cpp:9037 in resolve_llvm_types. This is a bug in the Zig compiler.
Unable to dump stack trace: FileNotFound
[1] 74494 abort zig build-exe -target x86_64-linux test.zig
The first part changes from run to run, but the error is always on line 9037.
The code depends on this repo https://github.com/kristoff-it/zig-okredis.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior