Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with clang build #193

Closed
tomasdivito opened this issue Aug 5, 2019 · 2 comments
Closed

Problem with clang build #193

tomasdivito opened this issue Aug 5, 2019 · 2 comments

Comments

@tomasdivito
Copy link

tomasdivito commented Aug 5, 2019

I've been all day trying to build servo but I'm blocked from building it and apparently it all lead me here, I read other issues (like #73 as an example) but I couldn't find a solution. (EDIT: Thinking about it, maybe was a bad idea to make a new issue, and probably should go and explain this issue in #73, if that would be the best idea tell me and I close this issue and move to the other one, sorry!)

I'm using WSL in Windows so it's like I'm doing this on a Ubuntu machine, I followed the instructions in the readme, and when I try to build I get this error:

totiimon@DESKTOP-4UMK442:/mnt/d/code/mozjs$ CC=clang CXX=g++ cargo build
   Compiling mozjs_sys v0.67.0 (/mnt/d/code/mozjs)
error: failed to run custom build command for `mozjs_sys v0.67.0 (/mnt/d/code/mozjs)`

Caused by:
  process didn't exit successfully: `/mnt/d/code/mozjs/target/debug/build/mozjs_sys-4120a17e10f4f3fc/build-script-build` (exit code: 101)
--- stdout
[[ /mnt/d/code/mozjs/mozjs/js/src/configure -ot /mnt/d/code/mozjs/mozjs/js/src/configure.in ]] && touch /mnt/d/code/mozjs/mozjs/js/src/configure || true
[[ /mnt/d/code/mozjs/mozjs/js/src/old-configure -ot /mnt/d/code/mozjs/mozjs/js/src/old-configure.in ]] && touch /mnt/d/code/mozjs/mozjs/js/src/old-configure || true
! [[ /mnt/d/code/mozjs/mozjs/js/src/configure.in -ot /mnt/d/code/mozjs/mozjs/js/src/configure ]] && touch /mnt/d/code/mozjs/mozjs/js/src/configure || true
! [[ /mnt/d/code/mozjs/mozjs/js/src/old-configure.in -ot /mnt/d/code/mozjs/mozjs/js/src/old-configure ]] && touch /mnt/d/code/mozjs/mozjs/js/src/old-configure || true
if [[ /mnt/d/code/mozjs/mozjs/js/src/configure -nt /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/config.status ]] ; then \
  cd /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out && \
  PYTHON="python2" MOZ_TOOLS="" \
  CC="clang" CFLAGS="" \
  CPP="clang -E" CPPFLAGS="" \
  CXX="g++" CXXFLAGS="" \
  AS="" AR="ar" \
  STLPORT_LIBS="" \
  /mnt/d/code/mozjs/mozjs/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --disable-shared-js --build-backends=RecursiveMake --enable-posix-nspr-emulation --disable-shared-js || (cat config.log && exit 1) ; \
fi
cd /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out && make -f Makefile
make[1]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[2]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make recurse_pre-export
make[3]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/_virtualenvs/init/bin/python -m mozbuild.action.process_install_manifest --track install_dist_include.track dist/include _build_manifests/install/dist_include
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/_virtualenvs/init/bin/python -m mozbuild.action.process_install_manifest --track install_dist_public.track dist/public _build_manifests/install/dist_public
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/_virtualenvs/init/bin/python -m mozbuild.action.process_install_manifest --track install_dist_private.track dist/private _build_manifests/install/dist_private
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/_virtualenvs/init/bin/python -m mozbuild.action.process_install_manifest --track install__tests.track _tests _build_manifests/install/_tests
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/_virtualenvs/init/bin/python -m mozbuild.action.process_install_manifest --track install_dist_bin.track dist/bin _build_manifests/install/dist_bin
Elapsed: 0.00s; From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.00s; From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.00s; From dist/bin: Kept 1 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.21s; From dist/include: Kept 382 existing; Added/updated 0; Removed 0 files and 0 directories.
Elapsed: 0.38s; From _tests: Kept 356 existing; Added/updated 0; Removed 0 files and 0 directories.
make[3]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[2]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[2]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make recurse_export
make[3]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/config'
make[4]: Nothing to be done for 'host'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/config'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/config'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/config'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/build'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/build'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/build'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/build'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/build'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/build'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/frontend'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/frontend'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/jit'
make[4]: Nothing to be done for 'export'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/jit'
make[3]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[2]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[2]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make recurse_compile
make[3]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mfbt'
/usr/bin/gcc -std=gnu99 -o lz4.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DIMPL_MFBT -DLZ4LIB_VISIBILITY= -I/mnt/d/code/mozjs/mozjs/mfbt -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mfbt -I/mnt/d/code/mozjs/mozjs/mfbt/double-conversion -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -DMOZILLA_CLIENT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -ffunction-sections -fdata-sections -fno-math-errno -pthread -fPIC -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2  -MD -MP -MF .deps/lz4.o.pp   /mnt/d/code/mozjs/mozjs/mfbt/lz4.c
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/editline'
/usr/bin/gcc -std=gnu99 -o Unified_c_js_src_editline0.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DANSI_ARROWS -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY -I/mnt/d/code/mozjs/mozjs/js/src/editline -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/editline -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -DMOZILLA_CLIENT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -ffunction-sections -fdata-sections -fno-math-errno -pthread -fPIC -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wduplicated-cond -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2  -MD -MP -MF .deps/Unified_c_js_src_editline0.o.pp   /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/editline/Unified_c_js_src_editline0.c
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src'
/usr/bin/g++ -o RegExp.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/RegExp.o.pp   /mnt/d/code/mozjs/mozjs/js/src/builtin/RegExp.cpp
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/modules/fdlibm/src'
/usr/bin/g++ -o e_acos.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -Wno-parentheses -Wno-sign-compare  -MD -MP -MF .deps/e_acos.o.pp   /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_acos.cpp
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/mozalloc'
make[4]: Nothing to be done for 'target'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/mozalloc'
/usr/bin/g++ -o e_acosh.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -Wno-parentheses -Wno-sign-compare  -MD -MP -MF .deps/e_acosh.o.pp   /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_acosh.cpp
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/build'
make[4]: Nothing to be done for 'target'.
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/memory/build'
/usr/bin/g++ -o e_asin.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/modules/fdlibm/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -Wno-parentheses -Wno-sign-compare  -MD -MP -MF .deps/e_asin.o.pp   /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_asin.cpp
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/misc'
/usr/bin/g++ -o ConditionVariable_posix.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DIMPL_MFBT -DMOZ_HAS_MOZGLUE -I/mnt/d/code/mozjs/mozjs/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables  -MD -MP -MF .deps/ConditionVariable_posix.o.pp   /mnt/d/code/mozjs/mozjs/mozglue/misc/ConditionVariable_posix.cpp
make[4]: Entering directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc'
/usr/bin/g++ -o StoreBuffer.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/StoreBuffer.o.pp   /mnt/d/code/mozjs/mozjs/js/src/gc/StoreBuffer.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:741: recipe for target 'lz4.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mfbt'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'mfbt/target' failed
/usr/bin/g++ -o Unified_cpp_js_src_gc0.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/Unified_cpp_js_src_gc0.o.pp   /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc0.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:741: recipe for target 'Unified_c_js_src_editline0.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/editline'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'js/src/editline/target' failed
/usr/bin/g++ -o Unified_cpp_js_src_gc1.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/Unified_cpp_js_src_gc1.o.pp   /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc1.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'e_acos.o' failed
/usr/bin/g++ -o Unified_cpp_js_src_gc2.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/Unified_cpp_js_src_gc2.o.pp   /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc2.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'e_acosh.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'e_asin.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/modules/fdlibm/src'
/usr/bin/g++ -o jsmath.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DWASM_HUGE_MEMORY -DEXPORT_JS_API -I/mnt/d/code/mozjs/mozjs/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow  -MD -MP -MF .deps/jsmath.o.pp   /mnt/d/code/mozjs/mozjs/js/src/jsmath.cpp
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'modules/fdlibm/src/target' failed
/usr/bin/g++ -o Mutex_posix.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DIMPL_MFBT -DMOZ_HAS_MOZGLUE -I/mnt/d/code/mozjs/mozjs/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables  -MD -MP -MF .deps/Mutex_posix.o.pp   /mnt/d/code/mozjs/mozjs/mozglue/misc/Mutex_posix.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'RegExp.o' failed
/usr/bin/g++ -o Printf.o -c  -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers -include /mnt/d/code/mozjs/mozjs/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DIMPL_MFBT -DMOZ_HAS_MOZGLUE -I/mnt/d/code/mozjs/mozjs/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/misc -I/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include -fPIC -DMOZILLA_CLIENT -include /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/js-confdefs.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables  -MD -MP -MF .deps/Printf.o.pp   /mnt/d/code/mozjs/mozjs/mozglue/misc/Printf.cpp
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'ConditionVariable_posix.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'StoreBuffer.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'Unified_cpp_js_src_gc0.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'Unified_cpp_js_src_gc1.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'jsmath.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'js/src/target' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'Mutex_posix.o' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'Unified_cpp_js_src_gc2.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'js/src/gc/target' failed
/mnt/d/code/mozjs/mozjs/config/rules.mk:805: recipe for target 'Printf.o' failed
make[4]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/mozglue/misc'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:74: recipe for target 'mozglue/misc/target' failed
make[3]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
/mnt/d/code/mozjs/mozjs/config/recurse.mk:32: recipe for target 'compile' failed
make[2]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
/mnt/d/code/mozjs/mozjs/config/rules.mk:400: recipe for target 'default' failed
make[1]: Leaving directory '/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out'
makefile.cargo:178: recipe for target 'all' failed

--- stderr
In file included from /mnt/d/code/mozjs/mozjs/mfbt/lz4.c:168:0:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [lz4.o] Error 1
make[3]: *** [mfbt/target] Error 2
make[3]: *** Waiting for unfinished jobs....
In file included from /mnt/d/code/mozjs/mozjs/js/src/editline/editline.h:35:0,
                 from /mnt/d/code/mozjs/mozjs/js/src/editline/editline.c:30,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/editline/Unified_c_js_src_editline0.c:2:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [Unified_c_js_src_editline0.o] Error 1
make[3]: *** [js/src/editline/target] Error 2
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/EndianUtils.h:76:0,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/math_private.h:26,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_acos.cpp:43:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [e_acos.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/EndianUtils.h:76:0,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/math_private.h:26,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_acosh.cpp:34:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/EndianUtils.h:76:0,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/math_private.h:26,
                 from /mnt/d/code/mozjs/mozjs/modules/fdlibm/src/e_asin.cpp:49:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [e_acosh.o] Error 1
make[4]: *** [e_asin.o] Error 1
make[3]: *** [modules/fdlibm/src/target] Error 2
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Poison.h:19:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Maybe.h:18,
                 from /mnt/d/code/mozjs/mozjs/js/src/vm/TaggedProto.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/Marking.h:16,
                 from /mnt/d/code/mozjs/mozjs/js/src/vm/RegExpObject.h:16,
                 from /mnt/d/code/mozjs/mozjs/js/src/builtin/RegExp.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/builtin/RegExp.cpp:7:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [RegExp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/c++/7/cstring:42:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/cstring:3,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Casting.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Utf8.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/RecordReplay.h:16,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Atomics.h:22,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/PlatformMutex.h:10,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/PlatformConditionVariable.h:12,
                 from /mnt/d/code/mozjs/mozjs/mozglue/misc/ConditionVariable_posix.cpp:16:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [ConditionVariable_posix.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /mnt/d/code/mozjs/mozjs/js/src/ds/BitArray.h:13:0,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/StoreBuffer.h:16,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/StoreBuffer-inl.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/StoreBuffer.cpp:7:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
In file included from /usr/include/c++/7/cstring:42:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/cstring:3,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Casting.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Utf8.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/RecordReplay.h:16,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Atomics.h:22,
                 from /mnt/d/code/mozjs/mozjs/js/src/vm/Runtime.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/GCLock.h:14,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/Allocator.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/Allocator.cpp:7,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc0.cpp:2:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [StoreBuffer.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [Unified_cpp_js_src_gc0.o] Error 1
In file included from /usr/include/c++/7/cstring:42:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/cstring:3,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Casting.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Utf8.h:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/RecordReplay.h:16,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Atomics.h:22,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/Memory.cpp:9,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc1.cpp:2:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [Unified_cpp_js_src_gc1.o] Error 1
In file included from /usr/include/c++/7/cstring:42:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/cstring:3,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Casting.h:15,
                 from /mnt/d/code/mozjs/mozjs/js/src/jstypes.h:25,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/js/CallNonGenericMethod.h:10,
                 from /mnt/d/code/mozjs/mozjs/js/src/NamespaceImports.h:15,
                 from /mnt/d/code/mozjs/mozjs/js/src/jsmath.h:14,
                 from /mnt/d/code/mozjs/mozjs/js/src/jsmath.cpp:11:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Poison.h:19:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Maybe.h:18,
                 from /mnt/d/code/mozjs/mozjs/mozglue/misc/Mutex_posix.cpp:8:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [jsmath.o] Error 1
make[3]: *** [js/src/target] Error 2
make[4]: *** [Mutex_posix.o] Error 1
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Poison.h:19:0,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Maybe.h:18,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/GCInternals.h:15,
                 from /mnt/d/code/mozjs/mozjs/js/src/gc/Verifier.cpp:15,
                 from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/js/src/gc/Unified_cpp_js_src_gc2.cpp:2:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [Unified_cpp_js_src_gc2.o] Error 1
make[3]: *** [js/src/gc/target] Error 2
In file included from /mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/include/mozilla/Printf.h:63:0,
                 from /mnt/d/code/mozjs/mozjs/mozglue/misc/Printf.cpp:15:
/mnt/d/code/mozjs/target/debug/build/mozjs_sys-ef8b4ab19ddd2c2c/out/dist/system_wrappers/string.h:3:15: fatal error: String.h: No such file or directory
 #include_next <String.h>
               ^~~~~~~~~~
compilation terminated.
make[4]: *** [Printf.o] Error 1
make[3]: *** [mozglue/misc/target] Error 2
make[2]: *** [compile] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2
thread 'main' panicked at 'assertion failed: result.success()', build.rs:111:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I tried changing CC CPP and CXX variables to use clang and g++ but I had no luck. Tried reading the error slowly but it's kind of hard because I'm not that used to program in C++, in fact the building system is something that kinda get me off to want to learn more about it.

I had just another error when trying to build Servo with another library, but I'm thinking it's related to this one. I don't know if giving too much attention to the String.h header issues because sometimes it throw me this and while trying other thing for other post I got a similar error.

@tomasdivito tomasdivito changed the title Problem with clang building Problem with clang build Aug 5, 2019
@jdm
Copy link
Member

jdm commented Aug 5, 2019

I am not aware of any successful WSL builds. We will not be able to provide any support for that configuration.

@jdm jdm closed this as completed Aug 5, 2019
@LAK132
Copy link

LAK132 commented May 28, 2021

Replacing String.h in string.h with string.h and Strings.h in strings.h with strings.h this seems to build fine under WSL.

Building in the root WSL(2) filesystem instead of on a shared drive seems to fix this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants