Bug#1052002: firefox: FTBFS: ERROR: Cannot find wasi headers or problem with the wasm compiler. Please fix the problem. Or build with --without-wasm-sandboxed-libraries
Sylvestre Ledru
sylvestre at debian.org
Tue Nov 14 22:52:10 GMT 2023
Le 03/11/2023 à 21:32, Faidon Liambotis a écrit :
> Control: reopen -1
> Control: found -1 1:16.0.6-17
>
> Note how /usr/include/wasm32-wasi/c++/v1 is missing.
> Test case:
> $ apt install clang lld libclang-rt-dev-wasm32 libc++-dev-wasm32
> $ cat > hello.cpp <<EOF
> #include <iostream>
>
> int main() {
> std::cout << "hello world" << std::endl;
> return 0;
> }
> EOF
> $ /usr/bin/clang++ -v --target=wasm32-wasi hello.cpp
>
> Only C++ include paths are affected, not C. This almost certainly has to
> do with the patch we carry for wasm include paths, that I have
> contributed to. Unfortunately I have no time to look into it right now
> :( I may find some time in a couple of weeks, but hoping someone else
> can take care of it in the meantime :/
I understand better why I didn't get this problem locally:
If you install libc++-dev too, the problem goes away.
because it provides the symlink
/usr/include/c++/v1 -> ../../lib/llvm-16/include/c++/v1
which makes clang happy
but still looking into a different solution
cheers
S
More information about the Pkg-llvm-team
mailing list