Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use linuxdeploy container [skip ci] #26

Draft
wants to merge 6 commits into
base: trunk
Choose a base branch
from
Draft

Conversation

andy5995
Copy link
Member

@andy5995 andy5995 commented Feb 9, 2024

I was going to try to build an arm64 and arm/v7 image using my new linuxdeploy action at
https://github.com/andy5995/linuxdeploy-build-helper/, but I didn't get a chance to fully test this because I can't get 0ad-0.0.26-alpha to build on Ubuntu focal anymore (or maybe I built it on bionic last).

The SpiderMonkey build fails. The error message looks a bit different than normal compiler errors, but I think this is the cause:

"ValueError: invalid literal for int() with base 16: 'file'"

Some Debian patches might fix the build:
https://packages.debian.org/bookworm/0ad

I was going to try to build an arm64 and arm/v7 image using my new
linuxdeploy action at
https://github.com/andy5995/linuxdeploy-build-helper/, but I didn't get
a chance to fully test this because I can't get 0ad-0.0.26-alpha to
build on Ubuntu focal anymore (or maybe I built it on bionic last).

The SpiderMonkey build fails. The error message looks a bit different
than normal compiler errors, but I think this is the cause:

"ValueError: invalid literal for int() with base 16: 'file'"

Some Debian patches might fix the build:
https://packages.debian.org/bookworm/0ad
@andy5995 andy5995 marked this pull request as draft September 28, 2024 03:49
@andy5995 andy5995 changed the title Use linuxdeploy action [skip ci] Use linuxdeploy container [skip ci] Sep 28, 2024
@andy5995
Copy link
Member Author

The build is failing on Ubuntu Jammy. I'm still trying to make an arm64 appimage but first I need this to build on amd64.

2024-09-29T06:26:35.1821526Z /usr/bin/g++ -o Unified_cpp_js_src_gc1.o -c  -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/system_wrappers -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/gc -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/include -fPIC -DMOZILLA_CLIENT -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes  -MD -MP -MF .deps/Unified_cpp_js_src_gc1.o.pp   Unified_cpp_js_src_gc1.cpp
2024-09-29T06:26:35.1868095Z js/src/gc/Unified_cpp_js_src_gc2.o
2024-09-29T06:26:35.3020230Z /usr/bin/g++ -o Unified_cpp_js_src_frontend0.o -c  -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/system_wrappers -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/frontend -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/frontend -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/include -fPIC -DMOZILLA_CLIENT -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes  -MD -MP -MF .deps/Unified_cpp_js_src_frontend0.o.pp   Unified_cpp_js_src_frontend0.cpp
2024-09-29T06:26:35.3036400Z js/src/frontend/Unified_cpp_js_src_frontend1.o
2024-09-29T06:26:39.1169199Z �[1m�[32m    Finished�[0m release [optimized] target(s) in 1m 12s
2024-09-29T06:26:39.2084203Z /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/_virtualenvs/init_py3/bin/python -m mozbuild.action.check_binary --target --networking /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/x86_64-unknown-linux-gnu/release/libjsrust.a
2024-09-29T06:26:39.2611405Z /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py:13: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
2024-09-29T06:26:39.2614372Z   from distutils.version import StrictVersion as Version
2024-09-29T06:26:39.4962205Z Traceback (most recent call last):
2024-09-29T06:26:39.4970287Z   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2024-09-29T06:26:39.4981764Z     return _run_code(code, main_globals, None,
2024-09-29T06:26:39.4990662Z   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
2024-09-29T06:26:39.4999961Z     exec(code, run_globals)
2024-09-29T06:26:39.5009551Z   File "/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py", line 369, in <module>
2024-09-29T06:26:39.5015480Z     sys.exit(main(sys.argv[1:]))
2024-09-29T06:26:39.5017687Z   File "/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py", line 361, in main
2024-09-29T06:26:39.5022878Z     return check_networking(options.binary)
2024-09-29T06:26:39.5029735Z   File "/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py", line 280, in check_networking
2024-09-29T06:26:39.5043701Z     for sym in at_least_one(iter_symbols(binary)):
2024-09-29T06:26:39.5049873Z   File "/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py", line 73, in at_least_one
2024-09-29T06:26:39.5051466Z     for item in iter:
2024-09-29T06:26:39.5053210Z   File "/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/action/check_binary.py", line 117, in iter_symbols
2024-09-29T06:26:39.5054953Z     'size': int(rest[1], 16) if ty == ELF else 0,
2024-09-29T06:26:39.5058045Z ValueError: invalid literal for int() with base 16: 'file'
2024-09-29T06:26:39.5240001Z make[3]: *** [/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/makefiles/rust.mk:311: /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/x86_64-unknown-linux-gnu/release/libjsrust.a] Error 1
2024-09-29T06:26:39.5252287Z make[3]: *** Deleting file '/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/x86_64-unknown-linux-gnu/release/libjsrust.a'
2024-09-29T06:26:39.5264863Z make[3]: Leaving directory '/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/rust'
2024-09-29T06:26:39.5288276Z make[2]: *** [/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/recurse.mk:74: js/src/rust/target] Error 2
2024-09-29T06:26:39.5317488Z /usr/bin/g++ -o Unified_cpp_js_src10.o -c  -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/system_wrappers -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/include -fPIC -DMOZILLA_CLIENT -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes  -MD -MP -MF .deps/Unified_cpp_js_src10.o.pp   Unified_cpp_js_src10.cpp
2024-09-29T06:26:39.5335659Z make[2]: *** Waiting for unfinished jobs....
2024-09-29T06:26:39.5336385Z js/src/Unified_cpp_js_src11.o
2024-09-29T06:26:43.2678832Z /usr/bin/g++ -o Unified_cpp_js_src_gc2.o -c  -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/system_wrappers -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/config/gcc_hidden.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DWASM_SUPPORTS_HUGE_MEMORY -DEXPORT_JS_API -DMOZ_HAS_MOZGLUE -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/gc -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src -I/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/dist/include -fPIC -DMOZILLA_CLIENT -include /workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-release/js/src/js-confdefs.h -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond -Wimplicit-fallthrough -Wunused-function -Wunused-variable -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object -Wno-multistatement-macros -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wformat -Wformat-security -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fno-aligned-new -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -funwind-tables -fno-strict-aliasing -Werror=format -Wno-shadow -Wno-attributes  -MD -MP -MF .deps/Unified_cpp_js_src_gc2.o.pp   Unified_cpp_js_src_gc2.cpp
2024-09-29T06:26:44.4635484Z In file included from �[01m�[K/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc/PrivateIterators-inl.h:14�[m�[K,
2024-09-29T06:26:44.4644743Z                  from �[01m�[K/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc/Marking.cpp:47�[m�[K,
2024-09-29T06:26:44.4646839Z                  from �[01m�[KUnified_cpp_js_src_gc1.cpp:2�[m�[K:
2024-09-29T06:26:44.4649765Z �[01m�[K/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc/PublicIterators.h:�[m�[K In member function '�[01m�[Kfloat js::Nursery::doPretenuring(JSRuntime*, JS::GCReason, js::gc::TenureCountCache&)�[m�[K':
2024-09-29T06:26:44.4657002Z �[01m�[K/workspace/0ad-0.0.26-alpha/libraries/source/spidermonkey/mozjs-78.6.0/js/src/gc/PublicIterators.h:129:7:�[m�[K �[01;35m�[Kwarning: �[m�[K'�[01m�[Kr.js::RealmsInZoneIter::realm.mozilla::Maybe<js::RealmsInCompartmentIter>::<unnamed>.mozilla::detail::MaybeStorage<js::RealmsInCompartmentIter, true>::mStorage.mozilla::detail::MaybeStorage<js::RealmsInCompartmentIter, true>::Union::val.js::RealmsInCompartmentIter::it�[m�[K' may be used uninitialized in this function [�[01;35m�[K-Wmaybe-uninitialized�[m�[K]

logs_28977915588.zip

@andy5995
Copy link
Member Author

I opened a WFG forum post about this at https://wildfiregames.com/forum/topic/123388-error-building-a26-on-ubuntu-jammy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant