microsoft / vcpkg

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

[llvm] Build error #32712

Closed BiliBiliFox closed 11 months ago

BiliBiliFox commented 1 year ago
C:\Program Files\Microsoft Visual Studio\2022\Community>vcpkg install llvm
Computing installation plan...
The following packages will be built and installed:
    llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,enable-zstd,lld,target-spirv,target-x86,tools]:x64-windows -> 15.0.7#3
Detecting compiler hash for triplet x64-windows...
Restored 0 package(s) from C:\Users\Administrator\AppData\Local\vcpkg\archives in 363 us. Use --debug to see more details.
Installing 1/1 llvm:x64-windows...
Building llvm[clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-terminfo,enable-threads,enable-zlib,enable-zstd,lld,target-spirv,target-x86,tools]:x64-windows...
-- Note: llvm only supports static library linkage. Building static library.
-- Using cached llvm-llvm-project-llvmorg-15.0.7.tar.gz.
-- Cleaning sources at D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/dev/env/vcpkg/downloads/llvm-llvm-project-llvmorg-15.0.7.tar.gz
-- Applying patch 0001-Fix-install-paths.patch
-- Applying patch 0002-Fix-DR-1734.patch
-- Applying patch 0003-Fix-tools-path.patch
-- Applying patch 0004-Fix-compiler-rt-install-path.patch
-- Applying patch 0005-Fix-tools-install-path.patch
-- Applying patch 0006-Fix-libffi.patch
-- Applying patch 0007-Fix-install-bolt.patch
-- Applying patch 0008-llvm_assert.patch
-- Applying patch 0009-disable-libomp-aliases.patch
-- Using source at D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:311 (message):
  The following variables are not used in CMakeLists.txt:

      BOLT_TOOLS_INSTALL_DIR
      LIBOMP_INSTALL_ALIASES

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/llvm/portfile.cmake:238 (vcpkg_cmake_configure)
  scripts/ports.cmake:147 (include)

-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/dev/env/vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: D:/dev/env/vcpkg/buildtrees/llvm/x64-windows-dbg
    See logs for more information:
      D:\dev\env\vcpkg\buildtrees\llvm\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/llvm/portfile.cmake:271 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)

error: building llvm:x64-windows failed with: BUILD_FAILED
Elapsed time to handle llvm:x64-windows: 22 min
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+llvm
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[llvm]+Build+error&body=Copy+issue+body+from+D%3A%2Fdev%2Fenv%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

D:\dev\env\vcpkg\buildtrees\llvm\install-x64-windows-dbg-out.log:

