microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.74k stars 6.29k forks source link

[pcre] Build error on x64-windows #36086

Open ChenYunqiang1994 opened 8 months ago

ChenYunqiang1994 commented 8 months ago

Copy issue body from C:/Users/80693/Desktop/vcpkg/vcpkg/installed/vcpkg/issue_body.md warning: In the September 2023 release, the default triplet for vcpkg libraries changed from x86-windows to the detected host triplet (x64-windows). For the old behavior, add --triplet x86-windows . To suppress this message, add --triplet x64-windows . Computing installation plan... The following packages will be built and installed: pcre:x64-windows@8.45#5 Detecting compiler hash for triplet x64-windows... Restored 0 package(s) from C:\Users\80693\AppData\Local\vcpkg\archives in 78.1 us. Use --debug to see more details. Installing 1/1 pcre:x64-windows@8.45#5... Building pcre:x64-windows@8.45#5... -- Using cached pcre-8.45.zip. -- Cleaning sources at C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/pcre-8.45.zip -- Applying patch pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch -- Applying patch pcre-8.45_fix_postfix_for_debug_Windows_builds.patch -- Applying patch export-cmake-targets.patch -- Applying patch pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch -- Using source at C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean -- Found external ninja('1.10.2'). -- Configuring x64-windows CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: "D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v Working Directory: C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/x64-windows-rel/vcpkg-parallel-configure Error code: 1 See logs for more information: C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\config-x64-windows-dbg-CMakeCache.txt.log C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\config-x64-windows-rel-CMakeCache.txt.log C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\config-x64-windows-out.log

Call Stack (most recent call first): installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process) ports/pcre/portfile.cmake:27 (vcpkg_cmake_configure) scripts/ports.cmake:170 (include)

error: building pcre:x64-windows failed with: BUILD_FAILED Elapsed time to handle pcre:x64-windows: 1.8 s Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+pcre You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[pcre]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2F80693%2FDesktop%2Fvcpkg%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Cheney-W commented 8 months ago

Could you please provide the C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\config-x64-windows-out.log file to us? Thank you!

ChenYunqiang1994 commented 8 months ago

3 files in the zip thx

------------------ 原始邮件 ------------------ 发件人: "microsoft/vcpkg" @.>; 发送时间: 2024年1月9日(星期二) 下午4:37 @.>; @.**@.>; 主题: Re: [microsoft/vcpkg] [pcre] Build error on x64-windows (Issue #36086)

Could you please provide the C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\config-x64-windows-out.log file to us? Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Cheney-W commented 8 months ago

Sorry, I couldn't find where the zip is.

ChenYunqiang1994 commented 7 months ago

can you see the attached file zip is there

or out.log content as 

[1/2] "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" "C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Users/80693/Desktop/vcpkg/vcpkg/packages/pcre_x64-windows" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCRE_BUILD_TESTS=NO" "-DPCRE_BUILD_PCREGREP=NO" "-DPCRE_BUILD_PCRE32=YES" "-DPCRE_BUILD_PCRE16=YES" "-DPCRE_BUILD_PCRE8=YES" "-DPCRE_SUPPORT_JIT=YES" "-DPCRE_SUPPORT_UTF=YES" "-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES" "-DPCRE_SUPPORT_LIBBZ2=OFF" "-DPCRE_SUPPORT_LIBZ=OFF" "-DPCRE_SUPPORT_LIBEDIT=OFF" "-DPCRE_SUPPORT_LIBREADLINE=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/80693/Desktop/vcpkg/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" FAILED: ../CMakeCache.txt  "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" -E chdir ".." "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" "C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=C:/Users/80693/Desktop/vcpkg/vcpkg/packages/pcre_x64-windows" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCRE_BUILD_TESTS=NO" "-DPCRE_BUILD_PCREGREP=NO" "-DPCRE_BUILD_PCRE32=YES" "-DPCRE_BUILD_PCRE16=YES" "-DPCRE_BUILD_PCRE8=YES" "-DPCRE_SUPPORT_JIT=YES" "-DPCRE_SUPPORT_UTF=YES" "-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES" "-DPCRE_SUPPORT_LIBBZ2=OFF" "-DPCRE_SUPPORT_LIBZ=OFF" "-DPCRE_SUPPORT_LIBEDIT=OFF" "-DPCRE_SUPPORT_LIBREADLINE=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/80693/Desktop/vcpkg/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" CMake Warning (dev) at CMakeLists.txt:74 (PROJECT):   cmake_minimum_required() should be called prior to this top-level project()   call.  Please see the cmake-commands(7) manual for usage documentation of   both commands. This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30148.0 -- The CXX compiler identification is MSVC 19.29.30148.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken CMake Error at C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):   The C compiler

    "D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/x64-windows-rel/CMakeFiles/CMakeScratch/TryCompile-y6rmov'          Run Build Command(s): "D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v cmTC_fb397     [1/2] "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe"  /nologo   /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP   /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_fb397.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_fb397.dir\ /FS -c C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\x64-windows-rel\CMakeFiles\CMakeScratch\TryCompile-y6rmov\testCCompiler.c     [2/2] cmd.exe /C "cd . && C:\Users\80693\Desktop\vcpkg\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_fb397.dir --rc="D:\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="D:\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_fb397.dir\testCCompiler.c.obj  /out:cmTC_fb397.exe /implib:cmTC_fb397.lib /pdb:cmTC_fb397.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."     FAILED: cmTC_fb397.exe      cmd.exe /C "cd . && C:\Users\80693\Desktop\vcpkg\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_fb397.dir --rc="D:\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="D:\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_fb397.dir\testCCompiler.c.obj  /out:cmTC_fb397.exe /implib:cmTC_fb397.lib /pdb:cmTC_fb397.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."     LINK Pass 1: command "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_fb397.dir\testCCompiler.c.obj /out:cmTC_fb397.exe /implib:cmTC_fb397.lib /pdb:cmTC_fb397.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_fb397.dir/intermediate.manifest CMakeFiles\cmTC_fb397.dir/manifest.res" failed (exit code 1104) with the following output:     LINK : fatal error LNK1104: 无法打开文件“ucrtd.lib”     ninja: build stopped: subcommand failed.          

  

  CMake will not be able to correctly generate this project. Call Stack (most recent call first):   CMakeLists.txt:74 (PROJECT)

-- Configuring incomplete, errors occurred! [2/2] "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" -E chdir "../../x64-windows-dbg" "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" "C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Users/80693/Desktop/vcpkg/vcpkg/packages/pcre_x64-windows/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCRE_BUILD_TESTS=NO" "-DPCRE_BUILD_PCREGREP=NO" "-DPCRE_BUILD_PCRE32=YES" "-DPCRE_BUILD_PCRE16=YES" "-DPCRE_BUILD_PCRE8=YES" "-DPCRE_SUPPORT_JIT=YES" "-DPCRE_SUPPORT_UTF=YES" "-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES" "-DPCRE_SUPPORT_LIBBZ2=OFF" "-DPCRE_SUPPORT_LIBZ=OFF" "-DPCRE_SUPPORT_LIBEDIT=OFF" "-DPCRE_SUPPORT_LIBREADLINE=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/80693/Desktop/vcpkg/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" FAILED: ../../x64-windows-dbg/CMakeCache.txt  "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" -E chdir "../../x64-windows-dbg" "C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe" "C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/src/pcre-8-0bfdac5640.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Users/80693/Desktop/vcpkg/vcpkg/packages/pcre_x64-windows/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCRE_BUILD_TESTS=NO" "-DPCRE_BUILD_PCREGREP=NO" "-DPCRE_BUILD_PCRE32=YES" "-DPCRE_BUILD_PCRE16=YES" "-DPCRE_BUILD_PCRE8=YES" "-DPCRE_SUPPORT_JIT=YES" "-DPCRE_SUPPORT_UTF=YES" "-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES" "-DPCRE_SUPPORT_LIBBZ2=OFF" "-DPCRE_SUPPORT_LIBZ=OFF" "-DPCRE_SUPPORT_LIBEDIT=OFF" "-DPCRE_SUPPORT_LIBREADLINE=OFF" "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/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=C:/Users/80693/Desktop/vcpkg/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/80693/Desktop/vcpkg/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" CMake Warning (dev) at CMakeLists.txt:74 (PROJECT):   cmake_minimum_required() should be called prior to this top-level project()   call.  Please see the cmake-commands(7) manual for usage documentation of   both commands. This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is MSVC 19.29.30148.0 -- The CXX compiler identification is MSVC 19.29.30148.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Check for working C compiler: D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken CMake Error at C:/Users/80693/Desktop/vcpkg/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):   The C compiler

    "D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/Users/80693/Desktop/vcpkg/vcpkg/buildtrees/pcre/x64-windows-dbg/CMakeFiles/CMakeScratch/TryCompile-cpgmiy'          Run Build Command(s): "D:/Program Files/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v cmTC_4331f     [1/2] "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe"  /nologo   /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP   /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_4331f.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_4331f.dir\ /FS -c C:\Users\80693\Desktop\vcpkg\vcpkg\buildtrees\pcre\x64-windows-dbg\CMakeFiles\CMakeScratch\TryCompile-cpgmiy\testCCompiler.c     [2/2] cmd.exe /C "cd . && C:\Users\80693\Desktop\vcpkg\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4331f.dir --rc="D:\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="D:\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_4331f.dir\testCCompiler.c.obj  /out:cmTC_4331f.exe /implib:cmTC_4331f.lib /pdb:cmTC_4331f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."     FAILED: cmTC_4331f.exe      cmd.exe /C "cd . && C:\Users\80693\Desktop\vcpkg\vcpkg\downloads\tools\cmake-3.27.1-windows\cmake-3.27.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4331f.dir --rc="D:\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="D:\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_4331f.dir\testCCompiler.c.obj  /out:cmTC_4331f.exe /implib:cmTC_4331f.lib /pdb:cmTC_4331f.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."     LINK Pass 1: command "D:\Program Files\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_4331f.dir\testCCompiler.c.obj /out:cmTC_4331f.exe /implib:cmTC_4331f.lib /pdb:cmTC_4331f.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_4331f.dir/intermediate.manifest CMakeFiles\cmTC_4331f.dir/manifest.res" failed (exit code 1104) with the following output:     LINK : fatal error LNK1104: 无法打开文件“ucrtd.lib”     ninja: build stopped: subcommand failed.          

  

  CMake will not be able to correctly generate this project. Call Stack (most recent call first):   CMakeLists.txt:74 (PROJECT)

-- Configuring incomplete, errors occurred! ninja: build stopped: subcommand failed.

------------------ 原始邮件 ------------------ 发件人: "Cheney @.>; 发送时间: 2024年1月10日(星期三) 下午2:25 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [microsoft/vcpkg] [pcre] Build error on x64-windows (Issue #36086)

Sorry, I couldn't find where the zip is.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>