It's making a bunch of other projects to fail to build like glib
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install pcre
default@DESKTOP:/mnt/c/Users/user/Documents/code/project$ ~/code/vcpkg/vcpkg install pcre
Computing installation plan...
The following packages will be built and installed:
pcre[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: pcre:x64-linux
Building package pcre[core]:x64-linux...
Could not locate cached archive: /home/default/.cache/vcpkg/archives/19/194f6691fd9e9619a3ca4f5ac655ff7f84f4e195.zip
-- Using cached /home/default/code/vcpkg/downloads/pcre-8.44.zip
-- Cleaning sources at /home/default/code/vcpkg/buildtrees/pcre/src/pcre-8-2e1da0dae7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/default/code/vcpkg/downloads/pcre-8.44.zip
-- Applying patch pcre-8.44_suppress_cmake_and_compiler_warnings-errors.patch
-- Using source at /home/default/code/vcpkg/buildtrees/pcre/src/pcre-8-2e1da0dae7.clean
-- Configuring x64-linux-rel
-- Building x64-linux-rel
-- Fixing pkgconfig
-- Fixing pkgconfig - release
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre16.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre32.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcrecpp.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcreposix.pc
-- Fixing pkgconfig - debug
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre16.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre32.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcrecpp.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcreposix.pc
-- CHECK_LIB_pcre_DEBUG:CHECK_LIB_pcre_DEBUG-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:239 (message):
Library "pcre" 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:348 (vcpkg_fixup_pkgconfig_check_files)
ports/pcre/portfile.cmake:113 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)
Error: Building package pcre:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: pcre:x64-linux
Vcpkg version: 2020.06.15-unknownhash
Additionally, attach any relevant sections from the log files above.
Hi @illera88
Could you please remove openssl first and then rebuild this? Then send me the log. I cannot reproduce this on my local.
I did delete all the openssl installations I had. Here are all the logs which I checked but I couldn't find anything weird
pcre-logs.zip
Btw, I'm running this in a Debian WLS machine.
default@DESKTOP-Q4FDM2G:/mnt/c/Users/default.DESKTOP-Q4FDM2G$ ~/code/vcpkg/vcpkg list
capstone:x64-linux 4.0.2 Multi-architecture disassembly framework
capstone[arm64]:x64-linux Capstone disassembly support for ARM64
capstone[arm]:x64-linux Capstone disassembly support for ARM
capstone[x86]:x64-linux Capstone disassembly support for x86
gettext:x64-linux 0.19-15 The GNU gettext utilities are a set of tools tha...
libffi:x64-linux 3.3-3 Portable, high level programming interface to va...
libiconv:x64-linux 1.16#5 GNU Unicode text conversion
z3:x64-linux 4.8.8 Z3 is a theorem prover from Microsoft Research.
zlib:x64-linux 1.2.11#7 A compression library
default@DESKTOP-Q4FDM2G:/mnt/c/Users/default.DESKTOP-Q4FDM2G$ ~/code/vcpkg/vcpkg install pcre
Your feedback is important to improve Vcpkg! Please take 3 minutes to complete our survey by running: vcpkg contact --survey
Computing installation plan...
The following packages will be built and installed:
pcre[core]:x64-linux
Detecting compiler hash for triplet x64-linux...
Starting package 1/1: pcre:x64-linux
Building package pcre[core]:x64-linux...
Could not locate cached archive: /home/default/.cache/vcpkg/archives/19/194f6691fd9e9619a3ca4f5ac655ff7f84f4e195.zip
-- Using cached /home/default/code/vcpkg/downloads/pcre-8.44.zip
-- Cleaning sources at /home/default/code/vcpkg/buildtrees/pcre
/src/pcre-8-2e1da0dae7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/default/code/vcpkg/downloads/pcre-8.44.zip
-- Applying patch pcre-8.44_suppress_cmake_and_compiler_warnings-errors.patch
-- Using source at /home/default/code/vcpkg/buildtrees/pcre/src/pcre-8-2e1da0dae7.clean
-- Configuring x64-linux-rel
-- Building x64-linux-rel
-- Fixing pkgconfig
-- Fixing pkgconfig - release
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre16.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcre32.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcrecpp.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/lib/pkgconfig/libpcreposix.pc
-- Fixing pkgconfig - debug
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre16.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcre32.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcrecpp.pc
-- Checking file: /home/default/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/libpcreposix.pc
-- CHECK_LIB_pcre_DEBUG:CHECK_LIB_pcre_DEBUG-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:239 (message):
Library "pcre" 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:348 (vcpkg_fixup_pkgconfig_check_files)
ports/pcre/portfile.cmake:113 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:79 (include)
Error: Building package pcre:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: pcre:x64-linux
Vcpkg version: 2020.06.15-unknownhash
Additionally, attach any relevant sections from the log files above.
@Neumann-A Can you please take a look?
Thanks.
@illera88 Please provide the library names in _VCPKG_PATH/packages/pcre_x64-linux/lib_ and _VCPKG_PATH/packages/pcre_x64-linux/debug/lib_.
Thanks.
It seems that the release version libraries have been built fine but not the debug right?
default@DESKTOP-Q4FDM2G:/mnt/c/Users/default.DESKTOP-Q4FDM2G/Downloads$ ls ~/code/vcpkg/packages/pcre_x64-linux/lib/
libpcre16.a libpcre32.a libpcre.a libpcrecpp.a libpcreposix.a pkgconfig
default@DESKTOP-Q4FDM2G:/mnt/c/Users/default.DESKTOP-Q4FDM2G/Downloads$ ls ~/code/vcpkg/packages/pcre_x64-linux/debug/lib/
pkgconfig
default@DESKTOP-Q4FDM2G:/mnt/c/Users/default.DESKTOP-Q4FDM2G/Downloads$ ls ~/code/vcpkg/packages/pcre_x64-linux/debug/lib/pkgconfig/
libpcre16.pc libpcre32.pc libpcrecpp.pc libpcre.pc libpcreposix.pc
you probably have set(VCPKG_BUILD_TYPE release) set in the triplet? For me it works locally so some info here is missing
Indeed I had set(VCPKG_BUILD_TYPE release) in the triplet and I have verified that without that it compiles fine.
There is still a bug since it should not fail if you just want to build the release version.
Can you add set(VCPKG_BUILD_TYPE release) to your x64-linux.cmake triplet file and verify?
Thanks
@JackBoosY this is a port bug. The pcre port should not install pc files for debug if the buildtype is set to release only.
@Neumann-A I think vcpkg_fixup_pkgconfig should actively handle this situation.
No it is a failure in the port installing files which are not required. As such the failure is correct.
Most helpful comment
No it is a failure in the port installing files which are not required. As such the failure is correct.