Closed Bug 1739805 Opened 3 years ago Closed 3 years ago

Firefox 95 build fails with "Cannot find a wasi sysroot. Please give its location with --with-wasi-sysroot. Or build with --without-wasm-sandboxed-libraries."

Categories

(Firefox Build System :: General, defect)

Firefox 95
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: laharlxetna, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Steps to reproduce:

  1. Download a Firefox 95 source tarball at https://ftp.mozilla.org/pub/firefox/releases/95.0b3/source/firefox-95.0b3.source.tar.xz

  2. Create a .mozconfig file with the following details:
    ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
    ac_add_options --disable-debug-symbols
    ac_add_options --disable-tests
    ac_add_options --prefix=/home/etna/Runtime/Applications/Firefox/v95b3
    ac_add_options --enable-application=browser
    ac_add_options --disable-crashreporter
    ac_add_options --disable-updater
    #ac_add_options --disable-dbus
    #ac_add_options --disable-gconf
    ac_add_options --disable-necko-wifi
    ac_add_options --disable-elf-hack

  3. Build Firefox 95 with the following command:
    LIBRARY_PATH=/home/etna/Runtime/Deps/node-v17.0.1/lib:/home/etna/Runtime/Deps/rustc-1.56.1/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib:/home/etna/Runtime/Deps/ExtraNASM-Clang/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LIBRARY_PATH C_INCLUDE_PATH=/home/etna/Runtime/Deps/node-v17.0.1/include:/home/etna/Runtime/Deps/rustc-1.56.1/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/include:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/ExtraNASM-Clang/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$C_INCLUDE_PATH CPLUS_INCLUDE_PATH=/home/etna/Runtime/Deps/node-v17.0.1/include:/home/etna/Runtime/Deps/rustc-1.56.1/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/include:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/ExtraNASM-Clang/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$CPLUS_INCLUDE_PATH LD_LIBRARY_PATH=/home/etna/Runtime/Deps/node-v17.0.1/lib:/home/etna/Runtime/Deps/rustc-1.56.1/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib:/home/etna/Runtime/Deps/ExtraNASM-Clang/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/Deps/node-v17.0.1/bin:/home/etna/Runtime/Deps/rustc-1.56.1/bin:/home/etna/Runtime/Deps/rustc-1.56.1/libexec:/home/etna/Runtime/Deps/libtasn1-4.17.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/libexec:/home/etna/Runtime/Deps/nettle-3.7.3/bin:/home/etna/Runtime/Deps/gnutls-3.7.2/bin:/home/etna/Runtime/Deps/avcodecs/bin:/home/etna/Runtime/Deps/jpeg9d/bin:/home/etna/Runtime/Deps/libpng-1.6.37/bin:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/bin:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/bin:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/bin:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/sbin:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/bin:/home/etna/Runtime/Deps/openssl-300/bin:/home/etna/Runtime/Deps/sqlite-build24Jul2021/bin:/home/etna/Runtime/Deps/libbz2-build24Jul2021/bin:/home/etna/Runtime/Deps/python-3.10.0/bin:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/bin:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/bin:/home/etna/Runtime/Deps/ExtraNASM-Clang/bin:/home/etna/Runtime/Deps/gperf-3.1/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/libexec:/home/etna/Runtime/BuildSystem/bin:/home/etna/Runtime/BuildSystem/libexec:$PATH PKG_CONFIG_PATH=/home/etna/Runtime/Deps/libtasn1-4.17.0/lib/pkgconfig:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/gmp-6.2.1/lib/pkgconfig:/home/etna/Runtime/Deps/nettle-3.7.3/lib64/pkgconfig:/home/etna/Runtime/Deps/gnutls-3.7.2/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib64/pkgconfig:/home/etna/Runtime/Deps/jpeg9d/lib/pkgconfig:/home/etna/Runtime/Deps/libpng-1.6.37/lib/pkgconfig:/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib/pkgconfig:/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib/pkgconfig:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib/pkgconfig:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/openssl-300/lib64/pkgconfig:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib64/pkgconfig:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib/pkgconfig:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/BuildSystem/lib/pkgconfig:$PKG_CONFIG_PATH LDFLAGS='-L/home/etna/Runtime/Deps/node-v17.0.1/lib -L/home/etna/Runtime/Deps/rustc-1.56.1/lib -L/home/etna/Runtime/Deps/libunistring-0.9.10/lib -L/home/etna/Runtime/Deps/libtasn1-4.17.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/gmp-6.2.1/lib -L/home/etna/Runtime/Deps/nettle-3.7.3/lib64 -L/home/etna/Runtime/Deps/gnutls-3.7.2/lib -L/home/etna/Runtime/Deps/avcodecs/lib -L/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/avcodecs/lib64 -L/home/etna/Runtime/Deps/jpeg9d/lib -L/home/etna/Runtime/Deps/libpng-1.6.37/lib -L/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib -L/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib -L/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib -L/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib -L/home/etna/Runtime/Deps/openssl-300/lib64 -L/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib -L/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib64 -L/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib -L/home/etna/Runtime/Deps/ExtraNASM-Clang/lib -L/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib -L/home/etna/Runtime/BuildSystem/lib' CPPFLAGS='-I/home/etna/Runtime/Deps/node-v17.0.1/include -I/home/etna/Runtime/Deps/rustc-1.56.1/include -I/home/etna/Runtime/Deps/libunistring-0.9.10/include -I/home/etna/Runtime/Deps/libtasn1-4.17.0/include -I/home/etna/Runtime/Deps/p11-kit-0.24.0/include -I/home/etna/Runtime/Deps/gmp-6.2.1/include -I/home/etna/Runtime/Deps/nettle-3.7.3/include -I/home/etna/Runtime/Deps/gnutls-3.7.2/include -I/home/etna/Runtime/Deps/avcodecs/include -I/home/etna/Runtime/Deps/jpeg9d/include -I/home/etna/Runtime/Deps/libpng-1.6.37/include -I/home/etna/Runtime/Deps/SDL2-Build06Nov2021/include -I/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/include -I/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include -I/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include -I/home/etna/Runtime/Deps/openssl-300/include -I/home/etna/Runtime/Deps/sqlite-build24Jul2021/include -I/home/etna/Runtime/Deps/libbz2-build24Jul2021/include -I/home/etna/Runtime/Deps/python-3.10.0/include -I/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include -I/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include -I/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include -I/home/etna/Runtime/Deps/ExtraNASM-Clang/include -I/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include -I/home/etna/Runtime/BuildSystem/include' CC=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang CXX=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ cc=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang cxx=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ CFLAGS='-L/home/etna/Runtime/Deps/node-v17.0.1/lib -L/home/etna/Runtime/Deps/rustc-1.56.1/lib -L/home/etna/Runtime/Deps/libunistring-0.9.10/lib -L/home/etna/Runtime/Deps/libtasn1-4.17.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/gmp-6.2.1/lib -L/home/etna/Runtime/Deps/nettle-3.7.3/lib64 -L/home/etna/Runtime/Deps/gnutls-3.7.2/lib -L/home/etna/Runtime/Deps/avcodecs/lib -L/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/avcodecs/lib64 -L/home/etna/Runtime/Deps/jpeg9d/lib -L/home/etna/Runtime/Deps/libpng-1.6.37/lib -L/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib -L/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib -L/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib -L/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib -L/home/etna/Runtime/Deps/openssl-300/lib64 -L/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib -L/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib64 -L/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib -L/home/etna/Runtime/Deps/ExtraNASM-Clang/lib -L/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib -L/home/etna/Runtime/BuildSystem/lib -I/home/etna/Runtime/Deps/node-v17.0.1/include -I/home/etna/Runtime/Deps/rustc-1.56.1/include -I/home/etna/Runtime/Deps/libunistring-0.9.10/include -I/home/etna/Runtime/Deps/libtasn1-4.17.0/include -I/home/etna/Runtime/Deps/p11-kit-0.24.0/include -I/home/etna/Runtime/Deps/gmp-6.2.1/include -I/home/etna/Runtime/Deps/nettle-3.7.3/include -I/home/etna/Runtime/Deps/gnutls-3.7.2/include -I/home/etna/Runtime/Deps/avcodecs/include -I/home/etna/Runtime/Deps/jpeg9d/include -I/home/etna/Runtime/Deps/libpng-1.6.37/include -I/home/etna/Runtime/Deps/SDL2-Build06Nov2021/include -I/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/include -I/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include -I/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include -I/home/etna/Runtime/Deps/openssl-300/include -I/home/etna/Runtime/Deps/sqlite-build24Jul2021/include -I/home/etna/Runtime/Deps/libbz2-build24Jul2021/include -I/home/etna/Runtime/Deps/python-3.10.0/include -I/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include -I/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include -I/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include -I/home/etna/Runtime/Deps/ExtraNASM-Clang/include -I/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include -I/home/etna/Runtime/BuildSystem/include -Wl,-rpath -Wl,/home/etna/Runtime/Deps/node-v17.0.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/rustc-1.56.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libunistring-0.9.10/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libtasn1-4.17.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/p11-kit-0.24.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gmp-6.2.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/nettle-3.7.3/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gnutls-3.7.2/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/jpeg9d/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libpng-1.6.37/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/openssl-300/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/python-3.10.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/python-3.10.0/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/ExtraNASM-Clang/lib -Wl,-rpath -Wl,/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib -Wl,-rpath -Wl,/home/etna/Runtime/BuildSystem/lib -fPIC' CXXFLAGS='-L/home/etna/Runtime/Deps/node-v17.0.1/lib -L/home/etna/Runtime/Deps/rustc-1.56.1/lib -L/home/etna/Runtime/Deps/libunistring-0.9.10/lib -L/home/etna/Runtime/Deps/libtasn1-4.17.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib -L/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/gmp-6.2.1/lib -L/home/etna/Runtime/Deps/nettle-3.7.3/lib64 -L/home/etna/Runtime/Deps/gnutls-3.7.2/lib -L/home/etna/Runtime/Deps/avcodecs/lib -L/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/avcodecs/lib64 -L/home/etna/Runtime/Deps/jpeg9d/lib -L/home/etna/Runtime/Deps/libpng-1.6.37/lib -L/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib -L/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib -L/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib -L/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib -L/home/etna/Runtime/Deps/openssl-300/lib64 -L/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib -L/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib -L/home/etna/Runtime/Deps/python-3.10.0/lib64 -L/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib -L/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu -L/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib -L/home/etna/Runtime/Deps/ExtraNASM-Clang/lib -L/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib -L/home/etna/Runtime/BuildSystem/lib -I/home/etna/Runtime/Deps/node-v17.0.1/include -I/home/etna/Runtime/Deps/rustc-1.56.1/include -I/home/etna/Runtime/Deps/libunistring-0.9.10/include -I/home/etna/Runtime/Deps/libtasn1-4.17.0/include -I/home/etna/Runtime/Deps/p11-kit-0.24.0/include -I/home/etna/Runtime/Deps/gmp-6.2.1/include -I/home/etna/Runtime/Deps/nettle-3.7.3/include -I/home/etna/Runtime/Deps/gnutls-3.7.2/include -I/home/etna/Runtime/Deps/avcodecs/include -I/home/etna/Runtime/Deps/jpeg9d/include -I/home/etna/Runtime/Deps/libpng-1.6.37/include -I/home/etna/Runtime/Deps/SDL2-Build06Nov2021/include -I/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/include -I/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include -I/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include -I/home/etna/Runtime/Deps/openssl-300/include -I/home/etna/Runtime/Deps/sqlite-build24Jul2021/include -I/home/etna/Runtime/Deps/libbz2-build24Jul2021/include -I/home/etna/Runtime/Deps/python-3.10.0/include -I/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include -I/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include -I/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include -I/home/etna/Runtime/Deps/ExtraNASM-Clang/include -I/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include -I/home/etna/Runtime/BuildSystem/include -Wl,-rpath -Wl,/home/etna/Runtime/Deps/node-v17.0.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/rustc-1.56.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libunistring-0.9.10/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libtasn1-4.17.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/p11-kit-0.24.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gmp-6.2.1/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/nettle-3.7.3/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gnutls-3.7.2/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/avcodecs/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/jpeg9d/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libpng-1.6.37/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/SDL2-Build06Nov2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/ffmpeg-Build06Nov2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/openssl-300/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/python-3.10.0/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/python-3.10.0/lib64 -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu -Wl,-rpath -Wl,/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib -Wl,-rpath -Wl,/home/etna/Runtime/Deps/ExtraNASM-Clang/lib -Wl,-rpath -Wl,/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib -Wl,-rpath -Wl,/home/etna/Runtime/BuildSystem/lib -fPIC' MACH_USE_SYSTEM_PYTHON=1 MOZBUILD_STATE_PATH=/home/etna/Tmpbuilddir ./mach build

Actual results:

Building Firefox 95 from a tarball fails with "Cannot find a wasi sysroot. Please give its location with --with-wasi-sysroot. Or build with --without-wasm-sandboxed-libraries." when running ./mach build

Expected results:

Build should have succeeded. This is the same procedure I have used to build all versions of Firefox for the past five years and counting.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System

Can you share your full build log?
It may be available from ./mach build-log, or you may need to run the build again and pipe it to a file.

Flags: needinfo?(laharlxetna)

./mach build-log returns the following result:

It looks like you are trying to run an unknown mach command: build-log
Did you want to run any of these commands instead: build, tps-build, buildsymbols?
Run |mach help| to show a list of commands.

Anyway, this is the output of running ./mach build:

WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the '/home/etna/Runtime/Deps/python-3.10.0/bin/python3 -m pip install --upgrade pip' command.
 0:00.69 Clobber not needed.
 Config object not found by mach.
 0:00.69 /home/etna/Runtime/Deps/python-3.10.0/bin/python3 /home/etna/Tmpbuilddir/firefox-95.0/configure.py
 0:00.84 Creating Python 3 environment
 0:01.23 created virtual environment CPython3.10.0.final.0-64 in 175ms
 0:01.23   creator CPython3Posix(dest=/home/etna/Tmpbuilddir/firefox-95.0/obj-x86_64-pc-linux-gnu/_virtualenvs/build, clear=False, no_vcs_ignore=False, global=False)
 0:01.23   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/etna/.local/share/virtualenv)
 0:01.23     added seed packages: pip==21.2.3, setuptools==51.2.0, wheel==0.37.0
 0:01.23   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
 0:01.31 /home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/virtualenv.py:557: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
 0:01.31   from distutils.version import LooseVersion
 0:01.35 /home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/virtualenv.py:335: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
 0:01.35   import distutils.sysconfig
 0:01.44 Re-executing in the virtualenv
 0:01.75 Adding configure options from /home/etna/Tmpbuilddir/firefox-95.0/.mozconfig
 0:01.75   --enable-default-toolkit=cairo-gtk3-wayland
 0:01.75   --disable-debug-symbols
 0:01.75   --disable-tests
 0:01.75   --prefix=/home/etna/Runtime/Applications/Firefox/v95b6
 0:01.75   --enable-application=browser
 0:01.75   --disable-crashreporter
 0:01.75   --disable-updater
 0:01.75   --disable-necko-wifi
 0:01.75   --disable-elf-hack
 0:01.75   --disable-av1
 0:01.75 checking for vcs source checkout... no
 0:01.80 checking for a shell... /usr/bin/sh
 0:01.86 checking for host system type... x86_64-pc-linux-gnu
 0:01.86 checking for target system type... x86_64-pc-linux-gnu
 0:02.30 checking whether cross compiling... no
 0:02.43 checking for Python 3... /home/etna/Tmpbuilddir/firefox-95.0/obj-x86_64-pc-linux-gnu/_virtualenvs/build/bin/python (3.10.0)
 0:02.45 checking for wget... not found
 0:02.45 checking for ccache... not found
 0:02.45 checking for the target C compiler... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang
 0:02.65 checking whether the target C compiler can be used... yes
 0:02.65 checking the target C compiler version... 13.0.0
 0:02.72 checking the target C compiler works... yes
 0:02.72 checking for the target C++ compiler... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++
 0:02.77 checking whether the target C++ compiler can be used... yes
 0:02.77 checking the target C++ compiler version... 13.0.0
 0:02.79 checking the target C++ compiler works... yes
 0:02.79 checking for the host C compiler... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang
 0:02.83 checking whether the host C compiler can be used... yes
 0:02.83 checking the host C compiler version... 13.0.0
 0:02.85 checking the host C compiler works... yes
 0:02.85 checking for the host C++ compiler... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++
 0:02.89 checking whether the host C++ compiler can be used... yes
 0:02.89 checking the host C++ compiler version... 13.0.0
 0:02.91 checking the host C++ compiler works... yes
 0:02.93 checking for 64-bit OS... yes
 0:02.97 checking for new enough STL headers from libstdc++... yes
 0:02.99 checking for linker... bfd
 0:02.99 checking for the assembler... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang
 0:03.02 checking for ar... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/llvm-ar
 0:03.03 checking for nm... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/llvm-nm
 0:03.03 checking for pkg_config... /usr/bin/pkg-config
 0:03.04 checking for pkg-config version... 0.29.2
 0:03.07 checking for stdint.h... yes
 0:03.10 checking for inttypes.h... yes
 0:03.13 checking for malloc.h... yes
 0:03.15 checking for alloca.h... yes
 0:03.17 checking for sys/byteorder.h... no
 0:03.20 checking for getopt.h... yes
 0:03.23 checking for unistd.h... yes
 0:03.25 checking for nl_types.h... yes
 0:03.28 checking for cpuid.h... yes
 0:03.31 checking for fts.h... yes
 0:03.32 checking for sys/statvfs.h... yes
 0:03.34 checking for sys/statfs.h... yes
 0:03.36 checking for sys/vfs.h... yes
 0:03.39 checking for sys/mount.h... yes
 0:03.42 checking for sys/quota.h... yes
 0:03.45 checking for linux/quota.h... yes
 0:03.49 checking for linux/if_addr.h... yes
 0:03.52 checking for linux/rtnetlink.h... yes
 0:03.55 checking for sys/queue.h... yes
 0:03.58 checking for sys/types.h... yes
 0:03.62 checking for netinet/in.h... yes
 0:03.64 checking for byteswap.h... yes
 0:03.67 checking for memfd_create in sys/mman.h... yes
 0:03.70 checking for linux/perf_event.h... yes
 0:03.72 checking for perf_event_open system call... yes
 0:03.74 checking whether the C compiler supports -Wbitfield-enum-conversion... yes
 0:03.76 checking whether the C++ compiler supports -Wbitfield-enum-conversion... yes
 0:03.78 checking whether the C++ compiler supports -Wdeprecated-this-capture... yes
 0:03.81 checking whether the C compiler supports -Wformat-type-confusion... yes
 0:03.83 checking whether the C++ compiler supports -Wformat-type-confusion... yes
 0:03.85 checking whether the C compiler supports -Wshadow-field-in-constructor-modified... yes
 0:03.88 checking whether the C++ compiler supports -Wshadow-field-in-constructor-modified... yes
 0:03.90 checking whether the C++ compiler supports -Wshadow-uncaptured-local... yes
 0:03.92 checking whether the C compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:03.95 checking whether the C++ compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:03.97 checking whether the C compiler supports -Wunreachable-code-return... yes
 0:03.99 checking whether the C++ compiler supports -Wunreachable-code-return... yes
 0:04.02 checking whether the C compiler supports -Wclass-varargs... yes
 0:04.04 checking whether the C++ compiler supports -Wclass-varargs... yes
 0:04.06 checking whether the C++ compiler supports -Wempty-init-stmt... yes
 0:04.08 checking whether the C compiler supports -Wfloat-overflow-conversion... yes
 0:04.11 checking whether the C++ compiler supports -Wfloat-overflow-conversion... yes
 0:04.13 checking whether the C compiler supports -Wfloat-zero-conversion... yes
 0:04.15 checking whether the C++ compiler supports -Wfloat-zero-conversion... yes
 0:04.17 checking whether the C compiler supports -Wloop-analysis... yes
 0:04.20 checking whether the C++ compiler supports -Wloop-analysis... yes
 0:04.22 checking whether the C compiler supports -Wno-range-loop-analysis... yes
 0:04.24 checking whether the C++ compiler supports -Wno-range-loop-analysis... yes
 0:04.27 checking whether the C++ compiler supports -Wc++2a-compat... yes
 0:04.29 checking whether the C++ compiler supports -Wcomma... yes
 0:04.31 checking whether the C compiler supports -Wduplicated-cond... no
 0:04.33 checking whether the C++ compiler supports -Wduplicated-cond... no
 0:04.35 checking whether the C compiler supports -Wenum-compare-conditional... yes
 0:04.37 checking whether the C++ compiler supports -Wenum-compare-conditional... yes
 0:04.40 checking whether the C++ compiler supports -Wimplicit-fallthrough... yes
 0:04.42 checking whether the C compiler supports -Wstring-conversion... yes
 0:04.44 checking whether the C++ compiler supports -Wstring-conversion... yes
 0:04.47 checking whether the C++ compiler supports -Wno-inline-new-delete... yes
 0:04.49 checking whether the C compiler supports -Wno-error=maybe-uninitialized... no
 0:04.51 checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... no
 0:04.53 checking whether the C compiler supports -Wno-error=deprecated-declarations... yes
 0:04.55 checking whether the C++ compiler supports -Wno-error=deprecated-declarations... yes
 0:04.57 checking whether the C compiler supports -Wno-error=array-bounds... yes
 0:04.60 checking whether the C++ compiler supports -Wno-error=array-bounds... yes
 0:04.62 checking whether the C compiler supports -Wno-error=coverage-mismatch... no
 0:04.63 checking whether the C++ compiler supports -Wno-error=coverage-mismatch... no
 0:04.66 checking whether the C compiler supports -Wno-error=backend-plugin... yes
 0:04.68 checking whether the C++ compiler supports -Wno-error=backend-plugin... yes
 0:04.70 checking whether the C compiler supports -Wno-error=free-nonheap-object... yes
 0:04.72 checking whether the C++ compiler supports -Wno-error=free-nonheap-object... yes
 0:04.74 checking whether the C compiler supports -Wno-multistatement-macros... no
 0:04.76 checking whether the C++ compiler supports -Wno-multistatement-macros... no
 0:04.79 checking whether the C compiler supports -Wno-error=return-std-move... yes
 0:04.81 checking whether the C++ compiler supports -Wno-error=return-std-move... yes
 0:04.83 checking whether the C compiler supports -Wno-error=class-memaccess... no
 0:04.85 checking whether the C++ compiler supports -Wno-error=class-memaccess... no
 0:04.87 checking whether the C compiler supports -Wno-error=atomic-alignment... yes
 0:04.89 checking whether the C++ compiler supports -Wno-error=atomic-alignment... yes
 0:04.92 checking whether the C compiler supports -Wno-error=deprecated-copy... yes
 0:04.94 checking whether the C++ compiler supports -Wno-error=deprecated-copy... yes
 0:04.96 checking whether the C compiler supports -Wformat... yes
 0:04.99 checking whether the C++ compiler supports -Wformat... yes
 0:05.01 checking whether the C compiler supports -Wformat-security... yes
 0:05.03 checking whether the C++ compiler supports -Wformat-security... yes
 0:05.05 checking whether the C compiler supports -Wformat-overflow=2... no
 0:05.07 checking whether the C++ compiler supports -Wformat-overflow=2... no
 0:05.10 checking whether the C compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:05.12 checking whether the C++ compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:05.15 checking whether the C compiler supports -Werror=implicit-function-declaration... yes
 0:05.17 checking whether the C compiler supports -Wno-psabi... yes
 0:05.19 checking whether the C++ compiler supports -Wno-psabi... yes
 0:05.22 checking whether the C++ compiler supports -fno-sized-deallocation... yes
 0:05.24 checking whether the C++ compiler supports -fno-aligned-new... yes
 0:05.24 checking for llvm_profdata... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/llvm-profdata
 0:05.27 checking for libpulse... yes
 0:05.28 checking MOZ_PULSEAUDIO_CFLAGS... -D_REENTRANT
 0:05.28 checking MOZ_PULSEAUDIO_LIBS... -lpulse
 0:05.28 checking for rustc... /home/etna/Runtime/Deps/rustc-1.56.1/bin/rustc
 0:05.28 checking for cargo... /home/etna/Runtime/Deps/rustc-1.56.1/bin/cargo
 0:05.51 checking rustc version... 1.56.1
 0:05.51 checking cargo version... 1.56.0
 0:05.82 checking for rust host triplet... x86_64-unknown-linux-gnu
 0:05.89 checking for rust target triplet... x86_64-unknown-linux-gnu
 0:05.89 checking for rustdoc... /home/etna/Runtime/Deps/rustc-1.56.1/bin/rustdoc
 0:05.90 checking for cbindgen... /home/etna/Runtime/Deps/rustc-1.56.1/bin/cbindgen
 0:05.90 checking for rustfmt... /home/etna/Runtime/Deps/rustc-1.56.1/bin/rustfmt
 0:05.90 checking for clang for bindgen... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++
 0:05.92 checking for libclang for bindgen... /home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib/libclang.so
 0:05.95 checking that libclang is new enough... yes
 0:05.95 checking bindgen cflags... -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN -DOS_POSIX=1 -DOS_LINUX=1 -std=gnu++17
 0:05.96 checking for nodejs... /home/etna/Runtime/Deps/node-v17.1.0/bin/node (17.1.0)
 0:05.99 checking for gtk+-wayland-3.0 >= 3.14 xkbcommon >= 0.4.1 libdrm >= 2.4... yes
 0:06.00 checking MOZ_WAYLAND_CFLAGS... -pthread -I/home/etna/Runtime/Deps/avcodecs/include/freetype2 -I/home/etna/Runtime/Deps/avcodecs/include/fribidi -I/home/etna/Runtime/Deps/avcodecs/include/harfbuzz -I/home/etna/Runtime/Deps/libpng-1.6.37/include/libpng16 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libdrm
 0:06.00 checking MOZ_WAYLAND_LIBS... -L/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxkbcommon -ldrm
 0:06.01 checking for pango >= 1.22.0... yes
 0:06.01 checking MOZ_PANGO_CFLAGS... -pthread -I/home/etna/Runtime/Deps/avcodecs/include/freetype2 -I/home/etna/Runtime/Deps/avcodecs/include/fribidi -I/home/etna/Runtime/Deps/avcodecs/include/harfbuzz -I/home/etna/Runtime/Deps/libpng-1.6.37/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
 0:06.01 checking MOZ_PANGO_LIBS... -L/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz
 0:06.02 checking for fontconfig >= 2.7.0... yes
 0:06.02 checking _FONTCONFIG_CFLAGS... -I/home/etna/Runtime/Deps/avcodecs/include/freetype2 -I/home/etna/Runtime/Deps/avcodecs/include/harfbuzz -I/home/etna/Runtime/Deps/libpng-1.6.37/include/libpng16 -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
 0:06.02 checking _FONTCONFIG_LIBS... -L/home/etna/Runtime/Deps/avcodecs/lib -lfontconfig -lfreetype
 0:06.03 checking for freetype2 >= 6.1.0... yes
 0:06.03 checking _FT2_CFLAGS... -I/home/etna/Runtime/Deps/avcodecs/include/freetype2 -I/home/etna/Runtime/Deps/avcodecs/include/harfbuzz -I/home/etna/Runtime/Deps/libpng-1.6.37/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
 0:06.03 checking _FT2_LIBS... -L/home/etna/Runtime/Deps/avcodecs/lib -lfreetype
 0:06.04 checking for tar... /usr/bin/tar
 0:06.04 checking for unzip... /usr/bin/unzip
 0:06.04 checking for zip... /usr/bin/zip
 0:06.04 checking for gn... not found
 0:06.04 checking for the Mozilla API key... no
 0:06.04 checking for the Google Location Service API key... no
 0:06.04 checking for the Google Safebrowsing API key... no
 0:06.04 checking for the Bing API key... no
 0:06.04 checking for the Adjust SDK key... no
 0:06.04 checking for the Leanplum SDK key... no
 0:06.04 checking for the Pocket API key... no
 0:06.05 checking for x11 xcb xcb-shm x11-xcb xext xrandr >= 1.4.0 xcomposite xcursor xdamage xfixes xi... yes
 0:06.05 checking MOZ_X11_CFLAGS...
 0:06.06 checking MOZ_X11_LIBS... -lxcb-shm -lX11-xcb -lX11 -lxcb -lXext -lXrandr -lXcomposite -lXcursor -lXdamage -lXfixes -lXi
 0:06.06 checking for ice sm... yes
 0:06.06 checking MOZ_X11_SM_CFLAGS...
 0:06.06 checking for nasm... /home/etna/Runtime/Deps/NasmYasm/bin/nasm
 0:06.07 checking nasm version... 2.16rc0
 0:06.07 ERROR: Cannot find a wasi sysroot. Please give its location with --with-wasi-sysroot. Or build with --without-wasm-sandboxed-libraries.
