Windows build: Visual studio issues

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Post Reply
sneharbhat
Posts: 7
Joined: July 20th, 2017, 11:04 am

Windows build: Visual studio issues

Post by sneharbhat »

I am trying to build Mozilla release build from https://hg.mozilla.org/releases/mozilla-release. But i have been facing Visual Studio issues. When i run mach build i get this error
0:03.95 ERROR: This version (19.00.24210) of the MSVC compiler is not supported

0:03.95 You must install Visual C++ 2015 Update 3 or newer in order to build.[/color]

I have Visual studio 2017 installed.
Just to add, I cloned https://hg.mozilla.org/mozilla-central/ and this build works fine I had no issues with build
User avatar
Virtual_ManPL
Posts: 2052
Joined: July 24th, 2008, 5:52 am
Contact:

Re: Windows build: Visual studio issues

Post by Virtual_ManPL »

Mozilla added official support for building Firefox with Visual Studio 2017 in version 55.
I reported that issue here - Bug 1384429 - Show also newest/latest supported IDE in order to build in compiler errors.,
so Mozilla developers can change this misleading error to proper one.
Virtualfox persona
Tired of constant Firefox UI changes? XUL extensions are not working anymore? Try SeaMonkey, Waterfox Classic, Pale Moon.
sneharbhat
Posts: 7
Joined: July 20th, 2017, 11:04 am

Re: Windows build: Visual studio issues

Post by sneharbhat »

Thanks for the reply. So does the release branch build with Visual studio 2015 update 3?

I installed VS 2015 but further ran into more issues.
ERROR: Target C compiler target CPU (x86_64) does not match --target CPU (i686)

I set the ac_add_options --target=x86-64-pc-mingw32 and ac_add_options --host=x86-64-pc-mingw32
in .mozconfig. If i do this then i get errors.

0:05.21 checking for host system type... Invalid configuration `x86-64-pc-mingw
32': machine `x86-64-pc' not recognized

I tried to run vcvarsall.bat x86_amd64, but I still run into same errors.
isaacschemm
Posts: 270
Joined: January 20th, 2015, 12:29 pm

Re: Windows build: Visual studio issues

Post by isaacschemm »

Are you using the right batch file to open the shell? That's the only thing I can think of.
sneharbhat
Posts: 7
Joined: July 20th, 2017, 11:04 am

Re: Windows build: Visual studio issues

Post by sneharbhat »

I used the start-shell-msvc2015-x64.bat shell.
Post Reply