-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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_find_acquire_program does not respect VCPKG_FORCE_SYSTEM_BINARIES for shared dependencies like Ninja #21482
Comments
Please provide the out log /home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-out.log. |
@JackBoosY /home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-out.log
|
I think ninja is not a arm-build version in /home/user1/vcpkg/downloads/tools/ninja/1.10.2-linux:
But I don't know how to repair. |
I think I found the reason: my default ninja in the system(/usr/bin/ninja) installed by apt is 1.8.x while this package requires>1.10, vcpkg choose to use its tools installed in Maybe we need to be careful if vcpkg sometimes downloads software with the wrong platform architecture。Maybe it is a bug of vcpkg. |
vcpkg uses ninja release version which provided by https://github.com/ninja-build/ninja. |
It is a x86-64 executable while on an arm-linux |
cc @BillyONeal, should we handle this issue and how can we handle it? |
It's less a bug and more that vcpkg never had an architecture selection feature for dependencies like this at all. First class support for arm64-linux is a thing we want to do but do not have right now. |
I have the same issue, here is the work around for that. Host Environment
Result
|
The ninja upstream should provide arm-linux pre-build binary first. |
I ran into the same issue when building pkgconf on armhf Ubuntu 20.04. |
I agree this is ultimately the problem. It won't fix the case where there's 1.8 available and the port needs 1.10, but we should at least get it to the point for that to happen. |
If we want to use the system library in these cmake scripts, we should first unfilter the environment variable |
Rather than passing through the environment variable, the right thing is to power |
faced the same issue on 32-bit windows (prebuilt ninja is available only for x64), applying the same fix as provided by @AlexLeungZ helped |
there's a CI job for linux/arm64 upstream now, so I presume new upstreams releases will have binaries available. |
I have the same issue as stated in headline. However discussion here drifted very much into Ninja, so tell me if I should create a new Issue. My example ist the package/port nanopb that has On the build agent we have python installed (but an older version) so vcpkg decides to download it: In my opinion this should not happen because I set A quick look at the code ( |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
keep open. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Host Environment
To Reproduce
I tried to install qt5-base with manifest file vcpkg.json on arm-linux platform (Nvidia Jetson Nx),but failed to install
harfbuzz
(I think it is a dep of qt5?)Steps to reproduce the behavior:
./vcpkg install harfbuzz
Failure logs
/home/user1/vcpkg/buildtrees/harfbuzz/config-arm64-linux-dbg-err.log
The text was updated successfully, but these errors were encountered: