-
Notifications
You must be signed in to change notification settings - Fork 168
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
Does cctools generate/support iPhone Simulator arm64 arch #102
Comments
iPhone Simulator is currently not supported. Do you depend on Simulator support? I might be able to get it working. |
@tpoechtrager Thanks for the response. Thanks a lot. |
@tpoechtrager I have the same issue while trying to build |
@naithar To be honest, I don't know. I can't do any testing either. Maybe it's just a warning and we have to wait for the next Could you try building with Apple's Compiler instead of Mainline LLVM? https://github.com/apple/llvm-project |
I will try, thanks. But I don't have any experience in this, so it might take a while. Could the problem be related to the way target platform gets determined in some way? Using arm64 arch for simulator platform seems to force device platform. Is there a way to trace where target platform gets incorrectly defined? |
Yes, absolutely possible. You could start with adding |
For which command should I use this flag? For Edit: |
The compiler is (probably) doing something wrong not the linker. You must examine the compiler. Add For example:
|
We have to wait for a resolution to tpoechtrager/cctools-port#102 or try a custom LLVM build with the proposed patch in that issue.
We have to wait for a resolution to tpoechtrager/cctools-port#102 or try a custom LLVM build with the proposed patch in that issue.
For the record, as of Apple Clang based on LLVM 15.0.0, I seem to be able to build iPhoneSimulator for arm64 (using SDK 16.4 from Xcode 14.3.1). I haven't tried with upstream LLVM 15.0.0. Edit: It builds, but doesn't work it seems. Building an app for iOS simulator with our Godot library built with ioscross, we get:
|
Are you using the correct SDK and correct target triple? According to ChatGPT it should be something like |
I can build for arm64 iOS simulator just fine with upstream clang 16.0.6 on Linux, the ChatGPT target triple is correct except for the arch, which should be arm64 as they are building for arm64. |
I'm using the correct SDK, but I'm not sure I'm using the target triple correctly. I was using the default in
Now reading you I see that I might need to patch But I can't seem to pass a target triple as suggested for the cctools-port build:
It seems my Clang install (from latest osxcross with Apple Clang 15.0.0) doesn't recognize For the record, this is my current setup:
|
It's actually autogen that doesn't recognize the architecture. The best way to work around this would be to use Or use |
Hi,
We are facing a problem with the library generated by cctools as it's doesn't contain arm64 simulator architecture, which is expected by simulators on the M1 mac machine.
Does cctools generate iPhone simulator arm64 arch slice for a library?
Here is the error:
building for iOS Simulator, but linking in object file (libxyz.a(filename.o)) built for iOS
Thanks,
Dayananda
The text was updated successfully, but these errors were encountered: