Host Environment
- OS: Windows 10 20H2;
- Compiler: MSVC 2019 16.9.3;
- CMake: 3.20.0.
To Reproduce
- Install CMake 3.20 (official website) and make sure the corresponding
cmake.exe is in the PATH environment variable;
vcpkg install libmariadb:x64-windows
Failure logs
Console output:
Computing installation plan...
The following packages will be built and installed:
libmariadb[core,openssl,zlib]:x64-windows -> 3.1.12
Detecting compiler hash for triplet x64-windows...
Could not locate cached archive: D:\Repository\vcpkg_binary_cache\cf\cff096cd5347ac10a1862beb2b5e5f828b90052f.zip
Starting package 1/1: libmariadb:x64-windows
Building package libmariadb[core,openssl,zlib]:x64-windows...
-- Using cached D:/Repository/vcpkg/downloads/mariadb-corporation-mariadb-connector-c-7d304d26c787a3f0430624db977b615aba56e4bb.tar.gz
-- Cleaning sources at D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/Repository/vcpkg/downloads/mariadb-corporation-mariadb-connector-c-7d304d26c787a3f0430624db977b615aba56e4bb.tar.gz
-- Applying patch arm64.patch
-- Applying patch md.patch
-- Applying patch disable-test-build.patch
-- Applying patch fix-InstallPath.patch
-- Applying patch fix-iconv.patch
-- Applying patch export-cmake-targets.patch
-- Using source at D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
Command failed: ninja -v
Working Directory: D:/Repository/vcpkg/buildtrees/libmariadb/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
D:\Repository\vcpkg\buildtrees\libmariadb\config-x64-windows-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:324 (vcpkg_execute_required_process)
ports/libmariadb/portfile.cmake:32 (vcpkg_configure_cmake)
scripts/ports.cmake:142 (include)
Error: Building package libmariadb:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: libmariadb:x64-windows
Vcpkg version: 2021-01-13-d67989bce1043b98092ac45996a8230a059a2d7e
Additionally, attach any relevant sections from the log files above.
Log file config-x64-windows-out.log:
[1/2] cmd /c "cd .. && "C:/Dev/BasicTools/cmake/v3.20.0/bin/cmake.exe" "D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean" "-DWITH_EXTERNAL_ZLIB=ON" "-DWITH_ICONV=OFF" "-DWITH_UNITTEST=OFF" "-DWITH_CURL=OFF" "-DWITH_SSL=OPENSSL" "-DCMAKE_MAKE_PROGRAM=D:/Repository/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Repository/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-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=D:/Repository/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=D:/Repository/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Repository/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/Repository/vcpkg/packages/libmariadb_x64-windows""
FAILED: ../CMakeCache.txt
cmd /c "cd .. && "C:/Dev/BasicTools/cmake/v3.20.0/bin/cmake.exe" "D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean" "-DWITH_EXTERNAL_ZLIB=ON" "-DWITH_ICONV=OFF" "-DWITH_UNITTEST=OFF" "-DWITH_CURL=OFF" "-DWITH_SSL=OPENSSL" "-DCMAKE_MAKE_PROGRAM=D:/Repository/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Repository/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-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=D:/Repository/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=D:/Repository/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Repository/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=D:/Repository/vcpkg/packages/libmariadb_x64-windows""
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is MSVC 19.28.29913.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found CURL: D:/Repository/vcpkg/installed/x64-windows/share/curl/CURLConfig.cmake (found version "7.74.0-DEV")
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.31.0.windows.1")
-- MariaDB Connector C: INSTALL_BINDIR=bin
-- MariaDB Connector C: INSTALL_LIBDIR=lib/mariadb
-- MariaDB Connector C: INSTALL_PCDIR=lib/pkgconfig
-- MariaDB Connector C: INSTALL_INCLUDEDIR=include/mariadb
-- MariaDB Connector C: INSTALL_DOCSDIR=
-- MariaDB Connector C: INSTALL_PLUGINDIR=lib/mariadb/plugin
-- MariaDB Connector C: LIBMARIADB_STATIC_NAME mariadbclient
-- Looking for include file linux/limits.h
-- Looking for include file linux/limits.h - not found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file ucontext.h
-- Looking for include file ucontext.h - not found
-- Found OpenSSL: D:/Repository/vcpkg/installed/x64-windows/lib/libcrypto.lib (found version "1.1.1j")
-- Looking for include file D:/Repository/vcpkg/installed/x64-windows/include/openssl/applink.c
-- Looking for include file D:/Repository/vcpkg/installed/x64-windows/include/openssl/applink.c - found
-- TLS library/version: OpenSSL 1.1.1j
-- SYSTEM_LIBS ws2_32;advapi32;kernel32;shlwapi;crypt32;D:/Repository/vcpkg/installed/x64-windows/lib/libssl.lib;D:/Repository/vcpkg/installed/x64-windows/lib/libcrypto.lib
-- Dynamic column API support: ON
-- SYSTEM processor: AMD64
CMake Error at cmake/ConnectorName.cmake:30 (ENDMACRO):
Flow control statements are not properly nested.
Call Stack (most recent call first):
CMakeLists.txt:424 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "D:/Repository/vcpkg/buildtrees/libmariadb/x64-windows-rel/CMakeFiles/CMakeOutput.log".
See also "D:/Repository/vcpkg/buildtrees/libmariadb/x64-windows-rel/CMakeFiles/CMakeError.log".
[2/2] cmd /c "cd ../../x64-windows-dbg && "C:/Dev/BasicTools/cmake/v3.20.0/bin/cmake.exe" "D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean" "-DWITH_EXTERNAL_ZLIB=ON" "-DWITH_ICONV=OFF" "-DWITH_UNITTEST=OFF" "-DWITH_CURL=OFF" "-DWITH_SSL=OPENSSL" "-DCMAKE_MAKE_PROGRAM=D:/Repository/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Repository/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-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=D:/Repository/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=D:/Repository/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Repository/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=D:/Repository/vcpkg/packages/libmariadb_x64-windows/debug""
FAILED: ../../x64-windows-dbg/CMakeCache.txt
cmd /c "cd ../../x64-windows-dbg && "C:/Dev/BasicTools/cmake/v3.20.0/bin/cmake.exe" "D:/Repository/vcpkg/buildtrees/libmariadb/src/5aba56e4bb-dff8333122.clean" "-DWITH_EXTERNAL_ZLIB=ON" "-DWITH_ICONV=OFF" "-DWITH_UNITTEST=OFF" "-DWITH_CURL=OFF" "-DWITH_SSL=OPENSSL" "-DCMAKE_MAKE_PROGRAM=D:/Repository/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Repository/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-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=D:/Repository/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=D:/Repository/vcpkg" "-D_VCPKG_INSTALLED_DIR=D:/Repository/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=D:/Repository/vcpkg/packages/libmariadb_x64-windows/debug""
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is MSVC 19.28.29913.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found CURL: D:/Repository/vcpkg/installed/x64-windows/share/curl/CURLConfig.cmake (found version "7.74.0-DEV")
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.31.0.windows.1")
-- MariaDB Connector C: INSTALL_BINDIR=bin
-- MariaDB Connector C: INSTALL_LIBDIR=lib/mariadb
-- MariaDB Connector C: INSTALL_PCDIR=lib/pkgconfig
-- MariaDB Connector C: INSTALL_INCLUDEDIR=include/mariadb
-- MariaDB Connector C: INSTALL_DOCSDIR=
-- MariaDB Connector C: INSTALL_PLUGINDIR=lib/mariadb/plugin
-- MariaDB Connector C: LIBMARIADB_STATIC_NAME mariadbclient
-- Looking for include file linux/limits.h
-- Looking for include file linux/limits.h - not found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file ucontext.h
-- Looking for include file ucontext.h - not found
-- Found OpenSSL: D:/Repository/vcpkg/installed/x64-windows/debug/lib/libcrypto.lib (found version "1.1.1j")
-- Looking for include file D:/Repository/vcpkg/installed/x64-windows/include/openssl/applink.c
-- Looking for include file D:/Repository/vcpkg/installed/x64-windows/include/openssl/applink.c - found
-- TLS library/version: OpenSSL 1.1.1j
-- SYSTEM_LIBS ws2_32;advapi32;kernel32;shlwapi;crypt32;D:/Repository/vcpkg/installed/x64-windows/debug/lib/libssl.lib;D:/Repository/vcpkg/installed/x64-windows/debug/lib/libcrypto.lib
-- Dynamic column API support: ON
-- SYSTEM processor: AMD64
CMake Error at cmake/ConnectorName.cmake:30 (ENDMACRO):
Flow control statements are not properly nested.
Call Stack (most recent call first):
CMakeLists.txt:424 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "D:/Repository/vcpkg/buildtrees/libmariadb/x64-windows-dbg/CMakeFiles/CMakeOutput.log".
See also "D:/Repository/vcpkg/buildtrees/libmariadb/x64-windows-dbg/CMakeFiles/CMakeError.log".
ninja: build stopped: subcommand failed.
Additional context
The build successes when CMake version is 3.19.x.
Host Environment
To Reproduce
cmake.exeis in thePATHenvironment variable;vcpkg install libmariadb:x64-windowsFailure logs
Console output:
Log file
config-x64-windows-out.log:Additional context
The build successes when CMake version is 3.19.x.