Building SpiderMonkey 24 on Windows failing...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Building SpiderMonkey 24 on Windows failing...

Miles Thornton

As the 31 release seems to be delayed and there is no information on when it is due to be released I've been trying to build SpiderMonkey 24. I've managed to build it on Linux using gcc without any problems but I can't make any progress on windows at all. configure seems to be failing for me before I even get to the make stage.

I've downloaded and installed mozilla-build from

I'm trying to use VS2013 to build as I don't have VS2012 so I've hacked the configure script very slightly adding

        elif test "$_CC_MAJOR_VERSION" = "18"; then
            cat >> confdefs.pytmp <<\EOF
    (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ')
cat >> confdefs.h <<\EOF

            cat >> confdefs.pytmp <<\EOF
    (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ')
cat >> confdefs.h <<\EOF

at about line 3530 so it will recognise VS2013.

I then run C:\mozilla-build\start-shell-msvcvs2013.bat

change directory to mozjs-24.2.0/js/src and run


This fails pretty quickly trying to build virtualenv which from what I've managed to work out is some sort of python build environment.

I get errors:
checking for python2.7... /c/mozilla-build/python/python2.7
Creating Python environment
New python executable in c:/SOURCE13/mozjs-24.2.0/js/src/_virtualenv\Scripts\python2.7.exe

Also creating executable in c:/SOURCE13/mozjs-24.2.0/js/src/_virtualenv\Scripts\python.exe

Installing setuptools...................................

  Complete output from command c:\SOURCE13\mozjs-24...cripts\python2.7.exe -c "#!python


" c:\SOURCE13\mozjs-24...ols-0.6c11-py2.7.egg:

  Processing setuptools-0.6c11-py2.7.egg

creating c:\source13\mozjs-24.2.0\js\src\_virtualenv\lib\site-packages\setuptools-0.6c11-py2.7.egg

Extracting setuptools-0.6c11-py2.7.egg to c:\source13\mozjs-24.2.0\js\src\_virtualenv\lib\site-packages

Traceback (most recent call last):

  File "<string>", line 278, in <module>

  File "<string>", line 239, in main

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 1712, in main

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 1700, in with_ei_usage

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 1716, in <lambda>

  File "c:\mozilla-build\python\Lib\distutils\", line 152, in setup


  File "c:\mozilla-build\python\Lib\distutils\", line 953, in run_commands


  File "c:\mozilla-build\python\Lib\distutils\", line 972, in run_command

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 211, in run

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 427, in easy_install

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 476, in install_item

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 619, in install_eggs

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 693, in install_egg

  File "c:\mozilla-build\python\Lib\distutils\", line 349, in execute

    util.execute(func, args, msg, dry_run=self.dry_run)

  File "c:\mozilla-build\python\Lib\distutils\", line 324, in execute


  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\command\", line 996, in unpack_and_compile

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\", line 67, in unpack_archive

  File "c:\mozilla-build\python\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\", line 135, in unpack_zipfile

  File "c:\mozilla-build\python\Lib\", line 766, in __init__


  File "c:\mozilla-build\python\Lib\", line 835, in _RealGetContents

    raise BadZipfile("Bad magic number for central directory")

zipfile.BadZipfile: Bad magic number for central directory


...Installing setuptools...done.

Traceback (most recent call last):

  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 2563, in <module>


  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 964, in main


  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 1074, in create_environment

    search_dirs=search_dirs, never_download=never_download)

  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 611, in install_setuptools

    search_dirs=search_dirs, never_download=never_download)

  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 583, in _install_req


  File "c:/SOURCE13/mozjs-24.2.0/js/src\python\virtualenv\", line 1042, in call_subprocess

    % (cmd_desc, proc.returncode))

OSError: Command c:\SOURCE13\mozjs-24...cripts\python2.7.exe -c "#!python


" c:\SOURCE13\mozjs-24...ols-0.6c11-py2.7.egg failed with error code 1

Traceback (most recent call last):

  File "c:/SOURCE13/mozjs-24.2.0/js/src/build/virtualenv/", line 384, in <module>


  File "c:/SOURCE13/mozjs-24.2.0/js/src/build/virtualenv/", line 103, in ensure


  File "c:/SOURCE13/mozjs-24.2.0/js/src/build/virtualenv/", line 315, in build


  File "c:/SOURCE13/mozjs-24.2.0/js/src/build/virtualenv/", line 122, in create

    raise Exception('Error creating virtualenv.')

Exception: Error creating virtualenv.

I have no idea what is going wrong here. I thought that the whole idea of using mozilla-build was that it had the correct environment to build Spidermonkey... What is virtualenv being used for?

I don't think this problem is anything to do with me using VS2013 as I haven't even got to the stage of compiling anything...
It looks to be a configure/mozilla-build problem to me.

Has anybody seen this problem before or have any idea what to do to fix it?


dev-tech-js-engine mailing list
[hidden email]