[qca] [Bug 506385] New: Unable to compile with CMake 4.0.3

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Jun 30 13:14:49 BST 2025


https://bugs.kde.org/show_bug.cgi?id=506385

            Bug ID: 506385
           Summary: Unable to compile with CMake 4.0.3
    Classification: Frameworks and Libraries
           Product: qca
      Version First 2.3.7
       Reported In:
          Platform: Compiled Sources
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: bagarmatej at gmail.com
                CC: aacid at kde.org, bradh at frogmouth.net,
                    justin at karneges.com
  Target Milestone: ---

SUMMARY
Version 2.3.7, which is in VCPKG is impossible to build with CMake 4+, which is
currently the default version in macOS (homebrew). The error logs reference
Policy CMP0042, which is getting set to old, however in CMake 4 this option was
removed. VCPKG Github issue: https://github.com/microsoft/vcpkg/issues/46178

STEPS TO REPRODUCE
1. vcpkg install
   or 
   cmake .

OBSERVED RESULT
library build fails

EXPECTED RESULT
library build succeeds

SOFTWARE/OS VERSIONS
macOS: 15.5 Sequoia
CMake: 4.0.3

ADDITIONAL INFORMATION
Log: 
> [1/2] "/usr/local/bin/cmake" -E chdir ".." "/usr/local/bin/cmake" "/Users/matej/Projects/build/vcpkg/buildtrees/qca/src/v2.3.7-7f27e2b384.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DUSE_RELATIVE_PATHS=ON" "-DBUILD_PLUGINS=gnupg;logger;wincrypto;botan;softstore" "-DBUILD_TESTS=OFF" "-DBUILD_TOOLS=OFF" "-DBUILD_WITH_QT6=ON" "-DQCA_SUFFIX=OFF" "-DQCA_FEATURE_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/share/qca/mkspecs/features" "-DOSX_FRAMEWORK=OFF" "-DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config" "-DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/matej/Projects/build/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/matej/Projects/build/test/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-DQCA_PLUGINS_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/lib/Qca"
> FAILED: [code=1] ../CMakeCache.txt 
> "/usr/local/bin/cmake" -E chdir ".." "/usr/local/bin/cmake" "/Users/matej/Projects/build/vcpkg/buildtrees/qca/src/v2.3.7-7f27e2b384.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DUSE_RELATIVE_PATHS=ON" "-DBUILD_PLUGINS=gnupg;logger;wincrypto;botan;softstore" "-DBUILD_TESTS=OFF" "-DBUILD_TOOLS=OFF" "-DBUILD_WITH_QT6=ON" "-DQCA_SUFFIX=OFF" "-DQCA_FEATURE_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/share/qca/mkspecs/features" "-DOSX_FRAMEWORK=OFF" "-DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config" "-DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/matej/Projects/build/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/matej/Projects/build/test/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-DQCA_PLUGINS_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/lib/Qca"
> -- The C compiler identification is AppleClang 17.0.0.17000013
> -- The CXX compiler identification is AppleClang 17.0.0.17000013
> ...
> Skipped 89 lines
> ...
> FAILED: [code=1] ../../x64-osx-dbg/CMakeCache.txt 
> "/usr/local/bin/cmake" -E chdir "../../x64-osx-dbg" "/usr/local/bin/cmake" "/Users/matej/Projects/build/vcpkg/buildtrees/qca/src/v2.3.7-7f27e2b384.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DUSE_RELATIVE_PATHS=ON" "-DBUILD_PLUGINS=gnupg;logger;wincrypto;botan;softstore" "-DBUILD_TESTS=OFF" "-DBUILD_TOOLS=OFF" "-DBUILD_WITH_QT6=ON" "-DQCA_SUFFIX=OFF" "-DQCA_FEATURE_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/share/qca/mkspecs/features" "-DOSX_FRAMEWORK=OFF" "-DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config" "-DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja" "-DCMAKE_SYSTEM_NAME=Darwin" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/toolchains/osx.cmake" "-DVCPKG_TARGET_TRIPLET=x64-osx" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/matej/Projects/build/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/matej/Projects/build/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/matej/Projects/build/test/vcpkg_installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-DQCA_PLUGINS_INSTALL_DIR=/Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/lib/Qca"
> -- The C compiler identification is AppleClang 17.0.0.17000013
> -- The CXX compiler identification is AppleClang 17.0.0.17000013
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: /usr/bin/cc - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++ - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> CMake Error at CMakeLists.txt:19 (cmake_policy):
>   Policy CMP0042 may not be set to OLD behavior because this version of CMake
>   no longer supports it.  The policy was introduced in CMake version 3.0.0,
>   and use of NEW behavior is now required.
> 
>   Please either update your CMakeLists.txt files to conform to the new
>   behavior or use an older version of CMake that still supports the old
>   behavior.  Run cmake --help-policy CMP0042 for more information.
> 
> 
> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
> -- Building Qt 6 version
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
> -- Found Threads: TRUE
> -- Found ZLIB: optimized;/Users/matej/Projects/build/test/vcpkg_installed/x64-osx/lib/libz.a;debug;/Users/matej/Projects/build/test/vcpkg_installed/x64-osx/debug/lib/libz.a (found version "1.3.1")
> -- Found WrapSystemZLIB: TRUE (found version "1.3.1")
> -- Using system ZLIB.
> -- Found WrapZLIB: TRUE (found version "1.3.1")
> -- Performing Test HAVE_STDATOMIC
> -- Performing Test HAVE_STDATOMIC - Success
> -- Found WrapAtomic: TRUE
> -- Found WrapSystemDoubleConversion: /Users/matej/Projects/build/test/vcpkg_installed/x64-osx/share/double-conversion/double-conversionConfig.cmake (found version "3.3.0")
> -- Checking for module 'libb2'
> --   Found libb2, version 0.98.1
> -- Found ICU: /Users/matej/Projects/build/test/vcpkg_installed/x64-osx/include (found suitable version "74.2", minimum required is "50.1") found components: i18n uc data
> -- Found WrapSystemPCRE2: TRUE (found version "10.45.0")
> -- Using system PCRE2.
> -- Found WrapPCRE2: TRUE (found version "10.45.0")
> -- Found WrapZSTD: 1.5.7 (found suitable version "1.5.7", minimum required is "1.3")
> -- Performing Test HAVE_GETTIME
> -- Performing Test HAVE_GETTIME - Success
> -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK
> -- Performing Test HAVE_SHM_OPEN_SHM_UNLINK - Success
> -- Found WrapRt: TRUE
> -- Installed package is NOT relocatable
> -- Checking for certstore..
> -- Using built in certstore.
> -- certstore path: /Users/matej/Projects/build/vcpkg/buildtrees/qca/src/v2.3.7-7f27e2b384.clean/certs/rootcerts.pem
> -- Looking for include file sys/filio.h
> -- Looking for include file sys/filio.h - found
> -- Performing Test MLOCK_TAKES_VOID
> -- Performing Test MLOCK_TAKES_VOID - Success
> -- Found PkgConfig: /usr/local/bin/pkg-config (found version "2.5.0")
> -- Checking for module 'botan-2'
> --   Package 'botan-2' not found
> -- Checking for module 'botan-3'
> --   Found botan-3, version 3.7.1
> 
> Plugins:
>   qca-botan on
>   qca-cyrus-sasl off
>   qca-gcrypt off
>   qca-gnupg on
>   qca-logger on
>   qca-nss off
>   qca-ossl off
>   qca-pkcs11 off
>   qca-softstore on
> -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
> -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
> -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
> -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
> -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
> -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
> 
> QCA prefix is /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug
> Plugins will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/lib/Qca
> Binary will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/bin
> Library will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/lib
> Public headers will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/include
> Private headers will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/include
> Feature file will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/share/qca/mkspecs/features
> Documentation will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/share/doc/qca/html
> Man page will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/share/man
> Pkg-config file will be installed to /Users/matej/Projects/build/vcpkg/packages/qca_x64-osx/debug/lib/pkgconfig
> 
> -- Configuring incomplete, errors occurred!
> ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list