Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0
-
None
Description
While there is support for "multiple ABIs in one pass" now, our toolchain is not prepared for it (yet), and I need to build Qt for a single ABI instead. The problem is, no matter what you pass in via -android-abis, it always tries to build it's config tests using all ABIs - which fails:
executing config test verifyspec + cd /home/dev/.conan/data/qt/5.14.0/foo/stable/build/d96aa24f1b77bb91c68da186f3c5f19e7ab088d4/config.tests/verifyspec && /home/dev/.conan/data/qt/5.14.0/foo/stable/build/d96aa24f1b77bb91c68da186f3c5f19e7ab088d4/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" 'DEFINES += PCRE2_STATIC' 'QMAKE_LIBDIR += /home/dev/.conan/data/zlib/1.2.11/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/lib /home/dev/.conan/data/OpenSSL/1.1.1d/foo/stable/package/bcbae58938ad83feb7befdaa066fd2a42aa36d1d/lib /home/dev/.conan/data/pcre2/10.33/foo/stable/package/78e7585b8ca0683b3a7aab1e5ee51bac1f9b4909/lib /home/dev/.conan/data/bzip2/1.0.8/foo/stable/package/f413c8c8379ef94e92cd875eca42251e71797562/lib /home/dev/.conan/data/double-conversion/3.1.5/foo/stable/package/fbdbc80baadbc305bd066fa2b29c91dbae908f4b/lib /home/dev/.conan/data/freetype/2.10.1/foo/stable/package/f679d4c699f8caa802b62763569d51f3032148a2/lib /home/dev/.conan/data/libpng/1.6.37/foo/stable/package/03bc9e2d29b0e833f444ebfc52ee9474e3ead920/lib /home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/lib /home/dev/.conan/data/libjpeg/9c/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/lib' 'INCLUDEPATH += /home/dev/.conan/data/zlib/1.2.11/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/include /home/dev/.conan/data/OpenSSL/1.1.1d/foo/stable/package/bcbae58938ad83feb7befdaa066fd2a42aa36d1d/include /home/dev/.conan/data/pcre2/10.33/foo/stable/package/78e7585b8ca0683b3a7aab1e5ee51bac1f9b4909/include /home/dev/.conan/data/double-conversion/3.1.5/foo/stable/package/fbdbc80baadbc305bd066fa2b29c91dbae908f4b/include /home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/include /home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/include /home/dev/.conan/data/libjpeg/9c/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/include /home/dev/.conan/data/libpng/1.6.37/foo/stable/package/03bc9e2d29b0e833f444ebfc52ee9474e3ead920/include' QMAKE_CC=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang QMAKE_LINK_C=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang QMAKE_LINK_C_SHLIB=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang QMAKE_CXX=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ QMAKE_LINK=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ QMAKE_LINK_SHLIB=/home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ QMAKE_CXXFLAGS+=-ftemplate-depth=1024 -early "CONFIG += cross_compile" /home/dev/.conan/data/qt/5.14.0/foo/stable/source/qt5/qtbase/config.tests/verifyspec + cd /home/dev/.conan/data/qt/5.14.0/foo/stable/build/d96aa24f1b77bb91c68da186f3c5f19e7ab088d4/config.tests/verifyspec && MAKEFLAGS= /usr/bin/gmake > /home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ -c -target aarch64-linux-android21 -fno-limit-debug-info -fPIC -fstack-protector-strong -DANDROID -ftemplate-depth=1024 -O2 -fPIC -DPCRE2_STATIC -I/home/dev/.conan/data/qt/5.14.0/foo/stable/source/qt5/qtbase/config.tests/verifyspec -I. -I/home/dev/.conan/data/zlib/1.2.11/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/include -I/home/dev/.conan/data/OpenSSL/1.1.1d/foo/stable/package/bcbae58938ad83feb7befdaa066fd2a42aa36d1d/include -I/home/dev/.conan/data/pcre2/10.33/foo/stable/package/78e7585b8ca0683b3a7aab1e5ee51bac1f9b4909/include -I/home/dev/.conan/data/double-conversion/3.1.5/foo/stable/package/fbdbc80baadbc305bd066fa2b29c91dbae908f4b/include -I/home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/include -I/home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/include -I/home/dev/.conan/data/libjpeg/9c/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/include -I/home/dev/.conan/data/libpng/1.6.37/foo/stable/package/03bc9e2d29b0e833f444ebfc52ee9474e3ead920/include -I/home/dev/.conan/data/qt/5.14.0/foo/stable/source/qt5/qtbase/mkspecs/android-clang -o verifyspec.o /home/dev/.conan/data/qt/5.14.0/foo/stable/source/qt5/qtbase/config.tests/verifyspec/verifyspec.cpp > /home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ -Wl,--build-id=sha1 -Wl,--no-undefined -Wl,-z,noexecstack -shared -o verifyspec verifyspec.o -L/home/dev/.conan/data/zlib/1.2.11/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/lib -L/home/dev/.conan/data/OpenSSL/1.1.1d/foo/stable/package/bcbae58938ad83feb7befdaa066fd2a42aa36d1d/lib -L/home/dev/.conan/data/pcre2/10.33/foo/stable/package/78e7585b8ca0683b3a7aab1e5ee51bac1f9b4909/lib -L/home/dev/.conan/data/bzip2/1.0.8/foo/stable/package/f413c8c8379ef94e92cd875eca42251e71797562/lib -L/home/dev/.conan/data/double-conversion/3.1.5/foo/stable/package/fbdbc80baadbc305bd066fa2b29c91dbae908f4b/lib -L/home/dev/.conan/data/freetype/2.10.1/foo/stable/package/f679d4c699f8caa802b62763569d51f3032148a2/lib -L/home/dev/.conan/data/libpng/1.6.37/foo/stable/package/03bc9e2d29b0e833f444ebfc52ee9474e3ead920/lib -L/home/dev/.conan/data/harfbuzz/2.6.4/foo/stable/package/8d2123e6fa1c58c0edc2e849102fae0c10f323d5/lib -L/home/dev/.conan/data/libjpeg/9c/foo/stable/package/6d413274000d70c39b1513fca17dfe81194f93a8/lib -llog -lz -lm -ldl -lc > /home/dev/.conan/data/android_ndk_installer/r20/foo/stable/package/84fc5086d5b84ea42507b9623275f83e74452fe1/toolchains/llvm/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: verifyspec.o: incompatible target > clang++: error: linker command failed with exit code 1 (use -v to see invocation) > gmake: *** [Makefile:68: verifyspec] Error 1
The error goes away after setting the ANDROID_TARGET_ARCH environment variable while calling configure.
Attachments
Issue Links
- relates to
-
QTBUG-81249 You can not compile qt 5.14 for android for armeabi-v7a platform
- Closed
-
QTBUG-81049 Qt 5.14 build for Android doesn't install CMake module files
- Closed
-
QTBUG-80938 [REG 5.13.0] No CMake Config files created when configuring Android with a single ABI
- Closed