Greetings!
I am new to the mozilla dev forums. This is my first post.
Recently I have successfully built spidermonkey, v8, and JSC on Mac, and v8 on Windows. However, after many tries I have been unable to build spidermonkey on Windows and I'd like to request your assistance please.
Environment:
- Window 2008 R2 x64
- Visual Studio 2012
- Mozilla Build (start-msvc11-x64.bat)
I began with these instructions:
https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Windows_Prerequisites
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation
After cloning mozilla-central, I ran configure as such from the MINGW32 console:
build@MYMACHINE /c/repos/jsengines/mozilla-central/js/src/build-release
$ ../configure --target=x86_64-pc-mingw32
My first attempts at make resulted in "fatal error C1083: Cannot open include file: 'pratom.h'" which I quickly learned is provided by NSPR. A search for NSPR turned up this document:
https://developer.mozilla.org/en-US/docs/NSPR_build_instructions
Following the instructions there I was unable to grab source with cvs on the specified host/port, which I found was a previously reported issue, so I added my comments:
https://bugzilla.mozilla.org/show_bug.cgi?id=226412
Later I found that nspr is included in mozilla-central, so I did a configure/make/make install there which appears to have completed successfully based in a cursory examination of /usr/local:
build@MYMACHINE /c/repos/jsengines/mozilla-central/nsprpub
$ find /usr/local -name nspr*
/usr/local/bin/nspr-config
/usr/local/include/nspr
/usr/local/include/nspr/nspr.h
/usr/local/lib/pkgconfig/nspr.pc
/usr/local/share/aclocal/nspr.m4
From there I returned to rerun configure from js/src with ../configure --target=x86_64-pc-mingw32, however make then yielded the same result as before for a missing pratom.h. So I am left scratching my head. The details of all this have been captured here:
http://pastebin.com/esme1D1g
I've done a good bit of research, including general searches and here on this forum, but have been unable to find clear instructions about the build procedure for this environment. I would be very grateful for your assistance. Note: If recommending such and such flags be passed to configure and/or make, it would be most helpful if you could provide explicit examples since I'm not as skilled as many of you in that aspect.
Thank you,
Steven Erat