Hi friends! I’m back again, and so soon.
I’m getting an error I just don’t quite know how to make sense of.
I’m trying to build a (truly large, not at all within my grasp) blob of c, the https://janet-lang.org interpreter.
This is what I type: $ zig cc janet.c -target wasm32-wasi
This is what I get:
In file included from src/core/features.h:81:
In file included from ./janet.h:437:
/opt/homebrew/Cellar/zig/0.12.0/lib/zig/libc/include/generic-musl/setjmp.h:10:10: fatal error: 'bits/setjmp.h' file not found
10 | #include <bits/setjmp.h>
| ^~~~~~~~~~~~~~~
LLD Link... 1 error generated.
Indeed, the setjmp.h
in the generic-musl
libc inside of Zig asks for bits/setjmp.h
, which doesn’t exist. This is true in Zig 0.12.0 and in 0.13.0 (released today!!). This looks like a bug inside the generic-musl
libc?
That said, from my googling around, it sounds like wasm doesn’t play nice with setjmp
, so perhaps this is expected behaviour (just with an obscure error).
Any insight anybody could provide would be massively welcome. Thank you!!