[2026/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PrettyBuiltinDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PrettyBuiltinDumper.cpp
[2027/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PdbYaml.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PdbYaml.cpp
[2028/3567] cmd.exe /C "cd . && D:\dev\env\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=tools\llvm-profdata\CMakeFiles\llvm-profdata.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\link.exe  tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\llvm-profdata.cpp.obj tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\__\__\resources\windows_version_resource.rc.res  /out:bin\llvm-profdata.exe /implib:lib\llvm-profdata.lib /pdb:bin\llvm-profdata.pdb /version:0.0 /machine:x64 /STACK:10000000 /nologo    /debug /INCREMENTAL /subsystem:console  lib\LLVMCore.lib  lib\LLVMProfileData.lib  lib\LLVMObject.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMSupport.lib  lib\LLVMSymbolize.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMDebugInfoPDB.lib  lib\LLVMObject.lib  lib\LLVMBitReader.lib  lib\LLVMCore.lib  lib\LLVMRemarks.lib  lib\LLVMBitstreamReader.lib  lib\LLVMMCParser.lib  lib\LLVMMC.lib  lib\LLVMTextAPI.lib  lib\LLVMBinaryFormat.lib  lib\LLVMDebugInfoCodeView.lib  "C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\lib\amd64\diaguids.lib"  lib\LLVMDebugInfoMSF.lib  lib\LLVMSupport.lib  lib\LLVMDemangle.lib  psapi.lib  shell32.lib  ole32.lib  uuid.lib  advapi32.lib  D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zlibd.lib  D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zstd.lib  delayimp.lib  -delayload:shell32.dll  -delayload:ole32.dll  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: bin/llvm-profdata.exe 
cmd.exe /C "cd . && D:\dev\env\vcpkg\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E vs_link_exe --intdir=tools\llvm-profdata\CMakeFiles\llvm-profdata.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\link.exe  tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\llvm-profdata.cpp.obj tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\__\__\resources\windows_version_resource.rc.res  /out:bin\llvm-profdata.exe /implib:lib\llvm-profdata.lib /pdb:bin\llvm-profdata.pdb /version:0.0 /machine:x64 /STACK:10000000 /nologo    /debug /INCREMENTAL /subsystem:console  lib\LLVMCore.lib  lib\LLVMProfileData.lib  lib\LLVMObject.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMSupport.lib  lib\LLVMSymbolize.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMDebugInfoPDB.lib  lib\LLVMObject.lib  lib\LLVMBitReader.lib  lib\LLVMCore.lib  lib\LLVMRemarks.lib  lib\LLVMBitstreamReader.lib  lib\LLVMMCParser.lib  lib\LLVMMC.lib  lib\LLVMTextAPI.lib  lib\LLVMBinaryFormat.lib  lib\LLVMDebugInfoCodeView.lib  "C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\lib\amd64\diaguids.lib"  lib\LLVMDebugInfoMSF.lib  lib\LLVMSupport.lib  lib\LLVMDemangle.lib  psapi.lib  shell32.lib  ole32.lib  uuid.lib  advapi32.lib  D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zlibd.lib  D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zstd.lib  delayimp.lib  -delayload:shell32.dll  -delayload:ole32.dll  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FINAL LINK: command "C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\link.exe tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\llvm-profdata.cpp.obj tools\llvm-profdata\CMakeFiles\llvm-profdata.dir\__\__\resources\windows_version_resource.rc.res /out:bin\llvm-profdata.exe /implib:lib\llvm-profdata.lib /pdb:bin\llvm-profdata.pdb /version:0.0 /machine:x64 /STACK:10000000 /nologo /debug /INCREMENTAL /subsystem:console lib\LLVMCore.lib lib\LLVMProfileData.lib lib\LLVMObject.lib lib\LLVMDebugInfoDWARF.lib lib\LLVMSupport.lib lib\LLVMSymbolize.lib lib\LLVMDebugInfoDWARF.lib lib\LLVMDebugInfoPDB.lib lib\LLVMObject.lib lib\LLVMBitReader.lib lib\LLVMCore.lib lib\LLVMRemarks.lib lib\LLVMBitstreamReader.lib lib\LLVMMCParser.lib lib\LLVMMC.lib lib\LLVMTextAPI.lib lib\LLVMBinaryFormat.lib lib\LLVMDebugInfoCodeView.lib C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\lib\amd64\diaguids.lib lib\LLVMDebugInfoMSF.lib lib\LLVMSupport.lib lib\LLVMDemangle.lib psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zlibd.lib D:\dev\env\vcpkg\installed\x64-windows\debug\lib\zstd.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:tools\llvm-profdata\CMakeFiles\llvm-profdata.dir/intermediate.manifest tools\llvm-profdata\CMakeFiles\llvm-profdata.dir/manifest.res" failed (exit code 1168) with the following output:
LINK : fatal error LNK1168: cannot open bin\llvm-profdata.exe for writing

[2029/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\DumpOutputStyle.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\DumpOutputStyle.cpp
[2030/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\MinimalSymbolDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\MinimalSymbolDumper.cpp
[2031/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PrettyClassDefinitionDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PrettyClassDefinitionDumper.cpp
[2032/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PrettyClassLayoutGraphicalDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PrettyClassLayoutGraphicalDumper.cpp
[2033/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\MinimalTypeDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\MinimalTypeDumper.cpp
[2034/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PrettyCompilandDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PrettyCompilandDumper.cpp
[2035/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\PrettyEnumDumper.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\PrettyEnumDumper.cpp
[2036/3567] C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx64\x64\cl.exe   /TP -DGTEST_HAS_RTTI=0 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil -ID:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\include -ID:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\include -external:ID:\dev\env\vcpkg\installed\x64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8   /MP  /Zc:inline /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /EHs-c- /GR- -std:c++14 /showIncludes /Fotools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\llvm-pdbutil.cpp.obj /Fdtools\llvm-pdbutil\CMakeFiles\llvm-pdbutil.dir\ /FS -c D:\dev\env\vcpkg\buildtrees\llvm\src\org-15.0.7-26832cabce.clean\llvm\tools\llvm-pdbutil\llvm-pdbutil.cpp
[2037/3567] cmd.exe /C "cd /D D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg && D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\bin\llvm-tblgen.exe -gen-fast-isel -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86 -ID:/dev/env/vcpkg/buildtrees/llvm/x64-windows-dbg/include -ID:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/include -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target --long-string-literals=0 D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86/X86.td --write-if-changed -o lib/Target/X86/X86GenFastISel.inc -d lib/Target/X86/X86GenFastISel.inc.d"
[2038/3567] cmd.exe /C "cd /D D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg && D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\bin\llvm-tblgen.exe -gen-global-isel -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86 -ID:/dev/env/vcpkg/buildtrees/llvm/x64-windows-dbg/include -ID:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/include -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target --long-string-literals=0 D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86/X86.td --write-if-changed -o lib/Target/X86/X86GenGlobalISel.inc -d lib/Target/X86/X86GenGlobalISel.inc.d"
[2039/3567] cmd.exe /C "cd /D D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg && D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\bin\llvm-tblgen.exe -gen-instr-info -instr-info-expand-mi-operand-info=0 -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86 -ID:/dev/env/vcpkg/buildtrees/llvm/x64-windows-dbg/include -ID:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/include -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target --long-string-literals=0 D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86/X86.td --write-if-changed -o lib/Target/X86/X86GenInstrInfo.inc -d lib/Target/X86/X86GenInstrInfo.inc.d"
[2040/3567] cmd.exe /C "cd /D D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg && D:\dev\env\vcpkg\buildtrees\llvm\x64-windows-dbg\bin\llvm-tblgen.exe -gen-dag-isel -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86 -ID:/dev/env/vcpkg/buildtrees/llvm/x64-windows-dbg/include -ID:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/include -I D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target --long-string-literals=0 D:/dev/env/vcpkg/buildtrees/llvm/src/org-15.0.7-26832cabce.clean/llvm/lib/Target/X86/X86.td --write-if-changed -o lib/Target/X86/X86GenDAGISel.inc -d lib/Target/X86/X86GenDAGISel.inc.d"
ninja: build stopped: subcommand failed.
MonicaLiu0311 commented 1 year ago

Sorry I did't repro your issue.

Building llvm[bolt,clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-abi-breaking-checks,enable-bindings,enable-eh,enable-rtti,enable-terminfo,enable-threads,enable-zlib,enable-zstd,libclc,lld,lldb,openmp,polly,target-spirv,target-x86,tools,utils]:x64-windows...
-- Note: llvm only supports static library linkage. Building static library.
-- Downloading https://github.com/llvm/llvm-project/archive/llvmorg-15.0.7.tar.gz -> llvm-llvm-project-llvmorg-15.0.7.tar.gz...
-- Extracting source D:/downloads/llvm-llvm-project-llvmorg-15.0.7.tar.gz
-- Applying patch 0001-Fix-install-paths.patch
-- Applying patch 0002-Fix-DR-1734.patch
-- Applying patch 0003-Fix-tools-path.patch
-- Applying patch 0004-Fix-compiler-rt-install-path.patch
-- Applying patch 0005-Fix-tools-install-path.patch
-- Applying patch 0006-Fix-libffi.patch
-- Applying patch 0007-Fix-install-bolt.patch
-- Applying patch 0008-llvm_assert.patch
-- Applying patch 0009-disable-libomp-aliases.patch
-- Using source at D:/buildtrees/llvm/src/org-15.0.7-26832cabce.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Downloading https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip -> strawberry-perl-5.32.1.1-32bit.zip...
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/packages/llvm_x64-windows/share/clang/copyright
-- Installing: D:/packages/llvm_x64-windows/share/clang/usage
-- Installing: D:/packages/llvm_x64-windows/share/lld/copyright
-- Installing: D:/packages/llvm_x64-windows/share/lld/usage
-- Installing: D:/packages/llvm_x64-windows/share/polly/copyright
-- Installing: D:/packages/llvm_x64-windows/share/llvm/copyright
18930215187 commented 1 year ago

I have the same problem. Did you find the solution? @dawnlike

BiliBiliFox commented 1 year ago

我有同样的问题。你找到解决方案了吗?

no~ I'm waiting for vcpkg to update llvm to 16.0 maybe by then this problem will be solved

dg0yt commented 1 year ago

To me it looks like an anti-virus interaction, and this won't be solved by an update.

BiliBiliFox commented 1 year ago

抱歉,我没有重现您的问题。

Building llvm[bolt,clang,core,default-options,default-targets,disable-assertions,disable-clang-static-analyzer,enable-abi-breaking-checks,enable-bindings,enable-eh,enable-rtti,enable-terminfo,enable-threads,enable-zlib,enable-zstd,libclc,lld,lldb,openmp,polly,target-spirv,target-x86,tools,utils]:x64-windows...
-- Note: llvm only supports static library linkage. Building static library.
-- Downloading https://github.com/llvm/llvm-project/archive/llvmorg-15.0.7.tar.gz -> llvm-llvm-project-llvmorg-15.0.7.tar.gz...
-- Extracting source D:/downloads/llvm-llvm-project-llvmorg-15.0.7.tar.gz
-- Applying patch 0001-Fix-install-paths.patch
-- Applying patch 0002-Fix-DR-1734.patch
-- Applying patch 0003-Fix-tools-path.patch
-- Applying patch 0004-Fix-compiler-rt-install-path.patch
-- Applying patch 0005-Fix-tools-install-path.patch
-- Applying patch 0006-Fix-libffi.patch
-- Applying patch 0007-Fix-install-bolt.patch
-- Applying patch 0008-llvm_assert.patch
-- Applying patch 0009-disable-libomp-aliases.patch
-- Using source at D:/buildtrees/llvm/src/org-15.0.7-26832cabce.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Downloading https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip -> strawberry-perl-5.32.1.1-32bit.zip...
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: D:/packages/llvm_x64-windows/share/clang/copyright
-- Installing: D:/packages/llvm_x64-windows/share/clang/usage
-- Installing: D:/packages/llvm_x64-windows/share/lld/copyright
-- Installing: D:/packages/llvm_x64-windows/share/lld/usage
-- Installing: D:/packages/llvm_x64-windows/share/polly/copyright
-- Installing: D:/packages/llvm_x64-windows/share/llvm/copyright

I have tried many methods Including turning off Antivirus software and turning off the anti-virus switch of windows10 None of them have any effect Can you tell me how you succeeded?

BiliBiliFox commented 1 year ago

I have the same problem. Did you find the solution? @dawnlike

Good news I compiled llvm using vcpkg in a virtual machine You can also try it out

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 1 year ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

github-actions[bot] commented 11 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

MonicaLiu0311 commented 11 months ago

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.