Skip to content

[vcpkg_fixup_pkgconfig] build failure with "Could not find PKGCONFIG using the following names: pkg-config" #12565

@StarGate-One

Description

@StarGate-One

Host Environment

  • OS: Microsoft Windows [Version 10.0.19041.388]
  • Compiler:
    • Visual Studio 2017 Version: 15.9.25 VS Tools Version: 14.16.27023
    • Visual Studio 2019 Version: 16.6.5 VS Tools Version: 14.26.28801

To Reproduce
Steps to reproduce the behavior:
After latest update to vcpkg #11550 Commit 458c20e

set VCPKG_DEFAULT_TRIPLET=x64-windows

  1. ./vcpkg upgrade --no-dry-run

  2. ./vcpkg install bzip2

Failure logs

  • Cut and past the appropriate build messages from the console output.
  1. vcpkg upgrade console log
    The following packages will be rebuilt:
    * bzip2[core]:x64-windows
    Additional packages (*) will be modified to complete this operation.
    Starting package 1/2: bzip2:x64-windows
    Removing package bzip2:x64-windows...
    Removing package bzip2:x64-windows... done
    Elapsed time for package bzip2:x64-windows: 6.266 ms
    -- Using cached D:/Git/vcpkg.downloads/bzip2-1.0.6.tar.gz
    -- Cleaning sources at D:/Git/vs2019.test/buildtrees/bzip2/src/1.0.6-8838f21f8e.clean. Use --editable to skip cleaning for the packages you specify.
    -- Extracting source D:/Git/vcpkg.downloads/bzip2-1.0.6.tar.gz
    -- Applying patch fix-import-export-macros.patch
    -- Applying patch fix-windows-include.patch
    -- Using source at D:/Git/vs2019.test/buildtrees/bzip2/src/1.0.6-8838f21f8e.clean
    -- Configuring x64-windows
    -- Building x64-windows-dbg
    -- Building x64-windows-rel
    -- Fixing pkgconfig
    CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:279 (find_program):
    Could not find PKGCONFIG using the following names: pkg-config
    Call Stack (most recent call first):
    ports/bzip2/portfile.cmake:51 (vcpkg_fixup_pkgconfig)
    scripts/ports.cmake:79 (include)

Error: Building package bzip2:x64-windows failed with: BUILD_FAILED
Elapsed time for package bzip2:x64-windows: 2.98 s

Total elapsed time: 4.544 s

RESULTS
bzip2:x64-windows: vcpkg::Commands::Build::BuildResult_NULLVALUE: 6.266 ms
bzip2:x64-windows: BUILD_FAILED: 2.98 s

SUMMARY
vcpkg::Commands::Build::BuildResult_NULLVALUE: 1
SUCCEEDED: 0
BUILD_FAILED: 1
POST_BUILD_CHECKS_FAILED: 0
FILE_CONFLICTS: 0
CASCADED_DUE_TO_MISSING_DEPENDENCIES: 0
EXCLUDED: 0

  1. vcpkg instal bzip2:x64-windows
    Computing installation plan...
    The following packages will be built and installed:
    bzip2[core]:x64-windows
    Detecting compiler hash for triplet x64-windows...
    Starting package 1/1: bzip2:x64-windows
    Building package bzip2[core]:x64-windows...
    -- Using cached D:/Git/vcpkg.downloads/bzip2-1.0.6.tar.gz
    -- Extracting source D:/Git/vcpkg.downloads/bzip2-1.0.6.tar.gz
    -- Applying patch fix-import-export-macros.patch
    -- Applying patch fix-windows-include.patch
    -- Using source at D:/Git/vs2017.test/buildtrees/bzip2/src/1.0.6-8838f21f8e.clean
    -- Configuring x64-windows
    -- Building x64-windows-dbg
    -- Building x64-windows-rel
    -- Fixing pkgconfig
    CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:279 (find_program):
    Could not find PKGCONFIG using the following names: pkg-config
    Call Stack (most recent call first):
    ports/bzip2/portfile.cmake:51 (vcpkg_fixup_pkgconfig)
    scripts/ports.cmake:79 (include)

Error: Building package bzip2:x64-windows 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: bzip2:x64-windows
Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.

  • Please attach any additional failure logs mentioned in the console output.
    No failure in logs, appears to compile/link properly, just fails to install due to error listed.

Additional context

Metadata

Metadata

Labels

category:tool-updateThe issue is with build tool or build script, which requires update or should be executed correctly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions