openspades icon indicating copy to clipboard operation
openspades copied to clipboard

Compilation fails on aarch64

Open parkerlreed opened this issue 4 years ago • 6 comments

Possibly related to #416. New issue because different architecture and the only solution back then was a fork which is now outdated

Log https://gist.github.com/parkerlreed/5ee2e088851036eb8f500bfb7c8a3011

parkerlreed avatar Aug 15 '20 20:08 parkerlreed

As suggested on that issue, I tried adding stk's Angelscript arm snippet to the current openspades but it still bails trying the x64 codepath.

https://github.com/supertuxkart/stk-code/blob/master/lib/angelscript/projects/cmake/CMakeLists.txt#L115

parkerlreed avatar Aug 15 '20 20:08 parkerlreed

Yes this is because OpenSpades uses a VERY old version of AngelScript. 2.31.1 which is from 2016 and the latest is 2.33 from 2018 which includes many fixes for the aarch64.

I will fork OS today and see if i can update the AngelScript version to the latest version.

EDIT: So it seems like yvt and other people did some changes to the AngelScript and updating it is not just copy and paste. Also updating it would require some changes in the addons because it changed a little and addons fail.

@yvt Updating the angelscript from https://sourceforge.net/p/angelscript/code/commit_browser to r2666 would fix most of our issues and OS would be able to run on aarch64.

Haxk20 avatar Sep 25 '20 19:09 Haxk20

BTW this is how supertuxkart got it fixed https://github.com/supertuxkart/stk-code/issues/2569

Haxk20 avatar Sep 25 '20 20:09 Haxk20

The same issue occurs when building on ppc64el

/usr/bin/ld: ../lib/libAngelscript.a(as_callfunc.cpp.o): in function CallSystemFunction(int, asCContext*)':
/home/User/OpenSpades/openspades/Sources/AngelScript/source/as_callfunc.cpp:712: undefined reference to CallSystemFunctionNative(asCContext*, asCScriptFunction*, void*, unsigned int*, void*, unsigned long&, void*)'
collect2: error: ld returned 1 exit status
make[2]: *** [Sources/CMakeFiles/OpenSpades.dir/build.make:3562: bin/openspades] Error 1
make[1]: *** [CMakeFiles/Makefile2:230: Sources/CMakeFiles/OpenSpades.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

CloudyProton avatar Nov 26 '20 22:11 CloudyProton

Removing the bug label as it's not a bug but just a lack of support.

yvt avatar Dec 10 '21 16:12 yvt

any activity on solving this issue ?

also you can compile with #1005 but it will not start

tigercoding56 avatar Sep 16 '22 04:09 tigercoding56