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

SDL2_image error Unknown or unsupported ARM architecture #627

Closed
brussee opened this issue Feb 4, 2016 · 4 comments · Fixed by #640
Closed

SDL2_image error Unknown or unsupported ARM architecture #627

brussee opened this issue Feb 4, 2016 · 4 comments · Fixed by #640

Comments

@brussee
Copy link
Contributor

brussee commented Feb 4, 2016

error while building an .apk with api 21 and sdl2 for arch armeabi

[armeabi] Compile thumb  : SDL2_image <= jidctfst.S
/usr/bin/ccache /opt/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF /home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi/objs/SDL2_image/external/jpeg-9/jidctfst.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image -I/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/external/jpeg-9 -I/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/external/libpng-1.6.2 -I/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/include -I/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image -DANDROID -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV -O3 -fstrict-aliasing -fprefetch-loop-arrays -DLOAD_JPG -DAVOID_TABLES -DLOAD_PNG -Wa,--noexecstack -Wformat -Werror=format-security    -I/opt/android-ndk-r10e/platforms/android-21/arch-arm/usr/include -c  /home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/external/jpeg-9/jidctfst.S -o /home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi/objs/SDL2_image/external/jpeg-9/jidctfst.o 
/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/external/jpeg-9/jidctfst.S:1:0: warning: -fprefetch-loop-arrays not supported for this target (try -march switches) [enabled by default]
 /*
 ^
In file included from /home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/external/jpeg-9/jidctfst.S:17:0:
/opt/android-ndk-r10e/platforms/android-21/arch-arm/usr/include/machine/cpu-features.h:52:6: error: #error Unknown or unsupported ARM architecture
 #    error Unknown or unsupported ARM architecture
      ^
/opt/android-ndk-r10e/build/core/build-binary.mk:465: recipe for target '/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi/objs/SDL2_image/external/jpeg-9/jidctfst.o' failed
make: *** [/home/brussee/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi/objs/SDL2_image/external/jpeg-9/jidctfst.o] Error 1


  STDERR:

Perhaps the ndk builder expects "arm" instead of "armeabi" there?

@inclement
Copy link
Member

Have you had compilation working before? If so, do you know what changed to encounter this?

One thing to try would be targeting a different api (lower than 21).

@kived
Copy link
Contributor

kived commented Feb 4, 2016

Android API 21 does not support armeabi. You must use a lower API or build for armeabi-v7a.

@kived
Copy link
Contributor

kived commented Feb 4, 2016

This should remain open until we add an error message notifying users of this incompatibility.

@brussee
Copy link
Contributor Author

brussee commented Feb 5, 2016

I moved up to API 21 because since then JDK 7 is officially supported. Also because the NDK GDB does not attach properly which may have something to do with the JDK version and archicture (was suggested to me).

Android API 21 does not support armeabi. You must use a lower API or build for armeabi-v7a.

I did not know that (can't find it in the api & ndk release notes either)
Thanks for responding so quickly!

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 a pull request may close this issue.

3 participants