reassign 1052002 clang-16
affects 1052002 firefox
affects 1052002 firefox-esr
thanks

On Fri, Sep 15, 2023 at 08:19:17PM +0200, Aurelien Jarno wrote:
> Source: firefox
> Version: 117.0.1-1
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> 
> Dear maintainer,
> 
> firefox fails to build from source. From my build log on amd64:
> 
> | checking for vpx >= 1.10.0... yes
> | checking MOZ_LIBVPX_CFLAGS... 
> | checking MOZ_LIBVPX_LIBS... -lvpx -lm
> | checking for vpx/vpx_decoder.h... yes
> | checking for vpx_codec_dec_init_ver... yes
> | checking for nasm... /usr/bin/nasm
> | checking nasm version... 2.16.01
> | checking for the wasm C compiler... /usr/bin/clang
> | checking whether the wasm C compiler can be used... yes
> | checking the wasm C compiler version... 16.0.6
> | checking the wasm C compiler works... yes
> | checking the wasm C compiler can find wasi headers... yes
> | checking the wasm C linker can find wasi libraries... yes
> | checking for the wasm C++ compiler... /usr/bin/clang++
> | checking whether the wasm C++ compiler can be used... yes
> | checking the wasm C++ compiler version... 16.0.6
> | checking the wasm C++ compiler works... yes
> | checking the wasm C++ compiler can find wasi headers... 
> | DEBUG: Creating `/tmp/conftest.t4tbmgsv.cpp` with content:
> | DEBUG: | #include <cstring>
> | DEBUG: | int
> | DEBUG: | main(void)
> | DEBUG: | {
> | DEBUG: | 
> | DEBUG: |   ;
> | DEBUG: |   return 0;
> | DEBUG: | }
> | DEBUG: Executing: `/usr/bin/clang++ --target=wasm32-wasi 
> /tmp/conftest.t4tbmgsv.cpp -c`
> | DEBUG: The command returned non-zero exit status 1.
> | DEBUG: Its error output was:
> | DEBUG: | /tmp/conftest.t4tbmgsv.cpp:1:10: fatal error: 'cstring' file not 
> found
> | DEBUG: | #include <cstring>
> | 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.
> | make[1]: *** [debian/rules:228: stamps/configure-browser] Error 1
> | make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> | make: *** [debian/rules:329: build-arch] Error 2
> | dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
> status 2

This is a regression from the upgrade to clang 16.

with clang 14:
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/wasm32-wasi/c++/v1
 /usr/lib/llvm-14/lib/clang/14.0.6/include
 /usr/local/include
 /usr/include/wasm32-wasi
 /usr/include
End of search list.

with clang 16:
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/llvm-16/lib/clang/16/include
 /usr/local/include
 /usr/include/wasm32-wasi
 /usr/include
End of search list.

Note how /usr/include/wasm32-wasi/c++/v1 is missing.

Mike

Reply via email to