Jump to content
Sign in to follow this  
radopenev

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

 

 

Share this post


Link to post
Share on other sites

Hey  @radopenev

Sorry for the inconvenience. To fix this issue you have two options:

  1. Move the game repository to a directory without Cyrillic characters (This is a known bug with Python2)
  2. Wait for the update to SpiderMonkey 52 which will use Python3

Best Regards,

 

Share this post


Link to post
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$

 

 

Share this post


Link to post
Share on other sites

Try to build with

./update-workspaces.sh -j3

instead of

./update-workspaces.sh --with-system-nvtt -j3

We recently updated NVTT, and it might not be compatible with whatever is in your distro's repository :)

Share this post


Link to post
Share on other sites

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.

Sign in to follow this  

×
×
  • Create New...