radopenev Posted January 2, 2020 Report Share Posted January 2, 2020 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 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted January 2, 2020 Report Share Posted January 2, 2020 3 minutes ago, radopenev said: Thanks! Exactly that I asking... but have problem with building on ubuntu 18.04. according to https://trac.wildfiregames.com/wiki/BuildInstructions [...] You can open a topic. Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 2, 2020 Report Share Posted January 2, 2020 Hey @radopenev Sorry for the inconvenience. To fix this issue you have two options: Move the game repository to a directory without Cyrillic characters (This is a known bug with Python2) Wait for the update to SpiderMonkey 52 which will use Python3 Best Regards, Quote Link to comment Share on other sites More sharing options...
radopenev Posted January 2, 2020 Author Report Share Posted January 2, 2020 Thanks a lot that's all... now compiling go right and successfully. In this moment go "make -j3"... Quote Link to comment Share on other sites More sharing options...
radopenev Posted January 2, 2020 Author Report Share Posted January 2, 2020 .... 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$ Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 2, 2020 Report Share Posted January 2, 2020 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 Quote Link to comment Share on other sites More sharing options...
radopenev Posted January 2, 2020 Author Report Share Posted January 2, 2020 (edited) Cool! Works like a charm p.s I have compiled nvtt from https://github.com/castano/nvidia-texture-tools and not install from repo ... Edited January 2, 2020 by radopenev 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 2, 2020 Report Share Posted January 2, 2020 Great! Enjoy the dev version of 0 A.D. Stay tuned for more updates. Quote Link to comment Share on other sites More sharing options...
SolarEagle Posted February 16, 2022 Report Share Posted February 16, 2022 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? 1 Quote Link to comment Share on other sites More sharing options...
bb_ Posted February 16, 2022 Report Share Posted February 16, 2022 https://code.wildfiregames.com/D4437 2 Quote Link to comment Share on other sites More sharing options...
SolarEagle Posted March 1, 2022 Report Share Posted March 1, 2022 Thanks for the help! Problem solved with a recent update. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.