Open gracicot opened 3 weeks ago
Is this really an issue? From the error message, I suppose it also happens with the official binaries and it has to be set by the user?
@Guekka hmm, this is a good point. Maybe it is intended behaviour then. However, in the case of x86, I think vcpkg will download binaries meant for a normal linux distribution and those binaries will fail to run. If that's the case, then we need to ensure vcpkg will always pick system binaries. I'll try to find some time to investigate.
AFAIK, this is something that happens normally as well (but I might be wrong, I can't remember having tested it). I think it's something to keep in mind for #330859, but I'm not sure about setting it in the wrapper. If we do set it, we should at least provide some sort of option to opt back to default behaviour.
However, I don't really see how you would use vcpkg if you don't set it? Maybe we should look through some of the vcpkg history, to see if there's a good reason they don't make it the default when cross compiling?
Describe the bug
A clear and concise description of what the bug is.
Steps To Reproduce
Steps to reproduce the behavior:
vcpkg
Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, ppc64le and riscv platforms.
Expected behavior
No error should happen, the help output should be shown.
Additional context
Suspected to be since the last refactor of the wrapper script (#323866), but could have been a problem since before that.
I think this environment variable should always be set from the wrapper script unconditionally.
Notify maintainers
@Guekka @h7x4 @gracicot
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.