[Bug 759737] android: Update to clang toolchain

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Apr 22 09:58:23 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=759737

Philippe Normand <philn at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philn at igalia.com

--- Comment #10 from Philippe Normand <philn at igalia.com> ---
(In reply to Nicola from comment #6)
> (In reply to Arun Raghavan from comment #5)
> > We might have to do this sooner, rather than later, anyway. With NDK r13, I
> > see the following linker error:
> > 
> > GStreamer      : [GEN] => gst-build-armeabi-v7a/gstreamer_android.c
> > GStreamer      : [COMPILE] => gst-build-armeabi-v7a/gstreamer_android.c
> > GStreamer      : [LINK] => gst-build-armeabi-v7a/libgstreamer_android.so
> > /home/arun/code/android/android-ndk-r13/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)
> > /home/arun/code/gstreamer/cerbero/build/dist/android_universal/armv7/share/
> > gst-android/ndk-build//gstreamer-1.0.mk:230: recipe for target
> > 'buildsharedlibrary_armeabi-v7a' failed
> 
> a workaround is to set
> 
> NDK_TOOLCHAIN_VERSION := 4.9
> 
> in Application.mk, the defaul value is clang, maybe this could be documented
> until the switch to clang

This workdaround doesn't work here with NDK 16b and gst 1.14 binaries.
However the one recommended in https://github.com/android-ndk/ndk/issues/337
does work, replace gold with bfd linker in armv7 gstreamer1.0.mk file.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list