Skip to content
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_FORCE_SYSTEM_BINARIES needs to be set during vcpkg bootstrap #15

Closed
0xg0nz0 opened this issue Jan 14, 2024 · 6 comments · Fixed by #16 or #20
Closed

VCPKG_FORCE_SYSTEM_BINARIES needs to be set during vcpkg bootstrap #15

0xg0nz0 opened this issue Jan 14, 2024 · 6 comments · Fixed by #16 or #20

Comments

@0xg0nz0
Copy link

0xg0nz0 commented Jan 14, 2024

On a Mac M1 (arm64) the feature build fails because VCPKG_FORCE_SYSTEM_BINARIES has not been set.

This one-line change fixed it:

VCPKG_FORCE_SYSTEM_BINARIES=1 "${VCPKG_ROOT}"/bootstrap-vcpkg.sh

which I brought into my dev container locally as a workaround, but it would be nice to have it fixed at source.

@msclock
Copy link
Owner

msclock commented Apr 10, 2024

On a Mac M1 (arm64) the feature build fails because VCPKG_FORCE_SYSTEM_BINARIES has not been set.

This one-line change fixed it:

VCPKG_FORCE_SYSTEM_BINARIES=1 "${VCPKG_ROOT}"/bootstrap-vcpkg.sh

which I brought into my dev container locally as a workaround, but it would be nice to have it fixed at source.

@0xg0nz0 Thanks for your suggestion. I will dig it and seek for a solution later.

@0xg0nz0
Copy link
Author

0xg0nz0 commented Apr 20, 2024

@msclock this appears to be still a problem, but only for vcpkg-test linking (is that even needed?):

  [2024-04-20T14:57:03.427Z] #42 1434.2 [216/216] Linking CXX executable vcpkg-test
  [2024-04-20T14:57:03.535Z] #42 1434.3 Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, ppc64le and riscv platforms.

FYI, full failed CI build when I remove my workaround to export VCPKG_FORCE_SYSTEM_BINARIES=1:

https://github.com/iggy-rs/iggy-cpp-client/actions/runs/8765694062/job/24056959525

@msclock msclock reopened this Apr 21, 2024
@0xg0nz0
Copy link
Author

0xg0nz0 commented Apr 21, 2024

Reading the relevant scripts, I have a hunch this line in main.sh is the issue:

"${VCPKG_ROOT}"/bootstrap-vcpkg.sh

The failure is happening during the build of the vcpkg binary, and it looks like you added VCPKG_FORCE_SYSTEM_BINARIES=1 in your updaterc function but not here. It may be that this has not yet taken effect by the time you call bootstrap-vcpkg.sh. Maybe try this?

VCPKG_FORCE_SYSTEM_BINARIES=1 "${VCPKG_ROOT}"/bootstrap-vcpkg.sh

@msclock
Copy link
Owner

msclock commented Apr 22, 2024

@0xg0nz0 Ah, I have missed it. And now it works after #21 and #22 merged.

@0xg0nz0
Copy link
Author

0xg0nz0 commented Apr 22, 2024

Thanks @msclock ! You can close this, I can confirm it's working my end with the latest dev container build. Thanks for contributing this feature!

@msclock
Copy link
Owner

msclock commented Apr 23, 2024

you're welcome:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants