Cannot build simplest alire program in MacOS #1471
-
Greetings All I've created an example using alr init (the simplest possible with just a null; in the program), named mycrate in the Temp directory. Here is the result of alr build on that trivial program. thanks in advance ⓘ Building mycrate/mycrate.gpr... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Our expert on macOS is @simonjwright , he might have the answer to this. Could you post the output of |
Beta Was this translation helpful? Give feedback.
-
The problem is that, with Sonoma, Apple have provided an updated Xcode version 15.0 (and the Command Line Tools (CLTs); @Darce42, please let us know which you’re using) which breaks the linking process. You could confirm this by this command, which should work:
Unfortunately, you can’t reinstall the Command Line Tools version 14.3 on Sonoma, because it’s "too early". The same probably applies to Xcode. What I could do is provide you with the
|
Beta Was this translation helpful? Give feedback.
-
Thank you for that suggestion. Simon has indeed replied with a comprehensive answer.
Darce
… On 6 Oct 2023, at 23:34, Alejandro R Mosteo ***@***.***> wrote:
Our expert on macOS is @simonjwright <https://github.com/simonjwright> , he might have the answer to this.
Could you post the output of alr version to see if anything rings wrong?
—
Reply to this email directly, view it on GitHub <#1471 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BDCPBX2PM5HTSPSOHFCY25TX573FBAVCNFSM6AAAAAA5VYEKZGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEMBZGI2DE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much Simon for that prompt and accurate answer.
My alire version is 1.2.2 with gnat_native=12.2.1 and gprbuild=22.0.1and Xcode is version 15.
I’m not keen to try any hacks which may work and which may break other tools - thank you for that warning.
Hopefully the formal fix will come in due course.
I tried your suggestion:
alr build -- -largs -Wl,-ld_classic
and I have been able to build and run a couple of programs successfully.
Best wishes
Darce
… On 7 Oct 2023, at 02:31, Simon Wright ***@***.***> wrote:
The problem is that, with Sonoma. Apple have provided an updated Xcode version 15.0 (and the Command Line Tools (CLTs); @Darce42, please let us know which you’re using) which breaks the linking process.
You could confirm this by this command, which should work:
$ alr build -- -largs -Wl,-ld_classic
Unfortunately, you can’t reinstall the Command Line Tools version 14.3 on Sonoma, because it’s "too early". The same probably applies to Xcode.
What I could do is provide you with the ld binary from Version 14.3, with instructions on how to install it; but
• I’m not sure what Apple would have to say about that, though both you and I are licensed to use it
• I use the CLTs, so if you’re using Xcode I’d be taking an (informed!) guess as to where the replacement ld would need to go
• this might cause difficulties doing software development using Apple tools (clang, Swift...)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
The problem is that, with Sonoma, Apple have provided an updated Xcode version 15.0 (and the Command Line Tools (CLTs); @Darce42, please let us know which you’re using) which breaks the linking process.
You could confirm this by this command, which should work:
Unfortunately, you can’t reinstall the Command Line Tools version 14.3 on Sonoma, because it’s "too early". The same probably applies to Xcode.
What I could do is provide you with the
ld
binary from Version 14.3, with instructions on how to install it; but