building spidermonkey 1.8.5 on windows 10 with VS 2019

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

building spidermonkey 1.8.5 on windows 10 with VS 2019

Drew Fletcher
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?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: building spidermonkey 1.8.5 on windows 10 with VS 2019

Graham Swallow
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,
<[hidden email]> wrote:

>
> Send dev-tech-js-engine mailing list submissions to
>         [hidden email]
>
> 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
>         [hidden email]
>
> You can reach the person managing the list at
>         [hidden email]
>
> 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 <[hidden email]>
> To: [hidden email]
> Subject: building spidermonkey 1.8.5 on windows 10 with VS 2019
> Message-ID: <[hidden email]>
> 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
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
>
> ------------------------------
>
> End of dev-tech-js-engine Digest, Vol 157, Issue 2
> **************************************************
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: building spidermonkey 1.8.5 on windows 10 with VS 2019

Miles Thornton
In reply to this post by Drew Fletcher
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

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: building spidermonkey 1.8.5 on windows 10 with VS 2019

Ted Campbell
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

On Monday, June 24, 2019 at 3:43:51 AM UTC-4, Miles wrote:
> 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

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: building spidermonkey 1.8.5 on windows 10 with VS 2019

Drew Fletcher
In reply to this post by Miles Thornton
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
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine