[C++] Vcpkg fails on building abseil
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
I'm not sure whether the following error is bug .
I use Ubuntu 24.04 and vcpkg to build Arrow with the following command:
`cmake --preset ninja-debug-maximal -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DARROW_ZSTD_USE_SHARED=OFF ..`
I got the following error.
```
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: /snap/cmake/1445/bin/cmake --build . --config Debug --target install -- -v -j13
Working Directory: /home/arashandishgar/Desktop/arrow/cpp/vcpkg/buildtrees/abseil/x64-linux-dbg
See logs for more information:
/home/arashandishgar/Desktop/arrow/cpp/vcpkg/buildtrees/abseil/install-x64-linux-dbg-out.log
Call Stack (most recent call first):
/home/arashandishgar/Desktop/arrow/cpp/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
/home/arashandishgar/Desktop/arrow/cpp/build/vcpkg_installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
buildtrees/versioning_/versions/abseil/962a81319706d17c9e90bd0b873659ec7c75178a/portfile.cmake:31 (vcpkg_cmake_install)
scripts/ports.cmake:203 (include)
error: building abseil:x64-linux failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle abseil:x64-linux: 12 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+abseil
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[abseil]+Build+error+on+x64-linux&body=Copy%20issue%20body%20from%20%2Fhome%2Farashandishgar%2FDesktop%2Farrow%2Fcpp%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
You can also submit an issue by running (GitHub CLI must be installed):
/usr/bin/gh issue create -R microsoft/vcpkg --title "[abseil] Build failure on x64-linux" --body-file /home/arashandishgar/Desktop/arrow/cpp/build/vcpkg_installed/vcpkg/issue_body.md
-- Running vcpkg install - failed
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:938 (message):
vcpkg install failed. See logs for more information:
/home/arashandishgar/Desktop/arrow/cpp/build/vcpkg-manifest-install.log
Call Stack (most recent call first):
build/CMakeFiles/3.31.6/CMakeSystem.cmake:6 (include)
CMakeLists.txt:103 (project)
```
According to this [link](https://github.com/microsoft/vcpkg/issues/39945#issuecomment-2232603542), the problem can be solved by updating`builtin-baseline`.
I update` builtin-baseline ` value for my-self and the problem is solved
### Component(s)
Developer Tools, C++
Contributor guide
Assessment
This issue has not been assessed yet.