Skip to content

conditional branch to PLT in THUMB-2 not supported yet. #337

@ali1234

Description

@ali1234

Description

While compiling a project with the gstreamer SDK:

Bug /home/al/tools/android/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: conditional branch to PLT in THUMB-2 not supported yet.
libswresample/arm/audio_convert_neon.S:137: error: unexpected opcode while processing relocation R_ARM_THM_JUMP19
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment Details

  • NDK Version: Pkg.Revision = 14.0.3770861
  • Build sytem: ndk-build & ant
  • Host OS: Ubuntu Linux 16.04 (ndk was installed using ubuntu-make)
  • Compiler: Clang (not reproducible with GCC)
  • ABI: armeabi-v7a

To reproduce:

  1. Install android ndk.
  2. Get gstreamer sdk 1.9.2 for armv7 and unpack it somewhere: https://gstreamer.freedesktop.org/data/pkg/android/1.9.2/
  3. Clone the test case: https://github.com/ali1234/ndk-test-case
  4. Edit gstbuild so the paths match your environment.
  5. Run gstbuild. (Watch out, if successful it will try to sideload the built apk onto any connected device).

Uncommenting the toolchain line in jni/Application.mk to switch to GCC makes the error go away.

Note that you can pretty much ignore all of my code, as the error is coming from trying to link the gstreamer sdk libraries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions