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

Windows 10: mozjs_sys build failure, "Makefile: No such file or directory" #26911

Open
nicbn opened this issue Jun 14, 2020 · 5 comments
Open

Windows 10: mozjs_sys build failure, "Makefile: No such file or directory" #26911

nicbn opened this issue Jun 14, 2020 · 5 comments

Comments

@nicbn
Copy link

@nicbn nicbn commented Jun 14, 2020

Running $env:RUST_BACKTRACE="full"; ./mach build -d -v :

error: failed to run custom build command for `mozjs_sys v0.68.1 (https://github.com/servo/mozjs?rev=9a6d8fc6b0cf13cd02efbd805ccdf62ddc5ce593#9a6d8fc6)`

Caused by:
  process didn't exit successfully: `D:\Projects\servo\target\debug\build\mozjs_sys-6d051e3a32d7d4a5\build-script-build` (exit code: 101)
--- stdout
cargo:outdir=D:\Projects\servo\target\debug\build\mozjs_sys-509b5f9dac409c18\out\build
[[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure.in ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure || true
[[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure.in ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure || true
! [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure.in -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure || true
! [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure.in -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/old-configure || true
if [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure -nt config.status ]] ; then \
  PYTHON="C:\Python27\python.exe" MOZ_TOOLS="/" \
  CC="clang-cl.exe" CFLAGS="-MD" \
  CPP="" CPPFLAGS="-IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include " \
  CXX="clang-cl.exe" CXXFLAGS="-MD" \
  AS="" AR="" \
  STLPORT_LIBS="" \
  'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs'/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --disable-export-js --disable-shared-js --build-backends=RecursiveMake --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 || (cat config.log && exit 1) ; \
fi
D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/bin/mozmake -f Makefile
mozmake[1]: Entering directory 'D:/Projects/servo/target/debug/build/mozjs_sys-509b5f9dac409c18/out/build'
mozmake[1]: Leaving directory 'D:/Projects/servo/target/debug/build/mozjs_sys-509b5f9dac409c18/out/build'

--- stderr
mozmake[1]: Makefile: No such file or directory
mozmake[1]: *** No rule to make target 'Makefile'.  Stop.
mozmake: *** [C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\makefile.cargo:183: all] Error 2
thread 'main' panicked at 'assertion failed: result.success()', C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\build.rs:177:5
stack backtrace:
   0:     0x7ff6dd9dd87f - backtrace::backtrace::trace_unsynchronized
                               at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.46\src\backtrace\mod.rs:66
   1:     0x7ff6dd9dd87f - std::sys_common::backtrace::_print_fmt
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\sys_common\backtrace.rs:78
   2:     0x7ff6dd9dd87f - std::sys_common::backtrace::_print::{{impl}}::fmt
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\sys_common\backtrace.rs:59
   3:     0x7ff6dd9f4d9b - core::fmt::write
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libcore\fmt\mod.rs:1069
   4:     0x7ff6dd9d7e9c - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\io\mod.rs:1537
   5:     0x7ff6dd9e137c - std::sys_common::backtrace::_print
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\sys_common\backtrace.rs:62
   6:     0x7ff6dd9e137c - std::sys_common::backtrace::print
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\sys_common\backtrace.rs:49
   7:     0x7ff6dd9e137c - std::panicking::default_hook::{{closure}}
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panicking.rs:198
   8:     0x7ff6dd9e0fbf - std::panicking::default_hook
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panicking.rs:218
   9:     0x7ff6dd9e1b67 - std::panicking::rust_panic_with_hook
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panicking.rs:477
  10:     0x7ff6dd948c92 - std::panicking::begin_panic<str*>
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\src\libstd\panicking.rs:404
  11:     0x7ff6dd6e2740 - build_script_build::build_jsapi
                               at C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\build.rs:177
  12:     0x7ff6dd6e1252 - build_script_build::main
                               at C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\build.rs:57
  13:     0x7ff6dd6ed46b - std::rt::lang_start::{{closure}}<()>
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\src\libstd\rt.rs:67
  14:     0x7ff6dd9e1e9f - std::rt::lang_start_internal::{{closure}}
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\rt.rs:52
  15:     0x7ff6dd9e1e9f - std::panicking::try::do_call
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panicking.rs:297
  16:     0x7ff6dd9e1e9f - std::panicking::try
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panicking.rs:274
  17:     0x7ff6dd9e1e9f - std::panic::catch_unwind
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\panic.rs:394
  18:     0x7ff6dd9e1e9f - std::rt::lang_start_internal
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\/src\libstd\rt.rs:51
  19:     0x7ff6dd6ed443 - std::rt::lang_start<()>
                               at /rustc/a74d1862d4d87a56244958416fd05976c58ca1a8\src\libstd\rt.rs:67
  20:     0x7ff6dd6e5390 - main
  21:     0x7ff6ddd3fa10 - invoke_main
                               at d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  22:     0x7ff6ddd3fa10 - __scrt_common_main_seh
                               at d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  23:     0x7ffdbc267bd4 - BaseThreadInitThunk
  24:     0x7ffdbc46ce51 - RtlUserThreadStart
@jdm
Copy link
Member

@jdm jdm commented Jun 14, 2020

My suspicion is that configure didn't get run because of some weird timestamps from cloning from git. Can you touch C:\Users\nicol.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\9a6d8fc\mozjs\js\src\configure so the timestamp is updated and try building again?

@nicbn
Copy link
Author

@nicbn nicbn commented Jul 3, 2020

Sorry for the delay, tried it just now.
For good measure, I tried once more without doing anything, and error still present. (didn't pull since last time though)
Then I touched configure and it seemingly solved that particular error.

@nicbn
Copy link
Author

@nicbn nicbn commented Jul 3, 2020

I'm having a python2.7: unknown command being thrown now. (Should I create a new issue?)
Set-Alias won't help with it.

Oh, also fatal error: 'unistd.h' file not found, almost didn't see that one.

Output
error: failed to run custom build command for `mozjs_sys v0.68.1 (https://github.com/servo/mozjs?rev=fc8b31502fb9bc0cc229f1fd4493c4a0de5239a3#fc8b3150)`

Caused by:
  process didn't exit successfully: `D:\Projects\servo\target\debug\build\mozjs_sys-f3f45a0d9b494a61\build-script-build` (exit code: 101)
--- stdout
cargo:outdir=D:\Projects\servo\target\debug\build\mozjs_sys-adb4af29d6e76d08\out\build
[[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure.in ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure || true
[[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure.in ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure || true
! [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure.in -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure || true
! [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure.in -ot 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure ]] && touch 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/old-configure || true
if [[ 'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure -nt config.status ]] ; then \
  PYTHON="C:\Python27\python.exe" MOZ_TOOLS="/" \
  CC="clang-cl.exe" CFLAGS="-MD" \
  CPP="" CPPFLAGS="-IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include " \
  CXX="clang-cl.exe" CXXFLAGS="-MD" \
  AS="" AR="" \
  STLPORT_LIBS="" \
  'C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs'/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --disable-export-js --disable-shared-js --build-backends=RecursiveMake --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 || (cat config.log && exit 1) ; \
fi
Reexecuting in the virtualenv
checking for vcs source checkout... no
checking for a shell... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/sh.exe
checking for host system type... x86_64-pc-mingw32
checking for target system type... x86_64-pc-mingw32
checking for Python 3... C:\Python38\python.exe (3.8.3)
checking whether cross compiling... no
checking for yasm... d:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/bin/yasm.exe
checking yasm version... 1.3.0
checking for the target C compiler... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe
checking whether the target C compiler can be used... yes
checking the target C compiler version... 9.0.0
checking the target C compiler works... yes
checking for the target C++ compiler... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe
checking whether the target C++ compiler can be used... yes
checking the target C++ compiler version... 9.0.0
checking the target C++ compiler works... yes
checking for the host C compiler... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe
checking whether the host C compiler can be used... yes
checking the host C compiler version... 9.0.0
checking the host C compiler works... yes
checking for the host C++ compiler... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe
checking whether the host C++ compiler can be used... yes
checking the host C++ compiler version... 9.0.0
checking the host C++ compiler works... yes
checking for 64-bit OS... yes
checking for Windows SDK... 0x0a00 in 'C:\Program Files (x86)\Windows Kits\10\'
checking for Universal CRT SDK... 10.0.18362.0 in 'C:\Program Files (x86)\Windows Kits\10\'
checking for the Debug Interface Access SDK... C:\PROGRA~2\MICROS~1\2019\COMMUN~1\DIA SDK
checking for mt... C:/PROGRA~2/WI3CF2~1/10/bin/100183~1.0/x64/mt.exe
checking whether MT is really Microsoft Manifest Tool... yes
checking for linker... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe
checking for host_linker... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe
checking for makecab... c:/Windows/system32/makecab.exe
checking for nasm... not found
checking for the assembler... C:/PROGRA~2/MICROS~1/2019/COMMUN~1/VC/Tools/MSVC/1424~1.283/bin/HostX64/x64/ml64.exe
checking for rc... C:/PROGRA~2/WI3CF2~1/10/bin/100183~1.0/x64/rc.exe
checking for ar... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/llvm-lib.exe
checking for pkg_config... not found
checking for stdint.h... yes
checking for inttypes.h... yes
checking for malloc.h... yes
checking for alloca.h... no
checking for sys/byteorder.h... no
checking for getopt.h... no
checking for unistd.h... no
checking for nl_types.h... no
checking for cpuid.h... yes
checking for sys/statvfs.h... no
checking for sys/statfs.h... no
checking for sys/vfs.h... no
checking for sys/mount.h... no
checking for sys/quota.h... no
checking for sys/queue.h... no
checking for sys/types.h... yes
checking for netinet/in.h... no
checking for byteswap.h... no
checking for perf_event_open system call... no
checking for rustfmt... c:/Users/nicol/.cargo/bin/rustfmt.exe
checking for llvm_profdata... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/llvm-profdata.exe
checking for awk... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/gawk.exe
checking for perl... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/perl.exe
checking for minimum required perl version >= 5.006... 5.008008
checking for full perl installation... yes
checking for gmake... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/make.exe
checking for watchman... d:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/bin/watchman.exe
checking for watchman version... 4.9.1
checking for xargs... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/xargs.exe
checking for makensisu... not found
checking for 7z... d:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/bin/7z.exe
checking for llvm-objdump... d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/llvm-objdump.exe
checking for autoconf... D:/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/local/bin/autoconf-2.13
loading cache ./config.cache
checking host system type... x86_64-pc-mingw32
checking target system type... x86_64-pc-mingw32
checking build system type... x86_64-pc-mingw32
checking for gcc... (cached) d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99
checking whether the C compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -MD  ) works... (cached) yes
checking whether the C compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -MD  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 accepts -g... (cached) no
checking for c++... (cached) d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe
checking whether the C++ compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -MD  ) works... (cached) yes
checking whether the C++ compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -MD  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) no
checking whether d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe accepts -g... (cached) no
checking for ranlib... (cached) :
checking for C:/PROGRA~2/MICROS~1/2019/COMMUN~1/VC/Tools/MSVC/1424~1.283/bin/HostX64/x64/ml64.exe... (cached) C:/PROGRA~2/MICROS~1/2019/COMMUN~1/VC/Tools/MSVC/1424~1.283/bin/HostX64/x64/ml64.exe
checking for strip... no
checking for _getc_nolock... (cached) yes
checking for sb-conf... no
checking for ve... no
checking for X... (cached) no
checking NSPR selection... without-nspr
checking for valid optimization flags... yes
checking what kind of list files are supported by the linker... list
checking for posix_fadvise... (cached) no
checking for posix_fallocate... (cached) no
checking for malloc.h... (cached) yes
checking for strndup... (cached) no
checking for posix_memalign... (cached) no
checking for memalign... (cached) no
checking for malloc_usable_size... (cached) no
checking whether malloc_usable_size definition can use const argument... yes
checking for valloc in malloc.h... no
checking for valloc in unistd.h... no
checking for _aligned_malloc in malloc.h... yes
creating ./config.data
Creating config.status
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:668: checking host system type
configure:689: checking target system type
configure:707: checking build system type
configure:1680: checking for gcc
configure:1793: checking whether the C compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -MD  ) works
configure:1848: checking whether the C compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -MD  ) is a cross-compiler
configure:1853: checking whether we are using GNU C
configure:1881: checking whether d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 accepts -g
configure:1917: checking for c++
configure:1949: checking whether the C++ compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -MD  ) works
configure:2004: checking whether the C++ compiler (d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -MD  ) is a cross-compiler
configure:2009: checking whether we are using GNU C++
configure:2037: checking whether d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe accepts -g
configure:2071: checking for ranlib
configure:2103: checking for C:/PROGRA~2/MICROS~1/2019/COMMUN~1/VC/Tools/MSVC/1424~1.283/bin/HostX64/x64/ml64.exe
configure:2157: checking for strip
configure:2253: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -c -MD -nologo -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.c 1>&5
configure:2282: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -c -MD -TP -nologo -D_CRT_SECURE_NO_WARNINGS -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.C 1>&5
configure:2439: checking for _getc_nolock
configure:2509: checking for sb-conf
configure:2509: checking for ve
configure:2562: checking for X
configure:3966: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -c -MD -nologo -D_HAS_EXCEPTIONS=0 -Qunused-arguments -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.c 1>&5 && d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe -OUT:conftest   conftest.obj  1>&5
configure:6582: checking NSPR selection
configure:7017: checking for valid optimization flags
configure:7028: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -c -MD -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -Gw -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -O2 -Qunused-arguments -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.c 1>&5
configure:7455: checking what kind of list files are supported by the linker
configure:7460: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -o conftest.obj -c  -MD -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -Gw -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Qunused-arguments -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.c 1>&5
configure:7467: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe -OUT:conftest    -LARGEADDRESSAWARE -RELEASE conftest.list  kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib 1>&5
lld-link: warning: ignoring unknown argument '-RELEASE'
lld-link: error: conftest.list: unknown file type
configure:7471: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe -OUT:conftest    -LARGEADDRESSAWARE -RELEASE -Wl,-filelist,conftest.list  kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib 1>&5
lld-link: warning: ignoring unknown argument '-RELEASE'
lld-link: warning: ignoring unknown argument '-Wl,-filelist,conftest.list'
lld-link: warning: /machine is not specified. x64 is assumed
lld-link: error: subsystem must be defined
configure:7473: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/lld-link.exe -OUT:conftest    -LARGEADDRESSAWARE -RELEASE @conftest.list  kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib 1>&5
lld-link: warning: ignoring unknown argument '-RELEASE'
configure:7857: checking for posix_fadvise
configure:7857: checking for posix_fallocate
configure:7963: checking for malloc.h
configure:8011: checking for strndup
configure:8011: checking for posix_memalign
configure:8011: checking for memalign
configure:8074: checking for malloc_usable_size
configure:8136: checking whether malloc_usable_size definition can use const argument
configure:8147: d:/Projects/servo/.servo/msvc-dependencies/llvm/9.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -c -MD -nologo -D_HAS_EXCEPTIONS=0 -W3 -Gy -Zc:inline -Gw -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Qunused-arguments -IC:/Users/nicol/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_c_mem-0.2.6/include  conftest.c 1>&5
configure:8169: checking for valloc in malloc.h
configure:8194: checking for valloc in unistd.h
configure(8197,10): fatal error: 'unistd.h' file not found
#include <unistd.h>
         ^~~~~~~~~~
1 error generated.
configure:8219: checking for _aligned_malloc in malloc.h
INFO: Creating config.status

--- stderr
which: python2.7: unknown command
Reticulating splines...
Traceback (most recent call last):
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs/js/src/../../configure.py", line 170, in <module>
    sys.exit(main(sys.argv))
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs/js/src/../../configure.py", line 51, in main
    return config_status(config)
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs/js/src/../../configure.py", line 165, in config_status
    return config_status(args=[], **normalize(sanitized_config))
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozbuild\config_status.py", line 145, in config_status
    the_backend.consume(definitions)
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozbuild\backend\base.py", line 128, in consume
    if (not self.consume_object(obj) and
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozbuild\backend\recursivemake.py", line 441, in consume_object
    consumed = CommonBackend.consume_object(self, obj)
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozbuild\backend\common.py", line 135, in consume_object
    with self._get_preprocessor(obj) as pp:
  File "C:\Python27\Lib\contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozbuild\backend\base.py", line 320, in _get_preprocessor
    srcdir_rel=mozpath.relpath(srcdir, mozpath.dirname(obj.output_path)),
  File "C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\mozjs\python\mozbuild\mozpack\path.py", line 55, in relpath
    rel = normsep(os.path.relpath(path, start))
  File "D:\Projects\servo\target\debug\build\mozjs_sys-adb4af29d6e76d08\out\build\_virtualenvs\init\lib\ntpath.py", line 529, in relpath
    % (path_prefix, start_prefix))
ValueError: path is on drive C:, start on drive D:
mozmake: *** [C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\makefile.cargo:194: maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\build.rs:177:5
stack backtrace:
   0:     0x7ff66b26633e - backtrace::backtrace::trace_unsynchronized
                               at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.46\src\backtrace\mod.rs:66
   1:     0x7ff66b26633e - std::sys_common::backtrace::_print_fmt
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\sys_common\backtrace.rs:78
   2:     0x7ff66b26633e - std::sys_common::backtrace::_print::{{impl}}::fmt
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\sys_common\backtrace.rs:59
   3:     0x7ff66b27dfbc - core::fmt::write
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libcore\fmt\mod.rs:1076
   4:     0x7ff66b260903 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\io\mod.rs:1537
   5:     0x7ff66b269c9b - std::sys_common::backtrace::_print
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\sys_common\backtrace.rs:62
   6:     0x7ff66b269c9b - std::sys_common::backtrace::print
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\sys_common\backtrace.rs:49
   7:     0x7ff66b269c9b - std::panicking::default_hook::{{closure}}
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panicking.rs:198
   8:     0x7ff66b2698e8 - std::panicking::default_hook
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panicking.rs:217
   9:     0x7ff66b26a46f - std::panicking::rust_panic_with_hook
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panicking.rs:520
  10:     0x7ff66b0196d2 - std::panicking::begin_panic<str*>
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\src\libstd\panicking.rs:450
  11:     0x7ff66afd2727 - build_script_build::build_jsapi
                               at C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\build.rs:177
  12:     0x7ff66afd1252 - build_script_build::main
                               at C:\Users\nicol\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\fc8b315\build.rs:57
  13:     0x7ff66afdd50b - std::rt::lang_start::{{closure}}<()>
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\src\libstd\rt.rs:67
  14:     0x7ff66b26a776 - std::rt::lang_start_internal::{{closure}}
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\rt.rs:52
  15:     0x7ff66b26a776 - std::panicking::try::do_call
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panicking.rs:342
  16:     0x7ff66b26a776 - std::panicking::try
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panicking.rs:319
  17:     0x7ff66b26a776 - std::panic::catch_unwind
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\panic.rs:394
  18:     0x7ff66b26a776 - std::rt::lang_start_internal
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\/src\libstd\rt.rs:51
  19:     0x7ff66afdd4e3 - std::rt::lang_start<()>
                               at /rustc/0ca7f74dbd23a3e8ec491cd3438f490a3ac22741\src\libstd\rt.rs:67
  20:     0x7ff66afd53d0 - main
  21:     0x7ff66b62c8c0 - invoke_main
                               at d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  22:     0x7ff66b62c8c0 - __scrt_common_main_seh
                               at d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  23:     0x7ffe262e7bd4 - BaseThreadInitThunk
  24:     0x7ffe26f2ce51 - RtlUserThreadStart
@jdm
Copy link
Member

@jdm jdm commented Jul 3, 2020

ValueError: path is on drive C:, start on drive D: is the actual error. We don't support building servo in a different drive than the cargo home directory resides. You will need to either move your servo working directory to C:, or set CARGO_HOME to a directory in D:\ when building (https://doc.rust-lang.org/cargo/guide/cargo-home.html).

@nicbn
Copy link
Author

@nicbn nicbn commented Jul 4, 2020

Oh, sorry for that. Moved servo into C: and clean built. Servo build has been at mozangle for a while now, but looks like no problems in regards to mozjs_sys.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.