pkg-config search paths should include /opt/homebrew when building on macOS arm #29386
AbdulAbCellera
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
@AbdulAbCellera The latest installation path |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To start with here is
berw
's docs about the root cause of the issue on macOS -- https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-siliconI was cross-compiling for macOS x64 on macOS arm64 with host triplet and the target triplet was set correctly. I got the error that pkg-config is not installed. However, I have the pkg installed and in the path.
The issue is that brew installs pkgs in a different location on the macOS arm than macOS intel, and that is different than where vcpkg looks for pkg-config binary.
I looked at the
vcpkg/scripts/cmake/vcpkg_find_acquire_program.cmake
Line 549 in a548ef5
Not sure how these paths can be modified to accommodate both of the CPUs. Also, for cross-compiling, we might want to know if this is needed by the host or the pkg's port.
As a quick fix is there a way to override this vcpkg function with a fix so I can use it for now?
===============================================================
Package: abseil[core]:x64-osx-custom -> 20220623.1
Host Environment
vcpkg-scripts version: f14984a 2023-01-09 (3 weeks ago)
To Reproduce
vcpkg install
Failure logs
Additional context
vcpkg.json
Beta Was this translation helpful? Give feedback.
All reactions