ponyc: x86 Mac OS Sonoma Compile Error with XCode 15 and
Upgraded from Ventura to Sonoma. Now getting the following error trying to compile code that used to work:
ponyc -d -b play
Building builtin -> /usr/local/Cellar/ponyc/0.56.2/packages/builtin
Building . -> /Users/kieran/Work/gol_implementations/pony
Building collections -> /usr/local/Cellar/ponyc/0.56.2/packages/collections
Building pony_test -> /usr/local/Cellar/ponyc/0.56.2/packages/pony_test
Building time -> /usr/local/Cellar/ponyc/0.56.2/packages/time
Building random -> /usr/local/Cellar/ponyc/0.56.2/packages/random
Building itertools -> /usr/local/Cellar/ponyc/0.56.2/packages/itertools
Building format -> /usr/local/Cellar/ponyc/0.56.2/packages/format
Generating
Reachability
Selector painting
Data prototypes
Data types
Function prototypes
Functions
Descriptors
Writing ./play.o
Linking ./play
ld: Missing -platform_version option
Error:
unable to link: ld -execute -arch x86_64 -o ./play ./play.o -L"/usr/local/Cellar/ponyc/0.56.2/bin/" -L"/usr/local/Cellar/ponyc/0.56.2/bin/../lib/native" -L"/usr/local/Cellar/ponyc/0.56.2/bin/../packages" -L"/usr/local/lib" -lponyrt -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 21 (13 by maintainers)
@d-led I’m not getting any warnings in the CI logs for the change like this: https://github.com/ponylang/ponyc/pull/4466. Can you check with that change if you get the “ld: warning: no platform load command found in ‘/Users/…my.o’, assuming: macOS`” warning?
It appears -ld_classic results in a link error on earlier xcode versions.
@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.