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
Fix angelscript build on non-x86 arches - fixes #2119 and fixes #2194 #2195
Conversation
…ixes supertuxkart#2194 For the build failures on 64-bit arches, angelscript was using __LP64__ to test for x86_64. Use the correct define instead. For ARM architectures, ensure the native function calling file is built on all ARM arches and not just when building for android. Also add the nesseary -Wa,-mimplicit-it option when building the assembly file.
8d7566a
to
5cdea43
Compare
|
The original ARM build failed, but adding |
|
Thanks for the pull requests, though since some parts affect angelscript directly, I will try to get these changes upstream EDIT: After verifying, these architectures actually do not appear to be supported by angelscript ( see http://www.angelcode.com/angelscript/features.html ) - they are also pretty uncommon architectures so I don't think we care STK not running there |
|
@jcowgill It looks like only armel FTBFS now: Not knowing how portable the ARM assembly in angelscript actually is...perhaps it's best to just use the @auriamg Not sure if you saw @jcowgill's reply in #2194 or not, but that page does mention that angelscript is supported for arm, amongst a variety of other CPU architectures. |
The assembly code will not compile on that arch.
|
Lovely,
Yes |
|
@auriamg This sounds like a patch to be potentially useful upstream (in case that they want to support those platforms), but not for us at this stage then. Can it be closed? |
|
Given that STK doesn't support those architectures then I would agree this should be submitted upstream, not here. Closing this PR |
Our build system has detected that angelscript can't be cross-compiled properly. This has been also reported to supertuxkart [1], and although the developers were open to take patches fixing STK embedded angelscript, it was pointed out that non-x86 architectures were not officially supported and of little interest [2]. Hence, let's constrain the package selection and the host architecture to x86. [1] supertuxkart/stk-code#2569 [2] supertuxkart/stk-code#2195 Fixes: http://autobuild.buildroot.net/results/655/655f046b3bb5f7a4ea492328b608e409d6769689/ Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This is my fix for #2119 and #2194. I have compile tested it on x86_64 and mips64el. Incredibly I have no ARM hardware so I am currently building it there with QEMU. That'll probably take at least another hour though.
For the build failures on 64-bit arches, angelscript was using
__LP64__to test for x86_64. Use the correct define instead.For ARM architectures, ensure the native function calling file is built on all ARM arches and not just when building for android.