Skip to content

Cross-compilation of async/await code trips compiler assertion #4063

@kristoff-it

Description

@kristoff-it

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions