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 https://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2 and installed mozilla-build from https://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe

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
            _CC_SUITE=12
            cat >> confdefs.pytmp <<\EOF
    (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ')
EOF
cat >> confdefs.h <<\EOF
#define _CRT_SECURE_NO_WARNINGS 1
EOF

            cat >> confdefs.pytmp <<\EOF
    (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ')
EOF
cat >> confdefs.h <<\EOF
#define _CRT_NONSTDC_NO_WARNINGS 1
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

./configure

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

\"\"\"Bootstra...sys.argv[1:])



" 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\easy_install.py", line 1712, in main

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

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

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

    dist.run_commands()

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

    self.run_command(cmd)

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

    cmd_obj.run()

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

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

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

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

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

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

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

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

    func(*args)

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

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

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

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

    self._RealGetContents()

  File "c:\mozilla-build\python\Lib\zipfile.py", 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\virtualenv.py", line 2563, in <module>

    main()

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

    never_download=options.never_download)

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

    search_dirs=search_dirs, never_download=never_download)

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

    search_dirs=search_dirs, never_download=never_download)

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

    cwd=cwd)

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

    % (cmd_desc, proc.returncode))

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

\"\"\"Bootstra...sys.argv[1:])



" 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/populate_virtualenv.py", line 384, in <module>

    manager.ensure()

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

    return self.build()

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

    self.create()

  File "c:/SOURCE13/mozjs-24.2.0/js/src/build/virtualenv/populate_virtualenv.py", 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?

Thanks

Miles
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine