You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build a asset loading system using async for WASM, but I'm getting an internal compiler error:
$ ~/Downloads/zig/0.8.0-dev.1120/zig build wasm
broken LLVM module found: Stored value type does not match pointer operand type!
store %"[]u8"* %27, { %"[]u8", i16 }** %28, align 4
{ %"[]u8", i16 }*Stored value type does not match pointer operand type!
store %"[]u8"* %36, { %"[]u8", i16 }** %37, align 4
{ %"[]u8", i16 }*
This is a bug in the Zig compiler.thread 1345860 panic:
Unable to dump stack trace: debug info stripped
Oh, I feel silly now. Thanks for finding what makes the compiler panic!
SpexGuy
added
bug
Observed behavior contradicts documented or intended behavior
stage1
The process of building from source via WebAssembly and the C backend.
labels
Mar 16, 2021
I'm trying to build a asset loading system using async for WASM, but I'm getting an internal compiler error:
The code is here: https://github.com/leroycep/zig-wasm-assets/tree/zig-compiler-crash
On the master branch there is a version that works. It works by storing the main task in a global variable, and then relying on the JS runtime to resume once the fetch tasks are complete. https://github.com/leroycep/zig-wasm-assets/blob/master/src/main.zig
The text was updated successfully, but these errors were encountered: