Stream: wasi

Topic: Unknown command line argument '-wasm-enable-sjlj'


view this post on Zulip Felix Lechner (Apr 08 2025 at 16:56):

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'?

view this post on Zulip bjorn3 (Apr 08 2025 at 17:42):

Which clang version are you trying to use? And does it come from wasi-sdk or from your distro?

view this post on Zulip Felix Lechner (Apr 08 2025 at 17:45):

Version 20, from GNU Guix.

view this post on Zulip bjorn3 (Apr 08 2025 at 17:46):

Try using the one from wasi-sdk: https://github.com/WebAssembly/wasi-sdk/releases/

WASI-enabled WebAssembly C/C++ toolchain. Contribute to WebAssembly/wasi-sdk development by creating an account on GitHub.

view this post on Zulip bjorn3 (Apr 08 2025 at 17:53):

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