Jump to content

Can't build SpiderMonkey 45


Recommended Posts

Thanks! Exactly that I asking... but have problem with building on ubuntu 18.04. according to  https://trac.wildfiregames.com/wiki/BuildInstructions

can not correctly configure SpiderMonkey 45  and build failed.

Spoiler

ssdhp@ssd:~/Свалени/0ad-master/build/workspaces$ ./update-workspaces.sh --with-system-nvtt
Updating bundled third-party dependencies...


Building SpiderMonkey...

SpiderMonkey build options: --disable-tests --disable-jemalloc --enable-shared-js --without-intl-api --enable-posix-nspr-emulation         
--disable-tests --disable-jemalloc --enable-shared-js --without-intl-api --enable-posix-nspr-emulation
patching file build/autoconf/nspr-build.m4
patching file js/src/js.pc.in
patching file config/external/zlib/moz.build
patching file js/src/jit-test/tests/tracelogger/bug1266649.js
patching file js/src/vm/TraceLogging.cpp
patching file js/src/vm/TraceLogging.h
patching file js/src/vm/TraceLoggingTypes.h
patching file python/psutil/psutil/_psutil_bsd.c
Hunk #1 succeeded at 943 (offset -14 lines).
Hunk #2 succeeded at 963 (offset -14 lines).
Hunk #3 succeeded at 1019 (offset -14 lines).
patching file js/src/gc/Memory.cpp
Hunk #1 succeeded at 433 (offset 3 lines).
Hunk #2 succeeded at 483 (offset 3 lines).
patching file js/src/jit/none/MacroAssembler-none.h
patching file js/src/jsapi-tests/testGCAllocator.cpp
patching file js/src/jit/AtomicOperations.h
patching file js/src/tests/js1_5/Array/regress-157652.js
patching file js/src/tests/js1_5/Array/regress-330812.js
patching file js/src/tests/js1_5/Regress/regress-422348.js
patching file mozglue/build/moz.build
patching file js/src/jsapi.h
patching file js/src/jspubtd.h
patching file js/public/Utility.h
Hunk #1 succeeded at 91 (offset 14 lines).
patching file js/src/jsalloc.h
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for gawk... gawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++  -fno-schedule-insns2 -fno-delete-null-pointer-checks -DTRACE_LOG_DIR="\"../../source/tools/tracelogger/\"" ) works... yes
checking whether the C++ compiler (c++  -fno-schedule-insns2 -fno-delete-null-pointer-checks -DTRACE_LOG_DIR="\"../../source/tools/tracelogger/\"" ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for rustc... /home/ssdhp/.cargo/bin/rustc
checking rustc version... 1.40.0 (v1.40.0)
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for tar archiver... checking for gnutar... no
checking for gtar... no
checking for tar... tar
tar
checking for minimum required perl version >= 5.006... 5.026001
checking for full perl installation... yes
checking for python2.7... /usr/bin/python2.7
Creating Python environment
/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py:475: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if sys.argv[1] == 'populate':
Traceback (most recent call last):
  File "/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py", line 485, in <module>
    manager.ensure()
  File "/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py", line 128, in ensure
    return self.build()
  File "/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py", line 381, in build
    self.create()
  File "/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py", line 140, in create
    args = [sys.executable, self.virtualenv_script_path,
  File "/home/ssdhp/Свалени/0ad-master/libraries/source/spidermonkey/mozjs-45.0.2/python/mozbuild/mozbuild/virtualenv.py", line 60, in virtualenv_script_path
    'virtualenv.py')
  File "/usr/lib/python2.7/posixpath.py", line 73, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 12: ordinal not in range(128)
------ config.log ------
configure:3278:1: warning: incompatible implicit declaration of built-in function 'exit'
configure:3278:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
configure:3301: checking for ranlib
configure:3333: checking for as
configure:3387: checking for ar
configure:3422: checking for ld
configure:3457: checking for strip
configure:3492: checking for windres
configure:3782: checking how to run the C preprocessor
configure:3803: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:3862: checking how to run the C++ preprocessor
configure:3880: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:3908: checking for rustc
configure:3955: checking rustc version
configure:4408: checking for sb-conf
configure:4408: checking for ve
configure:4470: checking for a BSD compatible install
configure:4523: checking whether ln -s works
configure:4545: checking for tar archiver
configure:4551: checking for gnutar
configure:4551: checking for gtar
configure:4551: checking for tar
configure:4588: checking for minimum required perl version >= 5.006
configure:4598: checking for full perl installation
configure:4616: checking for python2.7
ERROR: SpiderMonkey build failed

 

 

Link to comment
Share on other sites

.... finished! ..... but :

Spoiler

...

Linking Collada
==== Building pyrogenesis (release) ====
Creating obj/pyrogenesis_Release
main.cpp
Linking pyrogenesis
../../../binaries/system/libgraphics.a(TextureConverter.o): in function 'CTextureConverter::ConvertTexture(std::shared_ptr<CTexture> const&, Path const&, Path const&, CTextureConverter::Settings const&)':
/home/ssdhp/0ad-master/build/workspaces/gcc/../../../source/graphics/TextureConverter.cpp:436: unspecified reference to 'nvtt::InputOptions::setTextureLayout(nvtt::TextureType, int, int, int, int)'
collect2: error: ld returned 1 exit status
pyrogenesis.make:80: recipe for target '../../../binaries/system/pyrogenesis' failed
make[1]: *** [../../../binaries/system/pyrogenesis] Error 1
Makefile:68: recipe for target 'pyrogenesis' failed
make: *** [pyrogenesis] Error 2
ssdhp@ssd:~/0ad-master/build/workspaces/gcc$

 

 

Link to comment
Share on other sites

  • 2 years later...

I use this topic because, while building from scratch using the code on Github, on an Intel computer with Fedora 35 Gnome up-to-date, I have the same error, which I already had a few days ago.

[nicolas@fedora workspaces]$ ./update-workspaces.sh -j3
Updating bundled third-party dependencies...

FCollada is already up to date.

Building SpiderMonkey...

SpiderMonkey build options: --disable-tests
           --disable-jemalloc
           --disable-js-shell
           --without-intl-api
           --enable-shared-js
           --disable-jitspew         
patching file js/src/build/moz.build
patching file mozglue/build/moz.build
patching file config/makefiles/target_binaries.mk
patching file js/src/moz.build
patching file js/src/old-configure
patching file js/public/StructuredClone.h
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 381 with fuzz 1 (offset 53 lines).
patching file js/public/AllocPolicy.h
Hunk #1 succeeded at 109 (offset 2 lines).
Hunk #2 succeeded at 175 (offset 3 lines).
patching file js/public/RootingAPI.h
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 931 with fuzz 1.
patching file build/moz.configure/toolchain.configure
patching file build/moz.configure/toolchain.configure
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 169 with fuzz 1.
patching file js/src/wasm/WasmSignalHandlers.cpp
patching file .cargo/config.in
patching file Cargo.lock
patching file Cargo.toml
Traceback (most recent call last):
  File "/home/nicolas/0ad/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py", line 25, in <module>
    from mozbuild.configure import (
  File "/home/nicolas/0ad/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py", line 33, in <module>
    from mozbuild.util import (
  File "/home/nicolas/0ad/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py", line 760, in <module>
    class HierarchicalStringList(object):
  File "/home/nicolas/0ad/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py", line 785, in HierarchicalStringList
    class StringListAdaptor(collections.Sequence):
AttributeError: module 'collections' has no attribute 'Sequence'
ERROR: SpiderMonkey build failed

 Is the error related to a Python version incompatibility, as it was told in a previous post?

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...