-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcpkg_fixup_pkgconfig failed to replace the string when root path contains Upper charactor on windows #12709
Comments
cc @Neumann-A |
Release worked so the issue should be not the path but somewhere else. |
|
ah wait that is with #12709 |
@Neumann-A I think it's a vcpkg bug and we shouldn't fix it in other ways. |
I am unable to repro this failure on my local machine |
@Neumann-A It's hard to reproduce. |
It should has some issue somewhere else, I noticed same issue #12788 reported, it might not related to the Upper case. For me, After I changed it to lowercase, everything works. I will test Jack's PR. |
The vcpkg root returns with lowercase, that cause the string replace failed here. Test with PR #12774, it doesn't work. PS F:\vcpkg\test7\vcpkg> ./vcpkg install zlib --debug When debug vcpkg with VS IDE, it returns correct path: |
So my take away now is that this is a bug in |
Test with PR #13144, it works. |
This issue would be fixed by PR #13537 |
The PR #13537 has been merged. |
vcpkg_fixup_pkgconfig failed to replace the string when the path contains Upper character on windows.
Repro steps:
Failures:
Starting package 1/1: zlib:x64-windows
Building package zlib[core]:x64-windows...
-- Using cached F:/vcpkg/test7/vcpkg/downloads/zlib1211.tar.gz
-- Cleaning sources at F:/vcpkg/test7/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/test7/vcpkg/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Using source at F:/vcpkg/test7/vcpkg/buildtrees/zlib/src/1.2.11-deec42f53b.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Fixing pkgconfig
-- Acquiring MSYS Packages...
-- Acquiring MSYS Packages... OK
-- Fixing pkgconfig - release
-- Checking file: F:/vcpkg/test7/vcpkg/packages/zlib_x64-windows/lib/pkgconfig/zlib.pc
-- Fixing pkgconfig - debug
-- Checking file: F:/vcpkg/test7/vcpkg/packages/zlib_x64-windows/debug/lib/pkgconfig/zlib.pc
-- CHECK_LIB_zlibd_DEBUG:CHECK_LIB_zlibd_DEBUG-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:239 (message):
Library "zlibd" was not found! If it is a system library use the
SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
correct the *.pc file
Call Stack (most recent call first):
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:351 (vcpkg_fixup_pkgconfig_check_files)
ports/zlib/portfile.cmake:46 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)
Error: Building package zlib:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with
.\vcpkg update
, thensubmit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: zlib:x64-windows
Vcpkg version: 2020.06.15-nohash
More info:
The text was updated successfully, but these errors were encountered: