MirceaKitsune Posted May 30, 2024 Report Share Posted May 30, 2024 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 Quote Link to comment Share on other sites More sharing options...
phosit Posted May 30, 2024 Report Share Posted May 30, 2024 There is a fix but there is little activity so i don't think it will be commited soon. Quote Link to comment Share on other sites More sharing options...
MirceaKitsune Posted May 30, 2024 Author Report Share Posted May 30, 2024 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. Quote Link to comment Share on other sites More sharing options...
Stan` Posted May 30, 2024 Report Share Posted May 30, 2024 The problem is that the fix is very involved so it's acceptance will take a while. Do note you can apply the patch without waiting for it to be merged though 1 Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted May 31, 2024 Report Share Posted May 31, 2024 Or, you can install an older version of python3, such as v3.11, and build with that. 1 Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted January 26 Report Share Posted January 26 Update: oSoMoN developed a solution for building 0ad version alpha 26 with python3.12 in October of 2024. It is explained here. One is advised to use distro-provided patches. If anyone needs help with this, I can walk them through it. Send me a forum PM or contact me via Element. 2 Quote Link to comment Share on other sites More sharing options...
MirceaKitsune Posted January 27 Author Report Share Posted January 27 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! Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 27 Report Share Posted January 27 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. 1 Quote Link to comment Share on other sites More sharing options...
Norse_Harold Posted January 28 Report Share Posted January 28 21 hours ago, Stan` said: I think you'll find something better than this is coming this week. Yes, it would be good to release alpha 27 soon. There's a new bug reported in alpha 26: failure to build with python 3.13. What users can do to help is test the release candidates and report significant bugs. Quote Link to comment Share on other sites More sharing options...
mtdew365 Posted January 29 Report Share Posted January 29 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 Quote Link to comment Share on other sites More sharing options...
bb_ Posted January 29 Report Share Posted January 29 Just a wild guess: delete your cache. Most likely ~/.cache/0ad Quote Link to comment Share on other sites More sharing options...
Stan` Posted January 29 Report Share Posted January 29 Did you pull lfs assets ? Quote Link to comment Share on other sites More sharing options...
mtdew365 Posted January 30 Report Share Posted January 30 I have deleted the .cache/0ad folder. Not sure how to pull the assets. Can you please assist? I used the following command to setup the repository... git clone https://gitea.wildfiregames.com/0ad/0ad.git $HOME/0ad_gitea Quote Link to comment Share on other sites More sharing options...
mtdew365 Posted January 30 Report Share Posted January 30 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 1 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.