Openspades: Compilation fails on aarch64

Created on 15 Aug 2020  路  4Comments  路  Source: yvt/openspades

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

bug compilation-issue

Most helpful comment

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.

All 4 comments

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

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.

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

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dwnpr picture dwnpr  路  4Comments

DrTexx picture DrTexx  路  4Comments

roadapathy picture roadapathy  路  4Comments

Nothin99 picture Nothin99  路  3Comments

Rafael450 picture Rafael450  路  6Comments