Hi, am I trying to build with the wrong Clang version?
clang (LLVM option parsing): Unknown command line argument '-wasm-enable-sjlj'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--enable-pre'?
Which clang version are you trying to use? And does it come from wasi-sdk or from your distro?
Version 20, from GNU Guix.
Try using the one from wasi-sdk: https://github.com/WebAssembly/wasi-sdk/releases/
Also at least from what I can see the gnu guix version of clang is compiled without any support for wasm at all. It can only build programs for the host system: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/llvm.scm#n635
Last updated: Dec 06 2025 at 06:05 UTC