build plugins-good for android armv7 failed with libgstvpx.so

Sirius Wu ccwu660601 at gmail.com
Sun Oct 13 06:48:37 UTC 2019


HI,

I'm trying to build plugins-good-1.0 from master branch with the following
command.

./cerbero-uninstalled -c ./config/cross-android-armv7.cbc build
gst-plugins-good-1.0

I've successfully built the bad plugins, but for the good one errors occur
for label [493/718].

I extracts the errors from log:

1. FAILED: ext/vpx/libgstvpx.so
2. ld.gold: error: .../cerbero/lib/libvpx.so: incompatible target
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
3. Recipe 'gst-plugins-good-1.0' failed at the build step 'compile'
Fatal Error: Running ['sh', '-c', 'ninja -v -d keeprsp'], returncode 1

I've the following two questions:
1. If I do not need the libvpx, how can I removed it from the build process?
2. How can I fix the issue?

The whole log for [492/718] is listed below:

[492/718]
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-target armv7-none-linux-androideabi16 --sysroot
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm
 -o ext/vpx/libgstvpx.so 'ext/vpx/d463a24@@gstvpx at sha/gstvp8dec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp8enc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp8utils.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp9dec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp9enc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvpxdec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvpxenc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/plugin.c.o' -Wl,--no-undefined -Wl,--as-needed
-shared -fPIC -Wl,--start-group -Wl,-soname,libgstvpx.so
-Wl,-Bsymbolic-functions
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstbase-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstreamer-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgobject-2.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libglib-2.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libintl.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgsttag-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstvideo-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so
-lm -Wl,--end-group
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib
-gcc-toolchain
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
-fPIC -no-canonical-prefixes -Wl,-no-undefined -Wl,-z,noexecstack
-Wl,-z,relro -Wl,-z,now -Wl,--gc-sections
-Wl,-dynamic-linker,/system/bin/linker -Wl,--warn-shared-textrel
-Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libgcc.a
-Wl,--exclude-libs,libunwind.a -Wl,--fix-cortex-a8 -Wl,-z,nocopyreloc
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib
-fuse-ld=gold
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib

FAILED: ext/vpx/libgstvpx.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-target armv7-none-linux-androideabi16 --sysroot
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm
 -o ext/vpx/libgstvpx.so 'ext/vpx/d463a24@@gstvpx at sha/gstvp8dec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp8enc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp8utils.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp9dec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvp9enc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvpxdec.c.o'
'ext/vpx/d463a24@@gstvpx at sha/gstvpxenc.c.o'
'ext/vpx/d463a24@@gstvpx at sha/plugin.c.o' -Wl,--no-undefined -Wl,--as-needed
-shared -fPIC -Wl,--start-group -Wl,-soname,libgstvpx.so
-Wl,-Bsymbolic-functions
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstbase-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstreamer-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgobject-2.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libglib-2.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libintl.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgsttag-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/
libgstvideo-1.0.so
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so
-lm -Wl,--end-group
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib
-gcc-toolchain
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
-fPIC -no-canonical-prefixes -Wl,-no-undefined -Wl,-z,noexecstack
-Wl,-z,relro -Wl,-z,now -Wl,--gc-sections
-Wl,-dynamic-linker,/system/bin/linker -Wl,--warn-shared-textrel
-Wl,--exclude-libs,libatomic.a -Wl,--exclude-libs,libgcc.a
-Wl,--exclude-libs,libunwind.a -Wl,--fix-cortex-a8 -Wl,-z,nocopyreloc
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib
-fuse-ld=gold
-L/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib

/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/mapacode/git/cerbero/build/android-ndk-18/android-ndk-r18b/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:
/media/ccwu/e7458cf5-858e-4184-afc4-73301087e303/home/alvin/Android/cerbero/lib/libvpx.so:
incompatible target
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
-- 
Sirius Wu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191013/08750e96/attachment.html>


More information about the gstreamer-devel mailing list