Open robertlong opened 7 years ago
You appear to be missing make
: https://github.com/servo/mozjs/blob/master/build.rs#L37-L42
Ahh, yeah I missed that line in the backtrace. Thanks!
I'm still having issues with make though:
C:\Users\robertlong\workspace\rust-mozjs (master)
λ cargo build
Compiling mozjs_sys v0.0.0 (https://github.com/servo/mozjs#834ce35c)
error: failed to run custom build command for `mozjs_sys v0.0.0 (https://github.com/servo/mozjs#834ce35c)`
process didn't exit successfully: `C:\Users\robertlong\workspace\rust-mozjs\target\debug\build\mozjs_sys-0ff46606e7250eff\build-script-build` (exit code: 101)
--- stdout
[[ /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure -ot /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure.in ]] && touch /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure || true
[[ /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure -ot /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure.in ]] && touch /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure || true
! [[ /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure.in -ot /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure ]] && touch /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure || true
! [[ /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure.in -ot /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure ]] && touch /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/old-configure || true
if [[ /c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure -nt C:\Users\robertlong\workspace\rust-mozjs\target\debug\build\mozjs_sys-2cecbe7697181d13\out/config.status ]] ; then \
cd C:\Users\robertlong\workspace\rust-mozjs\target\debug\build\mozjs_sys-2cecbe7697181d13\out && \
PYTHON="python" MOZ_TOOLS="" \
CC="gcc" CPP="gcc -E" CXX="g++" AR="ar" \
/c/Users/robertlong/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/834ce35/mozjs/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --build-backends=RecursiveMake --disable-shared-js || (cat config.log && exit 1) ; \
fi
--- stderr
/usr/bin/sh: line 1: cd: C:Usersrobertlongworkspacerust-mozjstargetdebugbuildmozjs_sys-2cecbe7697181d13out: No such file or directory
cat: config.log: No such file or directory
make: *** [maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', C:\Users\robertlong\.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\834ce35\build.rs:43
note: Run with `RUST_BACKTRACE=1` for a backtrace.
It looks like OUT_DIR might be wrong?
Plausible! We're not doing mingw builds in our automation any more, so it's plausible that it got broken at some point.
I'm hitting this issue as well. I thought we've since switched all our infrastructure to be using MSVC builds instead? How does mach even work in servo for MSVC builds?
I'm give this error when try to compile libservo with rust-nightly. Is there a straightforward instruction about how to compile rust_mozjs?
Compiling mozjs_sys v0.50.0
Running `E:\Progr\MyTestProject\CM_RUST\target\debug\build\mozjs_sys-4f17c22644d4b9d8\build-script-build`
error: failed to run custom build command for `mozjs_sys v0.50.0`
process didn't exit successfully: `E:\Progr\MyTestProject\CM_RUST\target\debug\build\mozjs_sys-4f17c22644d4b9d8\build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Failed to run `make`: Error { repr: Os { code: 2, message: "Не удается найти указанный файл." } }', src\libcore\result.rs:916:4
@DustinByfuglien What if you run the build with RUST_BACKTRACE=1
?
I succeeded in building mozjs_sys and mozjs with msvc, but needed some little environmental variable change and GunWin32's make.
The mozjs readme has the following, but ...
C: \ mozilla - build \ msys \ bin; C: \ mozilla - build \ mozmake; C: \ mozilla - build \ yasm
I have changed this as follows.
set MOZTOOLS_PATH=C:\mozilla-build\msys\bin;C:\mozilla-build\bin\
Then install GnuWin32 and add <install_dir>\GnuWin32\bin
to the environment variablePATH
.
Finally, if you run cargo build
according to the document, it succeeded in building.
It is necessary to execute vcvars64.bat etc. first.
Having trouble getting
rust-mozjs
to build on Windows 10. I'm not sure how to figure out what file can't be found.Python 2.7 is installed and on the PATH