Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.10
-
None
-
Ubuntu 24.04.2, linux-g++ (x86_64), Compiler: gcc 13.3.0, CMake 3.28.3
-
-
7542aaea6 (dev), a20a40095 (dev), c39a3edb5 (6.10), f35f45642 (6.10), d5b3018c1 (6.9), e54bd7213 (6.9), 3e82d2a26 (tqtc/lts-6.8), 35e2baa4f (tqtc/lts-6.8)
Description
Without https://codereview.qt-project.org/c/qt/qtbase/+/648232 applied I get this error:
CMake Error at cmake/QtFlagHandlingHelpers.cmake:183 (message): Platform linker doesn't support erroring upon encountering undefined symbols. Target:"Core". Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:898 (qt_internal_add_link_flags_no_undefined) src/corelib/CMakeLists.txt:30 (qt_internal_add_module)
when configuring with -DFEATURE_sanitize_thread=ON:
-DCMAKE_BUILD_TYPE=Debug -DFEATURE_developer_build=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DWARNINGS_ARE_ERRORS=OFF -DFEATURE_sanitize_address=ON -DFEATURE_sanitize_thread=ON
With https://codereview.qt-project.org/c/qt/qtbase/+/648232 applied, I then get:
ERROR: detected a std::atomic implementation that fails for function pointers. Please apply the patch corresponding to your Standard Library vendor, found in qtbase/config.tests/atomicfptr CMake Error at cmake/QtBuildInformation.cmake:240 (message): Check the configuration messages for an error that has occurred. Call Stack (most recent call first): cmake/QtBuildInformation.cmake:59 (qt_configure_print_summary) cmake/QtBuildRepoHelpers.cmake:393 (qt_print_feature_summary) cmake/QtBaseHelpers.cmake:287 (qt_build_repo_end) CMakeLists.txt:36 (qt_internal_qtbase_build_repo)
However, there is no atomicfptr on my machine:
mitch@mitch-ubuntu:~/dev$ ls qtbase/config.tests arch armintrin binary_for_strip cmake_zstd cxa_thread_atexit loongarch_simd no_direct_extern_access separate_debug_info static_link_order verifyspec x86intrin x86_simd
Attachments
Issue Links
- relates to
-
QTBUG-133687 Confusing instructions when atomicfptr config.test fails
-
- Closed
-
For Gerrit Dashboard: QTBUG-137198 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
649669,2 | CMake: Improve error reporting for failed linker no undefined flag | dev | qt/qtbase | Status: MERGED | +2 | 0 |
649670,2 | CMake: Improve compile test error reporting in configure summary | dev | qt/qtbase | Status: MERGED | +2 | 0 |
650444,2 | CMake: Improve error reporting for failed linker no undefined flag | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
650445,2 | CMake: Improve compile test error reporting in configure summary | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
650494,2 | CMake: Improve error reporting for failed linker no undefined flag | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
650498,2 | CMake: Improve compile test error reporting in configure summary | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
650626,2 | CMake: Improve error reporting for failed linker no undefined flag | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
650628,2 | CMake: Improve compile test error reporting in configure summary | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |