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

Building Boost for ARM iOS simulator builds for iPhone #27016

Closed
Stannieman opened this issue Sep 28, 2022 · 1 comment
Closed

Building Boost for ARM iOS simulator builds for iPhone #27016

Stannieman opened this issue Sep 28, 2022 · 1 comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@Stannieman
Copy link
Contributor

Describe the bug
When building Boost for the ARM iOS simulator it still builds for iPhone.

Environment

  • OS: macOS Monterey (12.6)
  • Compiler: Apple Clang 13.1.6

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom triplet that looks like this
set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME iOS)
set(VCPKG_OSX_SYSROOT iphonesimulator)
  1. Install Boost in your project.
  2. The Boost static libs are built for iphoneos.
  3. The Boost libs cannot be linked with your own lib because Boost is built for iphoneos and your code is built for iphonesimulator.

Expected behavior
The Boost static libs are built for iphonesimulator and linking works.

Failure logs
ld: in /somethingSomething/build/ios-simulator-arm64-debug/vcpkg_installed/arm64-iossimulator13.7/debug/lib/libboost_thread.a(thread.o), building for iOS Simulator, but linking in object file built for iOS

Additional context
Other libs build correctly for the ARM64 simulator so I think the triplet is correct.
I suspect that VCPKG_OSX_SYSROOT is not passed to b2 or that b2 ignores it.
Unfortunately I have zero experience with b2 so I hope someone is able to give some hints.

@LilyWangLL LilyWangLL added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Sep 29, 2022
@MonicaLiu0311
Copy link
Contributor

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

3 participants