Jump to content

ERROR: SpiderMonkey build failed


kvgyzqk
 Share

Recommended Posts

I got stuck when compiling the code, when I perform ./update-workspaces.sh -j3 I got this error.

make[3]: Leaving directory '/home/agus/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src'
make[2]: Leaving directory '/home/agus/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release'
make[1]: *** [/home/agus/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/recurse.mk:34: compile] Error 2
make[1]: Leaving directory '/home/agus/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release'
make: *** [/home/agus/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/rules.mk:390: default] Error 2
ERROR: SpiderMonkey build failed

I already verify the checksum of both downloaded files and matched.

8e054aa27d9c0e7d1b1c52fc4fa9ee9e230483b7  0ad-0.0.26-alpha-unix-build.tar.gz
4aea32ad45615da0b2d79e061da36b01a9b284f0  0ad-0.0.26-alpha-unix-data.tar.gz

 

Link to comment
Share on other sites

Building alpha 26 from source with a modern build environment doesn't work without patches. The Linux distros like Fedora, Debian, and Ubuntu have been maintaining 0ad version alpha 26 with patches. What distro do you have? If you have one of those then you can follow the distro recommended build instructions for alpha 26.

Talk to me on IRC for assistance with this. It's more of an ongoing learning and trobuleshooting process.

Link to comment
Share on other sites

Thank you for the help.

Yeah, I think I'm missing something on https://trac.wildfiregames.com/wiki/BuildInstructions#Linux

I need to add SpiderMonkey 91 package.

sudo apt install libmozjs-91-dev

After that I just need to update-workspace.sh with --with-system-mozjs

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

The compilation are successful, but have many warnings.

Premake args:  --with-system-mozjs --atlas
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Package mozjs-78 was not found in the pkg-config search path.
Perhaps you should add the directory containing `mozjs-78.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mozjs-78' found
Building configurations...
Running action 'gmake'...
Generated ../workspaces/gcc/Makefile...
Generated ../workspaces/gcc/pyrogenesis.make...
Generated ../workspaces/gcc/network.make...
Generated ../workspaces/gcc/rlinterface.make...
Generated ../workspaces/gcc/tinygettext.make...
Generated ../workspaces/gcc/lobby.make...
Generated ../workspaces/gcc/glooxwrapper.make...
Generated ../workspaces/gcc/simulation2.make...
Generated ../workspaces/gcc/scriptinterface.make...
Generated ../workspaces/gcc/engine.make...
Generated ../workspaces/gcc/graphics.make...
Generated ../workspaces/gcc/atlas.make...
Generated ../workspaces/gcc/gui.make...
Generated ../workspaces/gcc/lowlevel.make...
Generated ../workspaces/gcc/gladwrapper.make...
Generated ../workspaces/gcc/mongoose.make...
Generated ../workspaces/gcc/mocks_real.make...
Generated ../workspaces/gcc/mocks_test.make...
Generated ../workspaces/gcc/AtlasObject.make...
Generated ../workspaces/gcc/AtlasUI.make...
Generated ../workspaces/gcc/ActorEditor.make...
Generated ../workspaces/gcc/Collada.make...
Generated ../workspaces/gcc/cxxtestroot.make...
Generated ../workspaces/gcc/test.make...
Done (2034ms).

Is installing SpiderMonkey version 78 will solve this issue?

Link to comment
Share on other sites

Update:

I already install SpiderMonkey 78 package and run compilation again:

sudo apt install libmozjs-78-dev
./update-workspaces.sh --with-system-mozjs -j3

Compilation output:

Updating bundled third-party dependencies...

FCollada is already up to date.


NVTT is already up to date.

make: Entering directory '/home/agus/0ad-0.0.26-alpha/build/premake/premake5/build/gmake2.unix'
==== Building lua-lib (release) ====
==== Building zip-lib (release) ====
==== Building zlib-lib (release) ====
==== Building curl-lib (release) ====
==== Building mbedtls-lib (release) ====
==== Building luashim-lib (release) ====
==== Building example (release) ====
==== Building luasocket (release) ====
==== Building Premake5 (release) ====
make: Leaving directory '/home/agus/0ad-0.0.26-alpha/build/premake/premake5/build/gmake2.unix'

Premake args:  --with-system-mozjs --atlas
Building configurations...
Running action 'gmake'...
Generated ../workspaces/gcc/pyrogenesis.make...
Generated ../workspaces/gcc/network.make...
Generated ../workspaces/gcc/rlinterface.make...
Generated ../workspaces/gcc/lobby.make...
Generated ../workspaces/gcc/simulation2.make...
Generated ../workspaces/gcc/scriptinterface.make...
Generated ../workspaces/gcc/engine.make...
Generated ../workspaces/gcc/graphics.make...
Generated ../workspaces/gcc/atlas.make...
Generated ../workspaces/gcc/gui.make...
Generated ../workspaces/gcc/gladwrapper.make...
Generated ../workspaces/gcc/test.make...
Done (1834ms).

I'm using my old ThinkPad T430 with Linux Mint 21.3 Cinnamon.

Link to comment
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.

 Share

×
×
  • Create New...