From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada on old Macs Date: Fri, 31 Jan 2025 06:48:45 +0000 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 31 Jan 2025 07:48:46 +0100 (CET) Injection-Info: dont-email.me; posting-host="30bbd60e534abe3e65acfaaa5b317421"; logging-data="3572049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TR/Vu8YJuGHllgJVe5YZuCxjeFWQEdT8=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:v+mv1T6LKIA4DOxwf5V7k8ZZbbo= sha1:FaADRhFYEii8LqDpPCnNTpQfA+8= Xref: news.eternal-september.org comp.lang.ada:66524 List-Id: OrangeFish 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