Jump to content

Configure fails with SpiderMonkey error


MirceaKitsune
 Share

Recommended Posts

Hello. I'm experiencing a compilation issue for latest 0 A.D. Git on latest Manjaro Linux stable, would like to know when a fix is projected. I tried asking on Discord but some bot called MEE6 glitched out DM'd me an unrelated spam warning and this morning my mention of the issue was removed from the server, no idea what must have happened but hopefully it's okay to post here. Here's the relevant part of the log, the complaint seems to be about something called SpiderMonkey and a module named six.moves:

Building SpiderMonkey...

SpiderMonkey build options: --disable-tests
           --disable-jemalloc
           --disable-js-shell
           --without-intl-api
           --enable-shared-js
           --disable-jitspew         
patching file js/src/moz.build
patching file js/src/old-configure
patching file python/mozbuild/mozbuild/virtualenv.py
patching file third_party/python/virtualenv/virtualenv/discovery/py_info.py
patching file python/mozbuild/mozbuild/action/process_define_files.py
patching file python/mozbuild/mozbuild/backend/base.py
patching file python/mozbuild/mozbuild/preprocessor.py
patching file python/mozbuild/mozbuild/util.py
patching file python/mozbuild/mozpack/files.py
patching file build/moz.configure/flags.configure
/archive/mircea/Games/0ad/0ad_GIT/libraries/source/spidermonkey/mozjs-91.13.1/python/mozbuild/mozbuild/configure/__init__.py:915: SyntaxWarning: invalid escape sequence '\.'
  RE_MODULE = re.compile("^[a-zA-Z0-9_\.]+$")
Traceback (most recent call last):
  File "/archive/mircea/Games/0ad/0ad_GIT/libraries/source/spidermonkey/mozjs-91.13.1/build-debug/../js/src/../../configure.py", line 22, in <module>
    from mozbuild.configure import (
  File "/archive/mircea/Games/0ad/0ad_GIT/libraries/source/spidermonkey/mozjs-91.13.1/python/mozbuild/mozbuild/configure/__init__.py", line 13, in <module>
    from six.moves import builtins as __builtin__
ModuleNotFoundError: No module named 'six.moves'
ERROR: SpiderMonkey build failed

 

Link to comment
Share on other sites

1 hour ago, phosit said:

There is a fix but there is little activity so i don't think it will be commited soon.

Ah, it's a Python version issue? I hope at least an emergency fix like this is possible to address soon, especially if a PR exists and only needs approval. I have the 0 A.D. release installed by the package manager, but it's already well behind the many changes and features in Git so I've only used the later for a long while.

Link to comment
Share on other sites

  • 7 months later...

Thank you very much for the update! I don't think I've played 0 A.D. since posting this: I have the release installed from the package manager, but found it easier to compile from Git so I've been waiting for a solution while focusing on other FOSS projects. Hope this means a fix may be coming soon!

Link to comment
Share on other sites

4 hours ago, MirceaKitsune said:

Thank you very much for the update! I don't think I've played 0 A.D. since posting this: I have the release installed from the package manager, but found it easier to compile from Git so I've been waiting for a solution while focusing on other FOSS projects. Hope this means a fix may be coming soon!

I think you'll find something better than this is coming this week.

  • Like 1
Link to comment
Share on other sites

Fedora 41 computer.  Using gitea for latest build.  Now it appears to compile with 3.13 but I receive the following errors.  I have not changed how I compile it but I thought the team would like to know the experience.

 

Quote

TIMER| InitVfs: 1.48901 ms
FILES| Main log written to '/home/jbergmann/.config/0ad/logs/mainlog.html'
FILES| Interesting log written to '/home/jbergmann/.config/0ad/logs/interestinglog.html'
TIMER| CONFIG_Init: 4.90444 ms
Sound: AlcInit success, using OpenAL Soft
ERROR: Can't decode image for cursor
FILES| Hardware details written to '/home/jbergmann/.config/0ad/logs/system_info.txt'
TIMER| write_sys_info: 16.4941 ms
FILES| UserReport written to '/home/jbergmann/.config/0ad/logs/userreport_hwdetect.txt'
TIMER| RunHardwareDetection: 11.2835 ms
TIMER| InitRenderer: 103.249 ms
TIMER| ps_console: 4.9383 ms
TIMER| ps_lang_hotkeys: 2.21592 ms
TIMER| common/modern/setup.xml: 1.51681 ms
TIMER| common/modern/styles.xml: 1.26009 ms
TIMER| common/modern/sprites.xml: 11.6916 ms
TIMER| common/global.xml: 1.28403 ms
TIMER| common/setup.xml: 758.878 us
TIMER| common/sprites.xml: 3.83144 ms
TIMER| common/styles.xml: 566.085 us
TIMER| pregame/backgrounds/: 1.7713 ms
TIMER| pregame/sprites.xml: 1.34069 ms
TIMER| pregame/styles.xml: 257.827 us
TIMER| pregame/mainmenu.xml: 54.4695 ms
ERROR: could not initialize ogg data at audio/music/Honor_Bound.ogg
TIMER| common/modern/setup.xml: 232.018 us
TIMER| common/modern/styles.xml: 215.585 us
TIMER| common/modern/sprites.xml: 1.75561 ms
TIMER| common/global.xml: 462.203 us
TIMER| common/sprites.xml: 615.977 us
TIMER| splashscreen/setup.xml: 740.302 us
TIMER| splashscreen/splashscreen.xml: 22.1358 ms
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-right-center.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-right-top.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-center-bottom.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-center-center.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-left-center.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-left-top.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/gold-separator.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/icons/lag.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/icons/map.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/icons/experimental.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/shell/logo/0ad_logo.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/tile/stone_background.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-left-bottom.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_corner_top_right.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-bold-stroke-14.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/button/button_stone_unselected.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-14.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_horiz.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/shell/logo/wfg_logo_white.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/shading/menu_panel_background_shading.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-bold-12.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/backgrounds/kush1_4.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/backgrounds/kush1_2.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/titlebar-left.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/backgrounds/kush1_3.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_corner_bottom_left.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/dialog-deco-top.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-bold-16.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/titlebar-middle.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_vert.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_corner_top_left.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/tick-on.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/border/line_corner_bottom_right.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/shadow-low.png" Unknown texture format
ERROR: Failed to decode texture "fonts/mono-stroke-10.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-right-bottom.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/button/red-unselected-center-top.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/border.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/background.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/modern/dialog-deco-bottom.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-16.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/pregame/backgrounds/kush1_1.png" Unknown texture format
ERROR: Failed to decode texture "fonts/sans-bold-20.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/button/button_stone_selected_left_trim.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/button/button_stone_selected.png" Unknown texture format
ERROR: Failed to decode texture "art/textures/ui/global/button/button_stone_selected_right_trim.png" Unknown texture format
ERROR: could not initialize ogg data at audio/interface/ui/ui_button_click.ogg
TIMER| common/modern/setup.xml: 258.305 us
TIMER| common/modern/styles.xml: 261.598 us
TIMER| common/modern/sprites.xml: 2.02972 ms
TIMER| msgbox/msgbox.xml: 22.259 ms
ERROR: could not initialize ogg data at audio/interface/ui/ui_button_click.ogg
TIMER| shutdown Renderer: 1.69265 ms
TIMER| shutdown SDL: 1.61579 ms
TIMER| shutdown UserReporter: 150.544 us
TIMER| shutdown ConfigDB: 96.773 us
TIMER| resource modules: 34.1154 ms
TIMER TOTALS (7 clients)
-----------------------------------------------------
  tc_png_decode: 0 c (0x)
  tc_dds_transform: 0 c (0x)
  tc_transform: 0 c (0x)
  tc_plain_transform: 0 c (0x)
  tc_pool_alloc: 0 c (0x)
  tc_ShaderValidation: 6076.77 kc (1x)
  xml_validation: 722.071 kc (9x)
-----------------------------------------------------
TIMER| shutdown misc: 174.24 us
 

 

Link to comment
Share on other sites

It works!!!  Thanks for all the assistanace!  Here is what worked for me....

git clone https://gitea.wildfiregames.com/0ad/0ad.git $HOME/0ad_gitea

git lfs pull (had to install for my distribution)

libraries/clean-source-libs.sh

libraries/build-source-libs.sh

build/workspaces/update-workspaces.sh

cd build/workspaces/gcc

make config=debug or make config=release

  • Like 1
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...