microsoft / vcpkg

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

[BUILD_FAILED] with \vcpkg install atl:x64-windows --triplet x64-windows #38510

Open sKunZel opened 2 weeks ago

sKunZel commented 2 weeks ago

Hi 'im encountering an issue while trying to build ATL. The goal being building LLVM.

Thanks in advance. Kévin

"PS C:\Users\Kevin..\vcpkg> Remove-Item -Path "C:\Users\Kevin..\vcpkg\buildtrees" -Recurse -Force PS C:\Users\Kevin..\vcpkg> .\vcpkg install atl:x64-windows --triplet x64-windows Computing installation plan... The following packages will be built and installed: atl:x64-windows@0 Detecting compiler hash for triplet x64-windows... Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\Kevin\AppData\Local\vcpkg\archives in 105 us. Use --debug to see more details. Installing 1/1 atl:x64-windows@0... Building atl:x64-windows@0... CMake Error at ports/atl/portfile.cmake:7 (message): Unable to locate 'atlbase.h'. Ensure you have installed the Active Template Library (ATL) component of Visual Studio. Call Stack (most recent call first): scripts/ports.cmake:175 (include)

error: building atl:x64-windows failed with: BUILD_FAILED Elapsed time to handle atl:x64-windows: 256 ms Please ensure you're using the latest port files with git pull and vcpkg update."

autoantwort commented 2 weeks ago

From the log:

Unable to locate 'atlbase.h'. Ensure you have installed the Active Template Library (ATL) component of Visual Studio.

sKunZel commented 2 weeks ago

From the log:

Unable to locate 'atlbase.h'. Ensure you have installed the Active Template Library (ATL) component of Visual Studio.

I did, image

Neumann-A commented 2 weeks ago

v142 looks like wrong toolset. You want the version without mentioning toolset (which should be v143). (or it should be mentioning newest)

sKunZel commented 2 weeks ago

v142 looks like wrong toolset. You want the version without mentioning toolset (which should be v143). (or it should be mentioning newest)

I updated to v143, same error.

StarGate-One commented 2 weeks ago

Are not the ATL/MFC libraries actually installed by the Windows SDK? or has this changed with VS 2022? Never mind it looks like they are installed by the VS 2022 Installer.

I have the following in the Desktop Development with C++ workload in VS 2022: image

You might could compare your installed features with mine as ATL installs fine for me.

sKunZel commented 1 week ago

~Are not the ATL/MFC libraries actually installed by the Windows SDK? or has this changed with VS 2022?~ Never mind it looks like they are installed by the VS 2022 Installer.

I have the following in the Desktop Development with C++ workload in VS 2022: image

You might could compare your installed features with mine as ATL installs fine for me.

I installed all ATL x86 x64 windows i could without sucess.

My goal is to install LLVM but got an error with .\vcpkg install llvm : building llvm:x64-windows failed with: BUILD_FAILED Elapsed time to handle llvm:x64-windows: 8.6 min Please ensure you're using the latest port files with git pull and vcpkg update.

MonicaLiu0311 commented 1 week ago

If your ./vcpkg install atl:x64-windows installation fails, please confirm that ATL/MFC is installed.

image image

If your LLVM installation fails, please provide specific error logs.

sKunZel commented 1 week ago

Here are some logs. If more are recquiered, just tell me how to harvest it.

PS C:\Users\Kevin\Downloads\vcpkg> .\vcpkg install llvm Computing installation plan... The following packages will be built and installed: llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-windows@17.0.2#5 Detecting compiler hash for triplet x64-windows... Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe Restored 0 package(s) from C:\Users\Kevin\AppData\Local\vcpkg\archives in 404 us. Use --debug to see more details. Installing 1/1 llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-windows@17.0.2#5... Building llvm[clang,core,default-targets,enable-bindings,enable-terminfo,enable-zlib,enable-zstd,lld,target-x86,tools]:x64-windows@17.0.2#5... -- Note: llvm only supports static library linkage. Building static library. -- Using cached llvm-llvm-project-llvmorg-17.0.2.tar.gz. -- Cleaning sources at C:/Users/Kevin/Downloads/vcpkg/buildtrees/llvm/src/org-17.0.2-c843ab180e.clean. Use --editable to skip cleaning for the packages you specify. -- Extracting source C:/Users/Kevin/Downloads/vcpkg/downloads/llvm-llvm-project-llvmorg-17.0.2.tar.gz -- Applying patch 0001-fix-install-package-dir.patch -- Applying patch 0002-fix-tools-install-dir.patch -- Applying patch 0003-fix-llvm-config.patch -- Applying patch 0004-disable-libomp-aliases.patch -- Applying patch 0005-remove-numpy.patch -- Applying patch 0006-create-destination-mlir-directory.patch -- Applying patch 0007-fix-compiler-rt-warnings.patch -- Applying patch 0008-add-missing-case.patch -- Applying patch 0009-add-missing-typename.patch -- Using source at C:/Users/Kevin/Downloads/vcpkg/buildtrees/llvm/src/org-17.0.2-c843ab180e.clean -- Getting CMake variables for x64-windows -- Configuring x64-windows -- Building x64-windows-dbg CMake Warning at scripts/cmake/vcpkg_execute_build_process.cmake:65 (message): Please ensure your system has sufficient memory. 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:297 (vcpkg_cmake_install) scripts/ports.cmake:175 (include)

-- Restarting build without parallelism CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9 Working Directory: C:/Users/Kevin/Downloads/vcpkg/buildtrees/llvm/x64-windows-dbg See logs for more information: C:\Users\Kevin\Downloads\vcpkg\buildtrees\llvm\install-x64-windows-dbg-out.log C:\Users\Kevin\Downloads\vcpkg\buildtrees\llvm\install-x64-windows-dbg-out-1.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:297 (vcpkg_cmake_install) scripts/ports.cmake:175 (include)

error: building llvm:x64-windows failed with: BUILD_FAILED Elapsed time to handle llvm:x64-windows: 1.9 h 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+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2FKevin%2FDownloads%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

autoantwort commented 1 week ago

Please ensure your system has sufficient memory.

sKunZel commented 1 week ago

60Go available