我正在尝试使用以下Mozilla的firefox构建指南从Windows上的源tarball编译Icecat:documentation of withUnsafeMutablePointer
,我相信我已经安装了所有依赖项,但是在./mach构建中,我收到此错误:
andy@salad/c/mozilla-source/icecat-60.3.0
$ ./mach build
0:01.93 Clobber not needed.
0:01.94 Adding make options from None
MOZ_OBJDIR=c:/mozilla-source/icecat-60.3.0/obj-i686-pc-mingw32
OBJDIR=c:/mozilla-source/icecat-60.3.0/obj-i686-pc-mingw32
0:02.03 c:\mozilla-build\bin\mozmake.EXE -f client.mk -s configure
0:02.41 cd c:/mozilla-source/icecat-60.3.0/obj-i686-pc-mingw32
0:02.43 c:/mozilla-source/icecat-60.3.0/configure
0:02.99 Reexecuting in the virtualenv
0:03.48 checking for vcs source checkout... no
0:03.89 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
0:04.75 checking for host system type... i686-pc-mingw32
0:04.75 checking for target system type... i686-pc-mingw32
0:04.83 checking for a shell... C:/mozilla-build/msys/bin/sh.exe
0:05.68 checking for host system type... i686-pc-mingw32
0:05.68 checking for target system type... i686-pc-mingw32
0:05.84 checking for vcs source checkout... no
0:05.85 checking whether cross compiling... no
0:05.99 checking for the target C compiler... 'C:/PROGRA~2/MICROS~2/2017/COMMUN~1/VC/Tools/MSVC/1415~1.267/bin/HostX64/x86/cl.exe'
0:06.12 checking whether the target C compiler can be used... yes
0:06.21 checking for Python 3... c:\mozilla-build\python3\python3.EXE (3.6.5)
0:06.24 checking for pkg_config... not found
0:06.26 checking for yasm... c:/mozilla-build/bin/yasm.exe
0:06.26 checking yasm version... 1.3.0
0:06.27 checking the target C compiler version... 19.15.26732
0:06.38 checking the target C compiler works... yes
0:06.39 checking for the target C++ compiler... 'C:/PROGRA~2/MICROS~2/2017/COMMUN~1/VC/Tools/MSVC/1415~1.267/bin/HostX64/x86/cl.exe'
0:06.48 checking whether the target C++ compiler can be used... yes
0:06.50 checking the target C++ compiler version... 19.15.26732
0:06.61 checking the target C++ compiler works... yes
0:06.62 checking for the host C compiler... 'C:/PROGRA~2/MICROS~2/2017/COMMUN~1/VC/Tools/MSVC/1415~1.267/bin/HostX64/x86/cl.exe'
0:06.72 checking whether the host C compiler can be used... yes
0:06.72 checking the host C compiler version... 19.15.26732
0:06.78 checking the host C compiler works... yes
0:06.81 checking for the host C++ compiler... 'C:/PROGRA~2/MICROS~2/2017/COMMUN~1/VC/Tools/MSVC/1415~1.267/bin/HostX64/x86/cl.exe'
0:06.91 checking whether the host C++ compiler can be used... yes
0:06.91 checking the host C++ compiler version... 19.15.26732
0:07.03 checking the host C++ compiler works... yes
0:07.11 checking for 64-bit OS... no
0:07.11 checking bindgen cflags... no
0:07.18 checking for Windows SDK... 0x0a00 in 'C:\Program Files (x86)\Windows Kits\10\'
0:07.18 checking for Universal CRT SDK... 10.0.17134.0 in 'C:\Program Files (x86)\Windows Kits\10\'
0:07.21 checking for the Debug Interface Access SDK... C:/PROGRA~2/MICROS~2/2017/COMMUN~1/DIA SDK
0:07.24 checking for mt... 'C:/PROGRA~2/WI3CF2~1/10/bin/100171~1.0/x64/mt.exe'
0:07.27 checking whether MT is really Microsoft Manifest Tool... yes
0:07.29 checking for linker... 'C:/PROGRA~2/MICROS~2/2017/COMMUN~1/VC/Tools/MSVC/1415~1.267/bin/HostX64/x86/link.exe'
0:07.31 checking for makecab... c:/WINDOWS/System32/makecab.exe
0:07.34 checking for fxc... 'C:/PROGRA~2/WI3CF2~1/10/bin/100171~1.0/x64/fxc.exe'
0:07.46 checking for stdint.h... yes
0:07.58 checking for inttypes.h... yes
0:07.72 checking for malloc.h... yes
0:07.83 checking for alloca.h... no
0:07.92 checking for perf_event_open system call... no
0:08.00 checking for rustc... c:/Users/Ningen/.cargo/bin/rustc.exe
0:08.00 checking for cargo... C:/Users/Ningen/.cargo/bin/cargo.exe
0:08.14 checking rustc version... 1.30.1
0:08.23 checking cargo version... 1.30.0
0:08.81 checking for tar... C:/mozilla-build/msys/bin/tar.exe
0:08.81 checking for unzip... c:/mozilla-build/bin/unzip.exe
0:08.81 checking for zip... c:/mozilla-build/bin/zip.exe
0:08.84 checking for gn... not found
0:08.84 checking for the Mozilla API key... no
0:08.84 checking for the Google API key... no
0:08.84 checking for the Bing API key... no
0:08.84 checking for the Adjust SDK key... no
0:08.84 checking for the Leanplum SDK key... no
0:08.84 checking for the Pocket API key... no
0:09.18 checking for llvm-config... 'c:/PROGRA~1/LLVM/bin/LLVM-C~1.EXE'
0:09.33 checking for awk... C:/mozilla-build/msys/bin/gawk.exe
0:09.38 checking for perl... C:/mozilla-build/msys/bin/perl.exe
0:09.39 checking for minimum required perl version >= 5.006... 5.008008
0:09.42 checking for full perl installation... yes
0:09.46 checking for gmake... c:/mozilla-build/bin/mozmake.EXE
0:09.52 checking for watchman... c:/mozilla-build/bin/watchman.exe
0:09.52 checking for watchman version... 4.9.1
0:09.53 checking for xargs... C:/mozilla-build/msys/bin/xargs.exe
0:09.54 checking for makensisu... c:/mozilla-build/nsis-3.01/makensis-3.01.exe
0:09.59 checking for NSIS version... 3.01
0:09.60 checking for 32-bit NSIS... yes
0:09.60 checking for 7z... c:/mozilla-build/bin/7z.exe
0:09.60 checking for autoconf... C:/mozilla-build/msys/local/bin/autoconf-2.13
0:17.31 loading cache ./config.cache
0:18.41 checking host system type... i686-pc-mingw32
0:19.02 checking target system type... i686-pc-mingw32
0:19.62 checking build system type... i686-pc-mingw32
0:19.85 checking for gcc... cl.exe
0:20.36 checking whether the C compiler (cl.exe ) works... yes
0:20.36 checking whether the C compiler (cl.exe ) is a cross-compiler... no
0:20.52 checking whether we are using GNU C... no
0:20.67 checking whether cl.exe accepts -g... no
0:22.74 checking for c++... cl.exe
0:23.30 checking whether the C++ compiler (cl.exe ) works... yes
0:23.30 checking whether the C++ compiler (cl.exe ) is a cross-compiler... no
0:23.45 checking whether we are using GNU C++... no
0:23.62 checking whether cl.exe accepts -g... no
0:23.65 checking for ranlib... :
0:23.68 checking for ml... /c/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/HostX64/x86/ml
0:23.89 checking for ar... no
0:23.90 checking for strip... no
0:23.93 checking for windres... no
0:23.95 checking for otool... no
0:24.09 checking for midl... midl
0:25.76 checking for dia2.h... yes
0:26.92 checking for overridable _RAISE... no
0:26.92 configure: error: Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration.
0:26.93 DEBUG: <truncated - see config.log for full output>
0:26.93 DEBUG: configure:2433: checking for ranlib
0:26.94 DEBUG: configure:2465: checking for ml
0:26.94 DEBUG: configure:2519: checking for ar
0:26.94 DEBUG: configure:2554: checking for strip
0:26.94 DEBUG: configure:2589: checking for windres
0:26.94 DEBUG: configure:2624: checking for otool
0:26.94 DEBUG: configure:2726: checking for midl
0:26.94 DEBUG: configure:2775: cl.exe -c -TC -nologo conftest.c 1>&5
0:26.94 DEBUG: conftest.c
0:26.94 DEBUG: configure:2800: cl.exe -c -TP -nologo conftest.C 1>&5
0:26.94 DEBUG: conftest.C
0:26.94 DEBUG: configure:2851: checking for dia2.h
0:26.94 DEBUG: configure:2864: cl.exe -c -TC -nologo conftest.c 1>&5
0:26.95 DEBUG: conftest.c
0:26.95 DEBUG: configure:2978: checking for overridable _RAISE
0:26.95 DEBUG: configure:3005: cl.exe -c -TP -nologo -w15038 -wd5026 -wd5027 -Zc:sizedDealloc- -wd4091 -wd4577 -D_HAS_EXCEPTIONS=0 conftest.C 1>&5
0:26.95 DEBUG: conftest.C
0:26.95 DEBUG: C:\PROGRA~2\MICROS~2\2017\COMMUN~1\VC\Tools\MSVC\1415~1.267\include\yvals.h(512): warning C4005: '_RAISE': macro redefinition
0:26.95 DEBUG: configure(2997): note: see previous definition of '_RAISE'
0:26.95 DEBUG: configure: error: Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration.
0:26.96 ERROR: old-configure failed
0:27.01 *** Fix above errors and then restart with\
0:27.01 "c:/mozilla-build/bin/mozmake.EXE -f client.mk build"
0:27.01 mozmake.EXE: *** [client.mk:149: configure] Error 1
andy@salad/c/mozilla-source/icecat-60.3.0
似乎旧配置有问题,但是我不确定,我在旧配置中的编辑器中环顾四周,但是我不确定是什么直接导致了问题