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
{{ message }}
Repository navigation
-lc on wasm32-wasi-musl without pub fn main and with -fno-entry causes linker failure about not including proper main symbol #22570
Activity
rohlem commentedon Jan 22, 2025
chearon commentedon Feb 9, 2025
I think maybe this file supposed to be conditionally added to the compile (not if
.entry = .disabled):zig/src/wasi_libc.zig
Line 506 in ea1ce2d
As OP's output shows, the symbol is referenced in that file:
zig/lib/libc/wasi/libc-bottom-half/sources/__main_void.c
Line 5 in ea1ce2d
The easy workaround is to stub out
main. In my case, I'm building a C++ library to WASM, so I included this:That also removes unwanted "args_get" and "args_sizes_get" imports in the final .wasm.
alexrp commentedon Oct 4, 2026
https://codeberg.org/ziglang/zig/pulls/36633
remove support for wasi-libc
remove support for wasi-libc
remove support for wasi-libc