Re: MinGW support for SpiderMonkey

Steve Fink <[email protected]> Tue, 26 Jul 2016 16:06:16 -0700
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On 07/26/2016 10:30 AM, Mihai Dobrescu wrote:
> On Tuesday, July 26, 2016 at 5:48:10 PM UTC+3, Tom Schuster wrote:
>> You have to run make inside the OBJ folder.
>>
>> On Jul 26, 2016 14:35, "Mihai Dobrescu" <[email protected]> wrote:
>>
>>> On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
>>>> Fixed this, the error was due to a typo in MOZILLABUILD environment
>>> variable.
>>>>
>>>> Now, the configuration finishes successfully and I have to figure out
>>> how to run mach and see what build issues occur.
>>>
>>> I can't run mach. How is this supposed to work?
>>> _______________________________________________
>
> Hello,
>
> Thanks for the info. It is not the first time I build something under MinGW.
> Still I miss something.
> It doesn't work:
>
> $ make
> m:/mozilla/mozjs-45.0.2.mingw/config/baseconfig.mk:28: *** MSYS make is not supported.  Stop.
>
> Could you please give me the configuration steps, probably I do something wrong.

MozillaBuild ships with 'mozmake', which if I understand correctly is 
pretty much just gmake compiled for msys. So running mozmake in place of 
make will fix the above error, and the above error is not an indication 
that anything else is wrong.

This is mentioned in the comment

   # Use "mozmake" on Windows

at

 
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

By the way, you could also generate a Windows build by running 
|js/src/devtools/automation/autospider.py plain|. If that works, you can 
use it as a model for what configuration parameters etc. it wants. (It's 
not really a useful tool for managing your own builds, so I'm not 
recommending it for anything other than an example build.)