Re: Ada on old Macs

Liste des GroupesRevenir à cl ada 
Sujet : Re: Ada on old Macs
De : simon (at) *nospam* pushface.org (Simon Wright)
Groupes : comp.lang.ada
Date : 31. Jan 2025, 07:48:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <lyo6zn4gxe.fsf@MacBookAir.lan>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13)
OrangeFish <OrangeFish@invalid.invalid> writes:

On 2025-01-04 16:01, Marius Alves wrote:

Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
>
xcrun tells you where the compiler+libraries are.  (gcc actually
invokes the LLVM compiler.)  It should have been installed with the
Developer tools.
>
What version of Xcode are you running?

I don't have an elderly Mac to hand, but here I don't have
/Library/Developer/CommandLineTools/usr/bin/xcrun. It's in /usr/bin/.

GCC does invoke clang, but only to compile generated assembly.

When building GCC for Darwin, it has to be told where to find the
Software Development Kit (SDK); could be in Xcode or in CommandLineTools
(or, with my or Alire's current builds, either). It sounds as though
Marius's compiler was built to look in the CLTs, and either they aren't
installed or they're broken.

"xcrun --show-sdk-path" tells you where to find the installed SDK. If
there isn't one, or it's in /Applications/Xcode.app, you need to install
the CLTs. If it's in /Library/Developer/CommandLineTools/, you need to
clean it out and then install the CLTs.

Cleaning out the CLTs: make a backup and then

  sudo rm -rf /Library/Developer/CommandLineTools

Installing the CLTs:

  sudo xcode-select --install


Date Sujet#  Auteur
4 Jan 25 * Ada on old Macs8Marius Alves
4 Jan 25 +- Re: Ada on old Macs1Lawrence D'Oliveiro
5 Jan 25 +* Re: Ada on old Macs2Marius Alves
5 Jan 25 i`- Re: Ada on old Macs1Simon Wright
5 Jan 25 +* Re: Ada on old Macs2OrangeFish
31 Jan 25 i`- Re: Ada on old Macs1Simon Wright
7 Jan 25 +- Re: Ada on old Macs1Simon Wright
24 Jan 25 `- Re: Ada on old Macs1Blady

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal