andy5995 Posted September 29 Report Share Posted September 29 (edited) I'm trying to build a 0ad a26 appimage for arm64, but can't get it to build on amd64 yet. Details on my PR: https://github.com/0ad-matters/0ad-appimage/pull/26#issuecomment-2381130695 But I'll leave a few details here as well. As far as I can tell, the error causing the fail is `invalid literal for int() with base 16: 'file'` during the SpiderMonkey build. There's already an a26 appimage, that I built on either focal or bionic. My present script for building is at https://github.com/0ad-matters/0ad-appimage/blob/303c4fdcc79bad3e5564492d38f2e49eaceabcd3/make-appimage.sh I've tried with and without the Debian patches. This is part of the log from the last attempt to build at https://github.com/0ad-matters/0ad-appimage/actions Is there already a patch for this, or does anyone know of a fix? I know supporting a26 is not really the highest priority right now, but I thought it would be nice to have an arm AppImage available for a26 if possible. Quote 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 Edited September 29 by andy5995 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted October 1 Author Report Share Posted October 1 (edited) I got it building again, I went back to trying on Ubuntu Bionic with gcc-8 (the build fails on gcc-7 on bionic error: 'byte' in namespace 'std' does not name a type). Completed successfully on amd64. I'm building an arm64 AppImage on am amd64 system now. It might take a few weeks because emulation tends to slow things down a bit.... And it already failed: Quote FCollada/FCDocument/FCDControllerInstance.cpp Segmentation fault (core dumped) Makefile:270: recipe for target 'output/debug/FCollada/FCDocument/FCDAnimation.o' failed make: *** [output/debug/FCollada/FCDocument/FCDAnimation.o] Error 139 make: *** Waiting for unfinished jobs.... In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationClip.cpp:9: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:229:4: required from 'void fm::vector<T, PRIMITIVE>::resize(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]' FCollada/FCDocument/FCDAnimationClip.h:115:120: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class fm::stringT<char>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FUtils/FUtils.h:120, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationClip.cpp:9: FCollada/FUtils/FUString.h:36:24: note: 'class fm::stringT<char>' declared here class FCOLLADA_EXPORT stringT : public fm::vector<CH, true> ^~~~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationCurve.cpp:15: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:229:4: required from 'void fm::vector<T, PRIMITIVE>::resize(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]' FCollada/FCDocument/FCDAnimationClip.h:115:120: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class fm::stringT<char>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FUtils/FUtils.h:120, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationCurve.cpp:15: FCollada/FUtils/FUString.h:36:24: note: 'class fm::stringT<char>' declared here class FCOLLADA_EXPORT stringT : public fm::vector<CH, true> ^~~~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimated.cpp:15: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:229:4: required from 'void fm::vector<T, PRIMITIVE>::resize(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]' FCollada/FCDocument/FCDAnimated.cpp:37:30: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class fm::stringT<char>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FUtils/FUtils.h:120, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimated.cpp:15: FCollada/FUtils/FUString.h:36:24: note: 'class fm::stringT<char>' declared here class FCOLLADA_EXPORT stringT : public fm::vector<CH, true> ^~~~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimated.cpp:15: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = FUTrackedList<FCDAnimationCurve>; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:229:4: required from 'void fm::vector<T, PRIMITIVE>::resize(size_t) [with T = FUTrackedList<FCDAnimationCurve>; bool PRIMITIVE = false; size_t = long unsigned int]' FCollada/FCDocument/FCDAnimated.cpp:38:26: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class FUTrackedList<FCDAnimationCurve>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FUtils/FUtils.h:115, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimated.cpp:15: FCollada/FUtils/FUTracker.h:177:7: note: 'class FUTrackedList<FCDAnimationCurve>' declared here class FUTrackedList : private fm::pvector<ObjectClass>, FUTracker ^~~~~~~~~~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationClipTools.cpp:9: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:229:4: required from 'void fm::vector<T, PRIMITIVE>::resize(size_t) [with T = fm::stringT<char>; bool PRIMITIVE = false; size_t = long unsigned int]' FCollada/FCDocument/FCDAnimationClip.h:115:120: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class fm::stringT<char>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FUtils/FUtils.h:120, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDAnimationClipTools.cpp:9: FCollada/FUtils/FUString.h:36:24: note: 'class fm::stringT<char>' declared here class FCOLLADA_EXPORT stringT : public fm::vector<CH, true> ^~~~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDControllerInstance.cpp:9: FCollada/FMath/FMArray.h: In instantiation of 'fm::vector<T, PRIMITIVE>& fm::vector<T, PRIMITIVE>::operator=(const fm::vector<T, PRIMITIVE>&) [with T = FUUri; bool PRIMITIVE = false]': FCollada/FCDocument/FCDControllerInstance.cpp:44:26: required from here FCollada/FMath/FMArray.h:535:12: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class FUUri' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(begin(), rhs.begin(), sizeof(T) * rhs.size()); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FCDocument/FCDControllerInstance.h:22, from FCollada/FCDocument/FCDControllerInstance.cpp:11: FCollada/FUtils/FUUri.h:33:23: note: 'class FUUri' declared here class FCOLLADA_EXPORT FUUri ^~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDControllerInstance.cpp:9: FCollada/FMath/FMArray.h: In instantiation of 'void fm::vector<T, PRIMITIVE>::reserve(size_t) [with T = FUUri; bool PRIMITIVE = false; size_t = long unsigned int]': FCollada/FMath/FMArray.h:269:25: required from 'void fm::vector<T, PRIMITIVE>::clear() [with T = FUUri; bool PRIMITIVE = false]' FCollada/FCDocument/FCDControllerInstance.h:104:59: required from here FCollada/FMath/FMArray.h:300:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class FUUri' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(newValues, heapBuffer, sized * sizeof(T)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FCDocument/FCDControllerInstance.h:22, from FCollada/FCDocument/FCDControllerInstance.cpp:11: FCollada/FUtils/FUUri.h:33:23: note: 'class FUUri' declared here class FCOLLADA_EXPORT FUUri ^~~~~ In file included from FCollada/FMath/FMath.h:38, from FCollada/FUtils/FUtils.h:81, from FCollada/FCollada.h:58, from FCollada/StdAfx.h:13, from FCollada/FCDocument/FCDControllerInstance.cpp:9: FCollada/FMath/FMArray.h: In instantiation of 'T* fm::vector<T, PRIMITIVE>::insert(fm::vector<T, PRIMITIVE>::iterator, const T&) [with T = FUUri; bool PRIMITIVE = false; fm::vector<T, PRIMITIVE>::iterator = FUUri*]': FCollada/FMath/FMArray.h:367:42: required from 'void fm::vector<T, PRIMITIVE>::push_back(const T&) [with T = FUUri; bool PRIMITIVE = false]' FCollada/FCDocument/FCDControllerInstance.cpp:78:35: required from here FCollada/FMath/FMArray.h:346:12: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class FUUri' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memmove(it + 1, it, (end() - it) * sizeof(T)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from FCollada/FCDocument/FCDControllerInstance.h:22, from FCollada/FCDocument/FCDControllerInstance.cpp:11: FCollada/FUtils/FUUri.h:33:23: note: 'class FUUri' declared here class FCOLLADA_EXPORT FUUri ^~~~~ ./build.sh: 28: ./build.sh: die: not found ERROR: FCollada build failed Edited October 1 by andy5995 Quote Link to comment Share on other sites More sharing options...
Stan` Posted October 1 Report Share Posted October 1 This is a bit weird but depending on how this release goes, we might have some good news. @hyperion and I (mostly @hyperion TBH) have been working on trying to make FCollada a distro provided package. I believe his repository builds on AARCH64. As mentionned on matrix did you set both HOSTTYPE and ARCH to build like it's done for macOS ? See https://gitea.wildfiregames.com/0ad/0ad/src/commit/eb3f0f4cc17f0cfaacce7948e2c3f99f3fd848a4/libraries/build-macos-libs.sh#L106 It's possible that the nested scripts would be missing some arguments though. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted November 28 Author Report Share Posted November 28 @Stan`thank you for the suggestion, but I've never had to set those to build on any other architectures. I've helped with the MegaGlest appimage build which uses qemu in a GitHub runner to create arm64 packages. No problems. I build several different things in this Dockerfile, also with qemu, building on Focal and Jammy for amd64, arm64, and arm/v7. Does 0ad do any testing on different architectures in its CI? Ironically, I was inspired into building on arm64 after you suggested it in a pull request comment on the 0ad-appimage repo. it's made more work for me, but it's been an interesting learning experience. Quote Link to comment Share on other sites More sharing options...
Stan` Posted November 28 Report Share Posted November 28 6 hours ago, andy5995 said: @Stan`thank you for the suggestion, but I've never had to set those to build on any other architectures. I've helped with the MegaGlest appimage build which uses qemu in a GitHub runner to create arm64 packages. No problems. I build several different things in this Dockerfile, also with qemu, building on Focal and Jammy for amd64, arm64, and arm/v7. Does 0ad do any testing on different architectures in its CI? Ironically, I was inspired into building on arm64 after you suggested it in a pull request comment on the 0ad-appimage repo. it's made more work for me, but it's been an interesting learning experience. Hey thanks for picking it up again. It's possible that they use a different build system like CMAKE ? Quote Link to comment Share on other sites More sharing options...
andy5995 Posted December 6 Author Report Share Posted December 6 On 28/11/2024 at 1:05 AM, Stan` said: Hey thanks for picking it up again. It's possible that they use a different build system like CMAKE ? @Stan`Yes, that's right. 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.