Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

building spidermonkey 1.8.5 on windows 10 with VS 2019

192 views
Skip to first unread message

Drew Fletcher

unread,
Jun 21, 2019, 7:38:09 AM6/21/19
to
hi, this is obviously a broad question but has anyone had success building spidermonkey 1.8.5 on windows 10? I have attempted to run the configure script in the mozilla build shell with some modifications made to no avail. Essentially, I have edited out portions in the configure script that do checks on the tools being used to compile the program in the hopes of getting around them and being able go compile as-is. but i have run into multiple compilation issues with the conf c files. is it even possible to build 1.8.5 on windows 10?

Graham Swallow

unread,
Jun 21, 2019, 9:53:45 AM6/21/19
to dev-tech-...@lists.mozilla.org
Can you tell everyone - what is the date of 1.8.5 and why you want it
This is a permanent problem of the SpiderMonkey team,
they really dont care about people using it embedded.
If you want to do that, you must go through a lot of pain,
and reverse engineer the 'sample example' template version,
and find out how to FIND it, by secret obscured runes.

First I would spin up a scratch linux machine, with rust installed,
just to see that it is possible, then attempt to make sense of these notes
I made for myself, some versions ago. Then try with WIN10.

The primary example, works first time, but it is 10,000 lines long
That is the standalone 'js' binary

Graham


to obtain mozjs
need to ask it's automation

https://treeherder.mozilla.org/#/jobs?repo=mozilla-release&searchStr=spidermonkey-sm-package

That displays rows of things
one or two of these things is a release
with "SM(PKG)" 2/3 along screen
click on the PKG # and wait 10 seconds

(be patient, it is slow, working on server)

up pops bottom left panel, + next to that
Job Details
artifact uploaded: live_backing.log

artifact uploaded: live.log
***==> artifact uploaded: mozjs-65.0.1.tar.bz2
artifact uploaded: libmozjs-65.so
artifact uploaded: jsapi-tests
artifact uploaded: js-gdb.py
artifact uploaded: js

click on the bz2 tarball to download it

# extract

tar -C /home/gps/YEAR/src_build/JS/ -jxf mozjs-65.0.1.tar.bz2



On Fri, 21 Jun 2019 at 13:00,
<dev-tech-js-e...@lists.mozilla.org> wrote:
>
> Send dev-tech-js-engine mailing list submissions to
> dev-tech-...@lists.mozilla.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
> or, via email, send a message with subject or body 'help' to
> dev-tech-js-e...@lists.mozilla.org
>
> You can reach the person managing the list at
> dev-tech-js-...@lists.mozilla.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dev-tech-js-engine digest..."
>
>
> Today's Topics:
>
> 1. building spidermonkey 1.8.5 on windows 10 with VS 2019
> (Drew Fletcher)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 21 Jun 2019 04:38:08 -0700 (PDT)
> From: Drew Fletcher <dfletc...@gmail.com>
> To: dev-tech-...@lists.mozilla.org
> Subject: building spidermonkey 1.8.5 on windows 10 with VS 2019
> Message-ID: <a3dca9a3-e4e6-4f42...@googlegroups.com>
> Content-Type: text/plain; charset="UTF-8"
>
> hi, this is obviously a broad question but has anyone had success building spidermonkey 1.8.5 on windows 10? I have attempted to run the configure script in the mozilla build shell with some modifications made to no avail. Essentially, I have edited out portions in the configure script that do checks on the tools being used to compile the program in the hopes of getting around them and being able go compile as-is. but i have run into multiple compilation issues with the conf c files. is it even possible to build 1.8.5 on windows 10?
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
>
> ------------------------------
>
> End of dev-tech-js-engine Digest, Vol 157, Issue 2
> **************************************************

Miles

unread,
Jun 24, 2019, 3:43:51 AM6/24/19
to
On Friday, 21 June 2019 12:38:09 UTC+1, Drew Fletcher wrote:
> hi, this is obviously a broad question but has anyone had success building spidermonkey 1.8.5 on windows 10? I have attempted to run the configure script in the mozilla build shell with some modifications made to no avail. Essentially, I have edited out portions in the configure script that do checks on the tools being used to compile the program in the hopes of getting around them and being able go compile as-is. but i have run into multiple compilation issues with the conf c files. is it even possible to build 1.8.5 on windows 10?

Hi Drew. We have managed to build Spidermonkey 1.8.5 on Windows 10 using VS 2017. It definitely required hacking the start up scripts for MOzillaBuild (I think we had an old version 2.0 of MozillaBuild that we hacked), some of the configure scripts and I think we also needed to make a few changes to the source code to get it compile. So I suspect we had to do the same sort of things for VS 2017 as you are facing for VS 2019.
Let me know if you want any more information and I'll try to help.

Miles

Ted Campbell

unread,
Jun 24, 2019, 9:51:23 AM6/24/19
to
For more recent (60+) versions of SpiderMonkey, we are starting to collect more straightforward examples for embedders at https://github.com/spidermonkey-embedders/spidermonkey-embedding-examples

SpiderMonkey 1.8.5 was released around 2011 and the engine has evolved considerably since then. I believe projects like CouchDB are using SpiderMonkey 1.8.5 and I see they have build instructions for VS2013, but not 2019.

--Ted

Drew Fletcher

unread,
Jun 24, 2019, 10:14:58 AM6/24/19
to
Hey Miles,

Appreciate the response. Any info about edits made to the configure script would be great. Haven't progressed much further than allowing the script to proceed with the MSVC version of the compiler and linker for VS 2019.

Thank you,

Drew
0 new messages