reproduction:
touch test.c
zig build-lib -dynamic -target wasm32-freestanding -lc test.c
will yield the following error:
error(compilation): clang failed with stderr: /home/felix/software/zig-linux-x86_64-0.8.0-dev.2635+b8f85a805/lib/libc/wasi/libc-bottom-half/crt/crt1.c:1:10: fatal error: 'wasi/api.h' file not found
error(compilation): clang failed with stderr: /home/felix/software/zig-linux-x86_64-0.8.0-dev.2635+b8f85a805/lib/libc/wasi/libc-bottom-half/crt/crt1-command.c:1:10: fatal error: 'wasi/api.h' file not found
error(compilation): /home/felix/software/zig-linux-x86_64-0.8.0-dev.2635+b8f85a805/lib/libc/wasi/libc-bottom-half/crt/crt1.c:1:1: unable to build C object: clang exited with code 1
error(compilation): /home/felix/software/zig-linux-x86_64-0.8.0-dev.2635+b8f85a805/lib/libc/wasi/libc-bottom-half/crt/crt1-command.c:1:1: unable to build C object: clang exited with code 1
error: unable to build WASI libc sysroot: BuildingLibCObjectFailed
cc @kubkon
reproduction:
will yield the following error:
cc @kubkon