android-universal: Taglib build is broken
A fresh checkout of cerbero, I ran:
./cerbero-uninstalled -c config/cross-android-universal.cbc bootstrap && ./cerbero-uninstalled -c config/cross-android-universal.cbc build taglib
And got this error. It's passing the x86_64 compiler for an amv7 compilation.
[(2/2) taglib -> extract ]
-----> Extracting tarball to /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7/taglib-1.11.1
Unpacking /home/nicolas/.cache/cerbero-sources/taglib-1.11.1/taglib-1.11.1.tar.gz in /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7
-----> Extracting tarball to /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/arm64/taglib-1.11.1
Unpacking /home/nicolas/.cache/cerbero-sources/taglib-1.11.1/taglib-1.11.1.tar.gz in /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/arm64
-----> Extracting tarball to /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/x86/taglib-1.11.1
Unpacking /home/nicolas/.cache/cerbero-sources/taglib-1.11.1/taglib-1.11.1.tar.gz in /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/x86
-----> Extracting tarball to /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/x86_64/taglib-1.11.1
Unpacking /home/nicolas/.cache/cerbero-sources/taglib-1.11.1/taglib-1.11.1.tar.gz in /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/x86_64
[(2/2) taglib -> configure ]
Running command 'cmake -DCMAKE_INSTALL_PREFIX=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7 -DCMAKE_LIBRARY_OUTPUT_PATH=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/lib -DCMAKE_INSTALL_LIBDIR=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/lib -DCMAKE_INSTALL_BINDIR=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/bin -DCMAKE_INSTALL_INCLUDEDIR=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/include -DWITH_MP4=ON -DWITH_ASF=ON -DBUILD_SHARED_LIBS=1 -DBUILD_STATIC_LIBS=1 -DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE -DANDROID_NDK=1 -DZLIB_ROOT=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DCMAKE_CXX_COMPILER=/home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -DCMAKE_C_FLAGS="-Wall -g -Os -gcc-toolchain /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isysroot /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include/arm-linux-androideabi -fno-integrated-as -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DANDROID -DPIC -D__ANDROID_API__=16 -D__ARM_ARCH_7A__ -Wa,--noexecstack" -DCMAKE_CXX_FLAGS="-Wall -g -Os -gcc-toolchain /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isysroot /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include/arm-linux-androideabi -fno-integrated-as -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DANDROID -DPIC -D__ANDROID_API__=16 -D__ARM_ARCH_7A__ -Wa,--noexecstack -fno-rtti -fno-exceptions -frtti" -DLIB_SUFFIX= -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_ROOT_PATH=$CERBERO_PREFIX '
-- The C compiler identification is Clang 7.0.2
-- The CXX compiler identification is Clang 7.0.2
-- Check for working C compiler: /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working C compiler: /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7/taglib-1.11.1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_896df/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_896df.dir/build.make CMakeFiles/cmTC_896df.dir/build
gmake[1] : on entre dans le répertoire « /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7/taglib-1.11.1/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_896df.dir/testCCompiler.c.o
/home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -Wall -g -Os -gcc-toolchain /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isysroot /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/dist/android_universal/armv7/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include -isystem /home/nicolas/Sources/gstreamer-master/cerbero-test/build/android-ndk-18/sysroot/usr/include/arm-linux-androideabi -fno-integrated-as -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -DANDROID -DPIC -D__ANDROID_API__=16 -D__ARM_ARCH_7A__ -Wa,--noexecstack -o CMakeFiles/cmTC_896df.dir/testCCompiler.c.o -c /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7/taglib-1.11.1/CMakeFiles/CMakeTmp/testCCompiler.c
error: unknown target CPU 'armv7-a'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, nehalem, corei7, westmere, sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell, skylake, skylake-avx512, skx, cannonlake, icelake, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3, athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1, bdver2, bdver3, bdver4, znver1, x86-64
gmake[1]: *** [CMakeFiles/cmTC_896df.dir/build.make:66: CMakeFiles/cmTC_896df.dir/testCCompiler.c.o] Error 1
gmake[1] : on quitte le répertoire « /home/nicolas/Sources/gstreamer-master/cerbero-test/build/sources/android_universal/armv7/taglib-1.11.1/CMakeFiles/CMakeTmp »
gmake: *** [Makefile:121: cmTC_896df/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!