pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox using llvm/clang 22.1.6



On Fri, 29 May 2026 07:58:34 +0000
pin <voidpin%protonmail.com@localhost> wrote:

> DEBUG: Executing: `/usr/pkg/bin/clang --target=wasm32-wasip1 /tmp/conftest6vwsc_0w.c --sysroot=/usr/pkg/wasi -c`
> DEBUG: The command returned non-zero exit status 1.
> DEBUG: Its error output was:
> DEBUG: | /tmp/conftest6vwsc_0w.c:1:10: fatal error: 'string.h' file not found
> DEBUG: |     1 | #include <string.h>
> DEBUG: |       |          ^~~~~~~~~~
> DEBUG: | 1 error generated.
> ERROR: Cannot find wasi headers or problem with the wasm compiler. Please fix the problem. Or build with --without-wasm-sandboxed-libraries.

I think you need to update lang/wasi-libc, lang/wasi-libcxx and
wasi-compiler-rt to match the clang version.
was-libc installs it's headers to:
/usr/pkg/wasi/include/wasm32-wasi
which is a directory with target name different from the supplied target option.
Perhaps easier for now to just disable the WASM sandbox feature in firefox/mozilla-common.mk.


Home | Main Index | Thread Index | Old Index