Skip to content

SDL2_image error Unknown or unsupported ARM architecture #627

Closed
@brussee

Description

@brussee

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions