Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0 Beta2
-
None
-
924dd10af (dev), 1647193af (6.8), 78c2a5948 (6.7)
Description
Sometimes, but not everytime I have random configure errors when building an Android example this way.
/usr/lib/aarch64-linux-gnu/qt-android-6.8-arm64-v8a/bin/qt-cmake '-DQT_ANDROID_ABIS=arm64-v8a;x86_64' -DQT_PATH_ANDROID_ABI_arm64-v8a=/usr -DQT_ANDROID_PATH_CMAKE_DIR_arm64-v8a=/usr/lib/aarch64-linux-gnu/qt-android-6.8-arm64-v8a/cmake -DQT_PATH_ANDROID_ABI_x86_64=/usr -DQT_ANDROID_PATH_CMAKE_DIR_x86_64=/usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake -DANDROID_SDK_ROOT=/usr/lib/android-sdk -DANDROID_NDK_ROOT=/usr/lib/android-ndk -DQT_ENABLE_VERBOSE_DEPLOYMENT=ON -DCMAKE_VERBOSE_MAKEFILE=ON -G 'Unix Makefiles' -S qtbase/examples/corelib/platform/androidnotifier -B /home/debci/androidnotifier/cmake-multi-build + cmake --build /home/debci/androidnotifier/cmake-multi-build --parallel
Errors are not always the same. Some examples:
Re-run cmake no build system arguments Re-run cmake no build system arguments -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake CMake Error at /usr/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:218 (configure_file): No such file or directory Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- The CXX compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE -- Found WrapAtomic: TRUE -- Performing Test HAVE_EGL -- Performing Test HAVE_EGL -- Performing Test HAVE_EGL - Success -- Performing Test HAVE_EGL - Success -- Found EGL: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include (found version "1.5") -- Found EGL: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include (found version "1.5") -- Performing Test HAVE_GLESv2 -- Performing Test HAVE_GLESv2 -- Performing Test HAVE_GLESv2 - Success -- Performing Test HAVE_GLESv2 - Success -- Found GLESv2: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -- Found GLESv2: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -- Found WrapVulkanHeaders: /usr/include -- Found WrapVulkanHeaders: /usr/include CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:3347 (message): Qt policy QTP0002 is not set: Target properties that specify android-specific paths may contain generator expressions but they must evaluate to valid JSON strings. Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0002.html for policy details. Use the qt_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:1011 (__qt_internal_setup_policy) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:65 (_qt_internal_android_format_deployment_paths) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:1547 (qt6_android_generate_deployment_settings) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:731 (_qt_internal_android_executable_finalizer) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:731 (cmake_language) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:829 (_qt_internal_finalize_executable) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:943 (qt6_finalize_target) CMakeLists.txt:32 (qt_finalize_executable) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:3347 (message): Qt policy QTP0002 is not set: Target properties that specify android-specific paths may contain generator expressions but they must evaluate to valid JSON strings. Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0002.html for policy details. Use the qt_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:1011 (__qt_internal_setup_policy) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:65 (_qt_internal_android_format_deployment_paths) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6AndroidMacros.cmake:1547 (qt6_android_generate_deployment_settings) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:731 (_qt_internal_android_executable_finalizer) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:731 (cmake_language) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:829 (_qt_internal_finalize_executable) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:943 (qt6_finalize_target) CMakeLists.txt:32 (qt_finalize_executable) This warning is for project developers. Use -Wno-dev to suppress it. -- Found android platform plugin at: /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so -- Found android platform plugin at: /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/plugins/platforms/libplugins_platforms_qtforandroid_x86_64.so CMake Error at /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:2352 (configure_file): No such file or directory Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:382 (_qt_internal_process_resource) /usr/lib/x86_64-linux-gnu/qt-android-6.8-x86_64/cmake/Qt6Core/Qt6CoreMacros.cmake:434 (qt6_add_resources) CMakeLists.txt:39 (qt_add_resources) -- Configuring incomplete, errors occurred! -- Configuring incomplete, errors occurred!
-- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake Re-run cmake no build system arguments -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- The CXX compiler identification is Clang 17.0.2 -- The CXX compiler identification is unknown -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - broken -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - broken CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message): The C++ compiler "/usr/lib/android-ndk/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/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_0012c/fast && gmake[3]: Entering directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O' /usr/bin/gmake -f CMakeFiles/cmTC_0012c.dir/build.make CMakeFiles/cmTC_0012c.dir/build gmake[4]: Entering directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O' Building CXX object CMakeFiles/cmTC_0012c.dir/testCXXCompiler.cxx.o /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_0012c.dir/testCXXCompiler.cxx.o -c /home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O/testCXXCompiler.cxx Linking CXX executable cmTC_0012c /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0012c.dir/link.txt --verbose=1 /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments CMakeFiles/cmTC_0012c.dir/testCXXCompiler.cxx.o -o cmTC_0012c -latomic -lm ld.lld: error: cannot open Scrt1.o: No such file or directory ld.lld: error: cannot open crti.o: No such file or directory ld.lld: error: cannot open crtbeginS.o: No such file or directory ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lstdc++ ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lgcc_s ld.lld: error: unable to find library -lgcc ld.lld: error: unable to find library -lc ld.lld: error: unable to find library -lgcc_s ld.lld: error: unable to find library -lgcc ld.lld: error: cannot open crtendS.o: No such file or directory ld.lld: error: cannot open crtn.o: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[4]: *** [CMakeFiles/cmTC_0012c.dir/build.make:99: cmTC_0012c] Error 1 gmake[4]: Leaving directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O' gmake[3]: *** [Makefile:127: cmTC_0012c/fast] Error 2 gmake[3]: Leaving directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-TY0C0O' CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:5 (project) CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message): The C++ compiler "/usr/lib/android-ndk/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/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_32f52/fast && gmake[3]: Entering directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv' /usr/bin/gmake -f CMakeFiles/cmTC_32f52.dir/build.make CMakeFiles/cmTC_32f52.dir/build gmake[4]: Entering directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv' Building CXX object CMakeFiles/cmTC_32f52.dir/testCXXCompiler.cxx.o /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -o CMakeFiles/cmTC_32f52.dir/testCXXCompiler.cxx.o -c /home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv/testCXXCompiler.cxx Linking CXX executable cmTC_32f52 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_32f52.dir/link.txt --verbose=1 /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments CMakeFiles/cmTC_32f52.dir/testCXXCompiler.cxx.o -o cmTC_32f52 -latomic -lm ld.lld: error: cannot open Scrt1.o: No such file or directory ld.lld: error: cannot open crti.o: No such file or directory ld.lld: error: cannot open crtbeginS.o: No such file or directory ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lstdc++ ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lgcc_s ld.lld: error: unable to find library -lgcc ld.lld: error: unable to find library -lc ld.lld: error: unable to find library -lgcc_s ld.lld: error: unable to find library -lgcc ld.lld: error: cannot open crtendS.o: No such file or directory ld.lld: error: cannot open crtn.o: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[4]: *** [CMakeFiles/cmTC_32f52.dir/build.make:99: cmTC_32f52] Error 1 gmake[4]: Leaving directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv' gmake[3]: *** [Makefile:127: cmTC_32f52/fast] Error 2 gmake[3]: Leaving directory '/home/debci/androidnotifier/cmake-multi-build/android_abi_builds/x86_64/CMakeFiles/CMakeScratch/TryCompile-28Lrnv' CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Configuring incomplete, errors occurred!
-- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake CMake Error at /usr/share/cmake-3.25/Modules/CMakeDetermineSystem.cmake:192 (configure_file): No such file or directory Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- The CXX compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 CMake Error at /usr/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:226 (configure_file): No such file or directory Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC
Re-run cmake no build system arguments Re-run cmake no build system arguments -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- The CXX compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 CMake Error at /usr/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:226 (configure_file): No such file or directory Call Stack (most recent call first): CMakeLists.txt:5 (project) -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Check if compiler accepts -pthread - yes
IIRC, this one is one of many samples for 6.7
Re-run cmake no build system arguments Re-run cmake no build system arguments -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake -- Android toolchain file within NDK detected: /usr/lib/android-ndk/build/cmake/android.toolchain.cmake CMake Error at /usr/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:1083 (file): file failed to open for reading (No such file or directory): /home/fabien/androidnotifier/cmake-multi-makefile-build/android_abi_builds/x86_64/CMakeFiles/3.29.6/CompilerIdCXX/CMakeCXXCompilerId-1f1b16c2.o.tmp Call Stack (most recent call first): /usr/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:13 (CMAKE_DETERMINE_COMPILER_ID_CHECK) /usr/share/cmake-3.29/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test) /usr/share/cmake-3.29/Modules/CMakeDetermineCXXCompiler.cmake:126 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:5 (project) -- The CXX compiler identification is Clang 17.0.2 -- The CXX compiler identification is Clang 17.0.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/lib/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped -- Detecting CXX compile features
I face this with 6.7 also
It seems to affect only multiabi builds when generator is "Unix Makefile". When it is set generator to Ninja, I haven't faced these random errors yet.