Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <lyo6zn4gxe.fsf@MacBookAir.lan>
Deutsch   English   Français   Italiano  
<lyo6zn4gxe.fsf@MacBookAir.lan>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Simon Wright <simon@pushface.org>
Newsgroups: comp.lang.ada
Subject: Re: Ada on old Macs
Date: Fri, 31 Jan 2025 06:48:45 +0000
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <lyo6zn4gxe.fsf@MacBookAir.lan>
References: <vlc7jq$k4c5$1@dont-email.me> <vlevq0$17pe5$1@dont-email.me>
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=

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