-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
x86 Mac OS Sonoma Compile Error with XCode 15 and #4454
Comments
@KieranP we don't have access to Sonoma machines. Can you see if you can figure out what this new required option is and tomorrow when I'm back, I can point you to where it would be added and you can open a PR? |
The new option would go in link_exe in genexe.c |
@SeanTAllen From the
|
@SeanTAllen Looks like this might not just be a Sonoma issue, but introduced with the newest Xcode 15 release. If I compile my app with pony up to the failed ld command, then re-run the ld command with platform_version, it works:
|
Do you feel comfortable opening a PR for that? Without testing on Apple Silicon, I'd want to keep it to x86 only for now as we have CI for it and we can wait for confirmation on Apple Silicon. If it doesn't cause issues with our CI which is an earlier Xcode, we can leave as general. Otherwise, we'll need to make it conditional on more than CPU. |
can confirm on Ventura too. Re-running ld with
interesting reference found: the "old" linker behaviour can be switched back to: via blender |
@d-led are you comfortable with opening a PR to try out the "classic"? option to see if works in CI (assuming it works for you locally). CI has an older xcode so hopefully we can work across xcode versions. |
@SeanTAllen not sure I'll manage it in a timely fashion, so if anyone has a ready environment, don't wait for me. Will read genexe.c a bit while libs build. Upd: |
I guess, the impact is not trivial. E.g. depending on which version of |
@d-led if you can open a PR that fixes for you, CI will catch if it isn't backwards compatible. That will eliminate any guessing. |
|
It appears -ld_classic results in a link error on earlier xcode versions. |
at least builds and links. what is a reasonable sdk version for us to be putting in? |
unfortunately, I don't know. Perhaps, go with that proposal? |
I'm having trouble reproducing this on the M1 Mac mini. I am on Sonoma (version 14) with version 15 of XCode CLI tools installed: > pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep version
> sw_vers
Building a Pony program succeeds, including the link step, which I can print by increasing verbosity: > build/debug/ponyc examples/ring --verbose=3
|
I've updated the issue title to note that this is an X86 specific issue and that Apple Silicon is unaffected. |
@SeanTAllen I can confirm that this is now resolved in 0.57.1 |
Upgraded from Ventura to Sonoma. Now getting the following error trying to compile code that used to work:
The text was updated successfully, but these errors were encountered: