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

Support for aarch64-apple-ios-sim target #160

Open
NOBLES5E opened this issue Oct 15, 2024 · 6 comments
Open

Support for aarch64-apple-ios-sim target #160

NOBLES5E opened this issue Oct 15, 2024 · 6 comments

Comments

@NOBLES5E
Copy link

Hello cctools-port maintainers,

I'm trying to use cctools-port with the aarch64-apple-ios-sim target, which is used for the iOS Simulator running on ARM64 Macs (M1/M2). However, I'm encountering an error during configuration.

Current behavior:
When running the configure script with aarch64-apple-ios-sim as the target, I get the following error:

$ ./configure --prefix=/opt/cctools --with-libtapi=/opt/cctools --with-libdispatch=/opt/cctools --with-libblocksruntime=/opt/cctools --target=aarch64-apple-ios-sim

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... Invalid configuration 'aarch64-apple-ios-sim': Kernel 'ios' not known to work with OS 'sim'.
configure: error: /bin/bash ./config.sub aarch64-apple-ios-sim failed

Questions:

  1. Does cctools-port currently support the aarch64-apple-ios-sim target?
  2. If not, are there plans to add support for this target in the future?
  3. Is there a workaround or alternative configuration I should use for building tools for the iOS Simulator on ARM64 Macs?

Thank you for your time and assistance!

@Un1q32
Copy link
Contributor

Un1q32 commented Oct 15, 2024

I think this is an issue with autoconf. The target only affects the names of the installed binaries, so I would recommend just not specifying a target and then renaming the binaries manually after.

@NOBLES5E
Copy link
Author

Thanks for your quick response. It seems that if I skip the target, during compilation I got an ld: building for iOS, but linking in object file built for iOS Simulator error.

@Un1q32
Copy link
Contributor

Un1q32 commented Oct 16, 2024

Did you pass -target arm64-apple-ios-simulator to clang? ios-sim isn't a valid target according to clang.

@NOBLES5E
Copy link
Author

It worked! Thanks for helping out! Feel free to close the issue if there's no plan to "fix" the autoconf

@Un1q32
Copy link
Contributor

Un1q32 commented Oct 16, 2024

It worked! Thanks for helping out! Feel free to close the issue if there's no plan to "fix" the autoconf

I can't close it, I'm not the repo owner, I just watch it.

@Un1q32
Copy link
Contributor

Un1q32 commented Oct 16, 2024

I think fixing autoconf would require submitting a patch to the autoconf mailing list adding support for ios-simulator targets.

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

No branches or pull requests

2 participants