servo: Build error in Win7 x64
Building the servo in Windows, practically impossible following the instructions here. I did everything that was described in the “readme”, but even so I could not, the strangest thing is that it requires Python 3, and it was not even on the list of dependencies. I installed Python 3, but I do not know if it was a conflict with Python 2, because it still did not work. I tried removing Python 2 to make it work, but it is necessary, so…
mach build --release
** Visual Studio 2017 Developer Command Prompt v15.9.12 ** Copyright © 2017 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: ‘x64’ Compiling mozangle v0.2.0 Compiling mozjs_sys v0.66.0 (https://github.com/servo/mozjs?rev=e21c05b415dfc246175ff8d5fc48b0e8c5b4e9e9#e21c05b4) Compiling profile_traits v0.0.1 (E:\Development\Projects\servo\components\profile_traits) Compiling canvas_traits v0.0.1 (E:\Development\Projects\servo\components\canvas_traits) Compiling net_traits v0.0.1 (E:\Development\Projects\servo\components\net_traits) Compiling style v0.0.1 (E:\Development\Projects\servo\components\style) error: failed to run custom build command for
mozjs_sys v0.66.0 (https://github.com/servo/mozjs?rev=e21c05b415dfc246175ff8d5fc48b0e8c5b4e9e9#e21c05b4)process didn’t exit successfully:E:\Development\Projects\servo\target\release\build\mozjs_sys-048e6d3f9c32264b\build-script-build(exit code: 101) — stdout [[ /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure -ot /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure.in ]] && touch /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure || true [[ /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure -ot /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure.in ]] && touch /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure || true ! [[ /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure.in -ot /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure ]] && touch /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure || true ! [[ /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure.in -ot /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure ]] && touch /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/old-configure || true if [[ /c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure -nt E:/Development/Projects/servo/target/release/build/mozjs_sys-75b5734df7e31d76/out/config.status ]] ; then
cd E:/Development/Projects/servo/target/release/build/mozjs_sys-75b5734df7e31d76/out &&
PYTHON=“C:\Python27\python.exe” MOZ_TOOLS=“/”
CC=“clang-cl.exe” CFLAGS=“”
CPP=“” CPPFLAGS=“”
CXX=“clang-cl.exe” CXXFLAGS=“”
AS=“” AR=“”
STLPORT_LIBS=“”
/c/Users/marina/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/e21c05b/mozjs/js/src/configure --disable-jemalloc --disable-js-shell --disable-tests --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… E:/Development/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 whether cross compiling… no checking for the target C compiler… e:/Development/Projects/servo/.servo/msvc-dependencies/llvm/7.0.0/bin/clang-cl.exe checking whether the target C compiler can be used… yes checking for Python 3… no INFO: checking for vcs source checkout… INFO: no INFO: checking for a shell… INFO: E:/Development/Projects/servo/.servo/msvc-dependencies/moztools/3.2/msys/bin/sh.exe INFO: checking for host system type… INFO: x86_64-pc-mingw32 INFO: checking for target system type… INFO: x86_64-pc-mingw32 INFO: checking whether cross compiling… INFO: no INFO: checking for the target C compiler… DEBUG: _cc: Trying clang-cl.exe INFO: e:/Development/Projects/servo/.servo/msvc-dependencies/llvm/7.0.0/bin/clang-cl.exe INFO: checking whether the target C compiler can be used… DEBUG: Creatingc:\users\marina\appdata\local\temp\conftest.oc4fd2.cwith content: DEBUG: | #if defined(_MSC_VER) DEBUG: | #if defined(clang) DEBUG: | %COMPILER “clang-cl” DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel DEBUG: | #else DEBUG: | %COMPILER “msvc” DEBUG: | %VERSION _MSC_FULL_VER DEBUG: | #endif DEBUG: | #elif defined(clang) DEBUG: | %COMPILER “clang” DEBUG: | # if !__cplusplus || __has_builtin(__builtin_bitreverse8) DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel DEBUG: | # endif DEBUG: | #elif defined(GNUC) DEBUG: | %COMPILER “gcc” DEBUG: | %VERSION GNUC.GNUC_MINOR.GNUC_PATCHLEVEL DEBUG: | #endif DEBUG: | DEBUG: | #if __cplusplus DEBUG: | %cplusplus __cplusplus DEBUG: | #elif STDC_VERSION DEBUG: | %STDC_VERSION STDC_VERSION DEBUG: | #elif STDC DEBUG: | %STDC_VERSION 198900L DEBUG: | #endif DEBUG: | #if i386 || _M_IX86 DEBUG: | %CPU “x86” DEBUG: | #elif x86_64 || _M_X64 DEBUG: | %CPU “x86_64” DEBUG: | #elif arm || _M_ARM DEBUG: | %CPU “arm” DEBUG: | #elif aarch64 || _M_ARM64 DEBUG: | %CPU “aarch64” DEBUG: | #elif ia64 DEBUG: | %CPU “ia64” DEBUG: | #elif s390x DEBUG: | %CPU “s390x” DEBUG: | #elif s390 DEBUG: | %CPU “s390” DEBUG: | #elif powerpc64 DEBUG: | %CPU “ppc64” DEBUG: | #elif powerpc DEBUG: | %CPU “ppc” DEBUG: | #elif alpha DEBUG: | %CPU “Alpha” DEBUG: | #elif hppa DEBUG: | %CPU “hppa” DEBUG: | #elif sparc && arch64 DEBUG: | %CPU “sparc64” DEBUG: | #elif sparc DEBUG: | %CPU “sparc” DEBUG: | #elif __mips64 DEBUG: | %CPU “mips64” DEBUG: | #elif mips DEBUG: | %CPU “mips32” DEBUG: | #elif sh DEBUG: | %CPU “sh4” DEBUG: | #endif DEBUG: | #if FreeBSD_kernel DEBUG: | %KERNEL “kFreeBSD” DEBUG: | #elif DragonFly DEBUG: | %KERNEL “DragonFly” DEBUG: | #elif OpenBSD DEBUG: | %KERNEL “OpenBSD” DEBUG: | #elif sun DEBUG: | %KERNEL “SunOS” DEBUG: | #elif FreeBSD DEBUG: | %KERNEL “FreeBSD” DEBUG: | #elif linux DEBUG: | %KERNEL “Linux” DEBUG: | #elif _WIN32 || CYGWIN DEBUG: | %KERNEL “WINNT” DEBUG: | #elif NetBSD DEBUG: | %KERNEL “NetBSD” DEBUG: | #elif APPLE DEBUG: | %KERNEL “Darwin” DEBUG: | #endif DEBUG: | #if ANDROID DEBUG: | %OS “Android” DEBUG: | #endif DEBUG: | #if _MSC_VER || BYTE_ORDER == ORDER_LITTLE_ENDIAN DEBUG: | %ENDIANNESS “little” DEBUG: | #elif BYTE_ORDER == ORDER_BIG_ENDIAN DEBUG: | %ENDIANNESS “big” DEBUG: | #endif DEBUG: Executing:e:/Development/Projects/servo/.servo/msvc-dependencies/llvm/7.0.0/bin/clang-cl.exe -E 'c:\users\marina\appdata\local\temp\conftest.oc4fd2.c'DEBUG: COMPILER = clang-cl DEBUG: VERSION = 7.0.0 DEBUG: STDC_VERSION = 201112L DEBUG: CPU = x86_64 DEBUG: KERNEL = WINNT DEBUG: ENDIANNESS = little DEBUG: Creatingc:\users\marina\appdata\local\temp\conftest.i2xhrq.cwith content: DEBUG: | #if defined(_MSC_VER) DEBUG: | #if defined(clang) DEBUG: | %COMPILER “clang-cl” DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel DEBUG: | #else DEBUG: | %COMPILER “msvc” DEBUG: | %VERSION _MSC_FULL_VER DEBUG: | #endif DEBUG: | #elif defined(clang) DEBUG: | %COMPILER “clang” DEBUG: | # if !__cplusplus || __has_builtin(__builtin_bitreverse8) DEBUG: | %VERSION clang_major.clang_minor.clang_patchlevel DEBUG: | # endif DEBUG: | #elif defined(GNUC) DEBUG: | %COMPILER “gcc” DEBUG: | %VERSION GNUC.GNUC_MINOR.GNUC_PATCHLEVEL DEBUG: | #endif DEBUG: | DEBUG: | #if __cplusplus DEBUG: | %cplusplus __cplusplus DEBUG: | #elif STDC_VERSION DEBUG: | %STDC_VERSION STDC_VERSION DEBUG: | #elif STDC DEBUG: | %STDC_VERSION 198900L DEBUG: | #endif DEBUG: | #if i386 || _M_IX86 DEBUG: | %CPU “x86” DEBUG: | #elif x86_64 || _M_X64 DEBUG: | %CPU “x86_64” DEBUG: | #elif arm || _M_ARM DEBUG: | %CPU “arm” DEBUG: | #elif aarch64 || _M_ARM64 DEBUG: | %CPU “aarch64” DEBUG: | #elif ia64 DEBUG: | %CPU “ia64” DEBUG: | #elif s390x DEBUG: | %CPU “s390x” DEBUG: | #elif s390 DEBUG: | %CPU “s390” DEBUG: | #elif powerpc64 DEBUG: | %CPU “ppc64” DEBUG: | #elif powerpc DEBUG: | %CPU “ppc” DEBUG: | #elif alpha DEBUG: | %CPU “Alpha” DEBUG: | #elif hppa DEBUG: | %CPU “hppa” DEBUG: | #elif sparc && arch64 DEBUG: | %CPU “sparc64” DEBUG: | #elif sparc DEBUG: | %CPU “sparc” DEBUG: | #elif __mips64 DEBUG: | %CPU “mips64” DEBUG: | #elif mips DEBUG: | %CPU “mips32” DEBUG: | #elif sh DEBUG: | %CPU “sh4” DEBUG: | #endif DEBUG: | #if FreeBSD_kernel DEBUG: | %KERNEL “kFreeBSD” DEBUG: | #elif DragonFly DEBUG: | %KERNEL “DragonFly” DEBUG: | #elif OpenBSD DEBUG: | %KERNEL “OpenBSD” DEBUG: | #elif sun DEBUG: | %KERNEL “SunOS” DEBUG: | #elif FreeBSD DEBUG: | %KERNEL “FreeBSD” DEBUG: | #elif linux DEBUG: | %KERNEL “Linux” DEBUG: | #elif _WIN32 || CYGWIN DEBUG: | %KERNEL “WINNT” DEBUG: | #elif NetBSD DEBUG: | %KERNEL “NetBSD” DEBUG: | #elif APPLE DEBUG: | %KERNEL “Darwin” DEBUG: | #endif DEBUG: | #if ANDROID DEBUG: | %OS “Android” DEBUG: | #endif DEBUG: | #if _MSC_VER || BYTE_ORDER == ORDER_LITTLE_ENDIAN DEBUG: | %ENDIANNESS “little” DEBUG: | #elif BYTE_ORDER == ORDER_BIG_ENDIAN DEBUG: | %ENDIANNESS “big” DEBUG: | #endif DEBUG: Executing:e:/Development/Projects/servo/.servo/msvc-dependencies/llvm/7.0.0/bin/clang-cl.exe -Xclang -std=gnu99 -E 'c:\users\marina\appdata\local\temp\conftest.i2xhrq.c'DEBUG: COMPILER = clang-cl DEBUG: VERSION = 7.0.0 DEBUG: STDC_VERSION = 199901L DEBUG: CPU = x86_64 DEBUG: KERNEL = WINNT DEBUG: ENDIANNESS = little INFO: yes INFO: checking for Python 3… INFO: no ERROR: Python 3.5 or newer is required to build. Ensure apython3.xexecutable is in your PATH or define PYTHON3 to point to a Python 3.5 executable.— stderr which: python2.7: unknown command ERROR: Python 3.5 or newer is required to build. Ensure a
python3.xexecutable is in your PATH or define PYTHON3 to point to a Python 3.5 executable. mozmake: *** [makefile.cargo:182: maybe-configure] Error 1 thread ‘main’ panicked at ‘assertion failed: result.success()’, C:\Users\marina.cargo\git\checkouts\mozjs-fa11ffc7d4f1cc2d\e21c05b\build.rs:117:5 note: Run withRUST_BACKTRACE=1environment variable to display a backtrace.warning: build failed, waiting for other jobs to finish… ^Cmach interrupted by signal or user action. Stopping.===========> ] 544/572: profile_traits, mozangle(build), canvas_traits, net_traits, style
That is the result, I no longer know how to solve something that at first glance seemed to be simple. Because I just followed the instructions… If anyone can help me, I appreciate it.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (11 by maintainers)
Either run
set PYTHON3=path\to\python.exefrom the same terminal as themach build, or add it to your system environment variabes and open a new terminal window to run the build.