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

spidermonkey 1.8.5 build

64 views
Skip to first unread message

timp

unread,
Apr 1, 2013, 8:26:47 AM4/1/13
to
Hello,

Is there a way to build spidermonkey on OSX which doesn't require me to:

1. install brew
2. install some other versions of gcc

---

sudo port install libidl autoconf213 yasm

wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
tar xzf js185-1.0.0.tar.gz
cd js-1.8.5/
cd src
autoconf213

./configure
loading cache ./config.cache
checking host system type... x86_64-apple-darwin12.3.0
checking target system type... x86_64-apple-darwin12.3.0
checking build system type... x86_64-apple-darwin12.3.0
checking for mawk... no
checking for gawk... gawk
checking for perl5... /opt/local/bin/perl5
checking for gcc... gcc-4.2
checking whether the C compiler (gcc-4.2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

---

Actually, what I really want is just a binary image. I don't want to build it from the source.
It would be nice if this whole process were less than 1 minute.
Spending time on configuration problems is not interesting for me.


I found this of course:
http://www.stanford.edu/class/cs242/spidermonkey/
But it is 1.7... But posting a binary image is obviously possible.

-tim

Rolando Abarca

unread,
Apr 1, 2013, 10:03:20 AM4/1/13
to timp, dev-tech-...@lists.mozilla.org
I've been building spidermonkey with Xcode's bundled clang for several
months now (using the version in github). The only extra thing that I
needed to install was autoconf213, using brew.
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>



--
Rolando Abarca
https://github.com/funkaster - @funkaster
Phones: +1 (415) 562-7656
+56 (2) 2581-4591

Kannan Vijayan

unread,
Apr 1, 2013, 10:37:40 AM4/1/13
to dev-tech-...@lists.mozilla.org
Hi Tim,

As Rolando mentioned, you can build SpiderMonkey with dev tools from
xcode (clang instead of gcc, etcl), but you need autoconf 2.13, which is
usually installed via brew.

If you're for pre-built binaries, you can pull one down from TinderBox
directly:

Visit https://tbpl.mozilla.org/
Click on a green "B" immediately to the right of one of the "OSX 10.N
opt" builds, depending on what version of OSX you're running.
At the bottom there'll pop up a pane, and on the left hand side of the
pane there'll be a link called "go to build directory"
Follow that link, and it'll take you to a directory where you can
download firefox and spidermonkey shell builds associated with that
revision.

Please remember that these are nightly builds, and contains changes that
have not gone through the aurora/beta release train, and there may be
undiscovered bugs in the build.

Cheers.
Kannan

Wes Garland

unread,
Apr 1, 2013, 8:26:34 PM4/1/13
to Kannan Vijayan, dev-tech-...@lists.mozilla.org
Doesn't the js185 distribution come with configure already generated? I'm
pretty sure I meant to do that if I didn't. Requiring someone to install
autoconf 2.13 just to build spidermonkey is stupid IMO; unless they are
building from the hg repo.

Anyhow, the issue most likely is that spidermonkey is extremely sensitive
to compiler versions, ever since the code went C++.

If you downgrade your version of Xcode to something as old as the JS185
distro, then it should build on Leopard and Snow Leopard. Lion wasn't out
then, so I never tested that.

If you want to use newer compilers, you may need to do some tweaking -- or
upgrade to a newer spidermonkey.

Wes
0 new messages