Closed Bug 1370371 Opened 7 years ago Closed 7 years ago

Unable to build on Windows with Visual Studio 2017: "ERROR: Cannot find mt"

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1356493

People

(Reporter: botond, Unassigned)

Details

I'm trying to build Firefox on Windows, but not succeeding. Here's what I've done: 1. Installed the latest mozilla-build. 2. Cloned the latest mozilla-unified. 3. Installed Visual Studio. 2017, because I don't know where to download 2015 from (see also bug 1370367). 4. Launched start-shell.bat (the latest mozilla-build doesn't contain a "start-shell-msvc2017.bat" file, but people on IRC have told me that the plain "start-shell.bat" should work). 5. Ran './mach bootstrap'. 6. Ran './mach build'. Below is the output of './mach build': bballo@bballo-13096 ~/dev/mozilla/central.new $ ./mach build 0:01.34 c:\mozilla-build\mozmake\mozmake.EXE -f client.mk -s configure 0:03.00 client.mk:204: c:/Users/bballo/dev/mozilla/central.new/obj-i686-pc-mingw32/.mozconfig.mk: No such file or directory 0:04.47 Clobber not needed. 0:07.62 cd c:/Users/bballo/dev/mozilla/central.new/obj-i686-pc-mingw32 0:07.64 c:/Users/bballo/dev/mozilla/central.new/configure 0:08.08 Creating Python environment 0:19.31 New python executable in c:\Users\bballo\dev\mozilla\central.new\obj-i686-pc-mingw32\_virtualenv\Scripts\python2.7.exe 0:19.31 Also creating executable in c:\Users\bballo\dev\mozilla\central.new\obj-i686-pc-mingw32\_virtualenv\Scripts\python.exe 0:19.31 Installing setuptools, pip, wheel...done. 0:21.31 running build_ext 0:21.31 0:21.31 building 'psutil._psutil_windows' extension 0:21.31 0:21.31 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=311 -D_WIN32_WINNT=0x0602 -D_AVAIL_WINVER_=0x0602 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ic:\mozilla-build\python\include -Ic:\Users\bballo\dev\mozilla\central.new\obj-i686-pc-mingw32\_virtualenv\PC /Tcpsutil/_psutil_windows.c /Fobuild\temp.win32-2.7\Release\psutil/_psutil_windows.obj 0:21.31 0:21.31 _psutil_windows.c 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(189) : error C2365: 'ProcessDebugPort' : redefinition; previous definition was 'enumerator' 0:21.31 0:21.31 C:\Program Files (x86)\Windows Kits\8.0\include\um\winternl.h(299) : see declaration of 'ProcessDebugPort' 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(189) : error C2086: '_PROCESSINFOCLASS2 ProcessDebugPort' : redefinition 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(189) : see declaration of 'ProcessDebugPort' 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(210) : error C2365: 'ProcessImageFileName' : redefinition; previous definition was 'enumerator' 0:21.31 0:21.31 C:\Program Files (x86)\Windows Kits\8.0\include\um\winternl.h(302) : see declaration of 'ProcessImageFileName' 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(210) : error C2086: '_PROCESSINFOCLASS2 ProcessImageFileName' : redefinition 0:21.31 0:21.31 c:\users\bballo\dev\mozilla\central.new\python\psutil\psutil\arch\windows\ntextapi.h(210) : see declaration of 'ProcessImageFileName' 0:21.31 0:21.31 error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\BIN\\cl.exe' failed with exit status 2 0:21.31 0:21.31 0:21.31 Error processing command. Ignoring because optional. (optional:setup.py:python/psutil:build_ext:--inplace) 0:21.31 c:\Users\bballo\dev\mozilla\central.new\python\mozbuild\mozbuild\virtualenv.py:376: UserWarning: Hacking environment to allow binary Python extensions to build. You can make this warning go away by installing Visual Studio 2008. You can download the Express Edition installer from http://go.microsoft.com/?linkid=7729279 0:21.31 warnings.warn('Hacking environment to allow binary Python ' 0:21.31 Reexecuting in the virtualenv 0:21.81 checking for a shell... C:/mozilla-build/msys/bin/sh.exe 0:22.36 checking for host system type... i686-pc-mingw32 0:22.36 checking for target system type... i686-pc-mingw32 0:22.42 checking for a shell... C:/mozilla-build/msys/bin/sh.exe 0:22.99 checking for host system type... i686-pc-mingw32 0:22.99 checking for target system type... i686-pc-mingw32 0:23.05 checking whether cross compiling... no 0:23.19 checking for the target C compiler... 'C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1410~1.250/bin/HostX64/x86/cl.exe' 0:23.47 checking whether the target C compiler can be used... yes 0:23.50 checking for pkg_config... not found 0:23.52 checking for yasm... c:/mozilla-build/yasm/yasm.exe 0:23.55 checking yasm version... 1.3.0 0:23.55 checking the target C compiler version... 19.10.25019 0:23.77 checking the target C compiler works... yes 0:23.78 checking for the target C++ compiler... 'C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1410~1.250/bin/HostX64/x86/cl.exe' 0:23.99 checking whether the target C++ compiler can be used... yes 0:23.99 checking the target C++ compiler version... 19.10.25019 0:24.06 checking the target C++ compiler works... yes 0:24.08 checking for the host C compiler... 'C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1410~1.250/bin/HostX64/x86/cl.exe' 0:24.16 checking whether the host C compiler can be used... yes 0:24.16 checking the host C compiler version... 19.10.25019 0:24.20 checking the host C compiler works... yes 0:24.22 checking for the host C++ compiler... 'C:/PROGRA~2/MIB055~1/2017/COMMUN~1/VC/Tools/MSVC/1410~1.250/bin/HostX64/x86/cl.exe' 0:24.30 checking whether the host C++ compiler can be used... yes 0:24.30 checking the host C++ compiler version... 19.10.25019 0:24.38 checking the host C++ compiler works... yes 0:24.44 checking for 64-bit OS... no 0:24.61 checking for Windows SDK... 0x0a00 in 'C:\Program Files (x86)\Windows Kits\10\' 0:24.61 checking for Universal CRT SDK... 10.0.15063.0 in 'C:\Program Files (x86)\Windows Kits\10\' 0:24.64 checking for the Debug Interface Access SDK... not found 0:24.66 checking for mt... not found 0:24.66 DEBUG: mt: Trying mt.exe 0:24.66 ERROR: Cannot find mt 0:24.70 *** Fix above errors and then restart with\ 0:24.70 "c:/mozilla-build/mozmake/mozmake.EXE -f client.mk build" 0:24.70 client.mk:379: recipe for target 'configure' failed 0:24.70 mozmake.EXE: *** [configure] Error 1 2 bballo@bballo-13096 ~/dev/mozilla/central.new What am I doing wrong here?
Thanks.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Blocks: 1369910
No longer blocks: 1369910
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.