Closed RookieTars closed 2 years ago
@RookieTars Thanks for posting this issue, could you please provide the error log? I didn't find the error in the file you provided.
eg:
config-x64-windows-err.log
install-x64-windows-dbg-err.log
install-x64-windows-rel-err.log
I'm seeing the same issue.
In my case,
To Reproduce:
Steps to reproduce the behavior:
./vcpkg install opencv4[*]
System Info:
Error message:
Starting package 1/35: llvm:x64-windows
Building package llvm[clang,compiler-rt,core,default-options,default-targets,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-rtti,enable-terminfo,enable-threads,enable-zlib,lld,target-x86,tools]:x64-windows...
-- Note: llvm only supports static library linkage. Building static library.
-- Using cached llvm-llvm-project-llvmorg-13.0.0.tar.gz.
-- Cleaning sources at C:/src/vcpkg/buildtrees/llvm/src/org-13.0.0-41c002f263.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/src/vcpkg/downloads/llvm-llvm-project-llvmorg-13.0.0.tar.gz
-- Applying patch 0002-fix-install-paths.patch
-- Applying patch 0003-fix-openmp-debug.patch
-- Applying patch 0004-fix-dr-1734.patch
-- Applying patch 0005-fix-tools-path.patch
-- Applying patch 0007-fix-compiler-rt-install-path.patch
-- Applying patch 0009-fix-tools-install-path.patch
-- Applying patch 0010-fix-libffi.patch
-- Applying patch 0011-fix-libxml2.patch
-- Using source at C:/src/vcpkg/buildtrees/llvm/src/org-13.0.0-41c002f263.clean
-- Configuring x64-windows
CMake Warning at installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:487 (message):
The following variables are not used in CMakeLists.txt:
LLDB_ENABLE_CURSES
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:236 (vcpkg_cmake_configure)
scripts/ports.cmake:145 (include)
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j17
Working Directory: C:/src/vcpkg/buildtrees/llvm/x64-windows-dbg
See logs for more information:
C:\src\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:111 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
ports/llvm/portfile.cmake:261 (vcpkg_cmake_install)
scripts/ports.cmake:145 (include)
Error: Building package llvm:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles 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?template=report-package-build-failure.md&title=[llvm]+Build+error
including:
package: llvm[clang,compiler-rt,core,default-options,default-targets,disable-abi-breaking-checks,disable-assertions,disable-clang-static-analyzer,enable-bindings,enable-rtti,enable-terminfo,enable-threads,enable-zlib,lld,target-x86,tools]:x64-windows -> 13.0.0#1
vcpkg-tool version: 2022-02-24-7efe7f2b04912a7d674f86a406f9f2711c0221c6
vcpkg-scripts version: b726998b8 2022-02-28 (16 hours ago)
Additionally, attach any relevant sections from the log files above.
Requested Logs
I cannot attach the files you requested:
@FrankXie05 Sorry for the missing parts. But I have the same problem like @yotamat with config-x64-windows-err.log and install-x64-windows-dbg-err.log empty. install-x64-windows-rel-err.log doesn't exist, either.
Here's all my logs that are not empty in directory buildtrees/llvm. Hope these would help. patch-x64-windows-2-err.log patch-x64-windows-3-err.log patch-x64-windows-1-err.log patch-x64-windows-6-err.log stdout-x64-windows.log install-x64-windows-dbg-out.log config-x64-windows-out.log extract-err.log patch-x64-windows-5-err.log patch-x64-windows-0-err.log patch-x64-windows-4-err.log patch-x64-windows-7-err.log
@RookieTars Which version of CMake you use? I found you use CMake which installed inC:/Program Files/CMake/bin/cmake.exe.
and did you install English language package in Visual Studio Installer?
@yotamat Thank you for your commit, but this may not be a problem because it is not the same port, you can re-submit an issue to solve it, of course, if it can help you, it is the best.
@FrankXie05 My CMake version is 3.23.0-rc1.And I have installed English language package in Visual Studio Installer.
@RookieTars , @FrankXie05
Hi, I can update that my error is resolved after installing latest Visual Studio 2022. Original error occurs with Visual Studio 2017.
I don't have the machine available now so can't post exact compiler version; I will update this comment later.
@FrankXie05
What do you mean by not same port? I think the failing package LLVM-13.0.0-41c002f263 is exactly the same in both cases? Or am I misunderstanding?
@RookieTars I mean you maybe use cmake which not installed by VCPKG. "C:\Program Files\CMake\bin\cmake.exe"
Could you remove it and install port again?
@yotamat Sorry it's my problem, according your solution, there may be a problem with VS2017, or we should use VS
to install the official cmake
, currently using other methods to install (eg: python's pip install) will cause errors before compiling.
This issue was fixed yesterday. Build successed on my desktop.
Change label to port-bug
and fixed by #23334
Host Environment
To Reproduce Steps to reproduce the behavior:
./vcpkg install halide:x64-windows
Failure logs -Cut and paste the appropriate build messages from the console output.
-Please attach any additional failure logs mentioned in the console output. install-x64-windows-dbg-out.log
Additional context