Error running mach:

    ['build']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

Exception: Process executed with non-0 exit code 1: ['/home/etna/Runtime/Deps/python-3.10.0/bin/python3', '/home/etna/Tmpbuilddir/firefox-95.0/configure.py']

  File "/home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/build_commands.py", line 220, in build
    return driver.build(
  File "/home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/controller/building.py", line 1145, in build
    config_rc = self.configure(
  File "/home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/controller/building.py", line 1526, in configure
    status = self._run_command_in_objdir(
  File "/home/etna/Tmpbuilddir/firefox-95.0/python/mozbuild/mozbuild/base.py", line 853, in _run_command_in_objdir
    return self.run_process(cwd=self.topobjdir, **args)
  File "/home/etna/Tmpbuilddir/firefox-95.0/python/mach/mach/mixin/process.py", line 174, in run_process
    raise Exception(
Flags: needinfo?(laharlxetna)

./mach build-log returns the following result: ...

Oops, thought that command was still around, sorry :)


Thanks for the log!

I'm guessing that the cause of this is that, rather than "bootstrapping", you're manually providing all the tools/dependencies that Firefox needs for a build - however, the "wasi sysroot" wasn't manually set up.

There's three ways that you can resolve this:

  1. Get the Firefox 95 source via VCS (mercurial) instead, so that you can ./mach bootstrap (bootstrapping doesn't work on tarballs at the moment). Then, do the build as you are now.
  2. Disable the feature that requires the sysroot by adding the following to your mozconfig: ac_add_options --without-wasm-sandboxed-libraries
  3. Fetch a compatible wasi sysroot and make it available to the build: ac_add_options --with-wasi-sysroot=<path_to_sysroot>. I don't know off the top of my head where you can get such a sysroot, but a hint may be to look at Firefox CI.

I'd recommend option 1 or 2.

I'm going to close this as fixed, but feel free to re-open if I misunderstood anything :)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

(In reply to Mitchell Hentges [:mhentges] 🦀 from comment #4)

./mach build-log returns the following result: ...

Oops, thought that command was still around, sorry :)

(it's ./mach show-log)

You need to log in before you can comment on or make changes to this bug.