From: Simon Wright <simon@pushface.org>
Subject: Re: I have gnat 13.1.0 on my M1 Mac; I'd like to have my own Ada+GNAT *.ad[sb] library files, where are they?
Date: Sun, 25 Jun 2023 11:15:49 +0100 [thread overview]
Message-ID: <ly1qhzhmp6.fsf@pushface.org> (raw)
In-Reply-To: 266fe78e-5e0e-4b2e-afc2-b1bf6771b082n@googlegroups.com
Kenneth Wolcott <kennethwolcott@gmail.com> writes:
> I have gnat 13.1.0 on my M1 Mac;
>
> (thank you, Simon! <GRIN>)
:bow:
> I'd like to have my own Ada+GNAT *.ad[sb] library files, where are they?
If you just want to insect them, see below: if you want to alter them,
that'd be a bit tricker. As far as I can remember, GNAT Pro releases
provide for rebuilding the runtime, but the FSF builds don't.
> I can find the Ada libraries (*.ad[sb]) but it sometimes is hard to
> (reliably) find all of the GNAT Ada libraries in external
> documentation.
They're in {prefix}/lib/gcc/{target}/{release}/adainclude/ - i.e., in
your case (unless you've moved the install)
/opt/gcc-13.1.0-aarch64/lib/gcc/aarch64-apple-darwin21/13.1.0/adainclude/
But you say you know that. I wonder whether it's the crunched filenames
that are confusing? (a legacy of the days when DOS 8.3 filenames were
required for a large part of GNAT's target audience). You can find the
crunched filename for a package using gnatkr (gnat krunch):
$ gnatkr gnatkr ada.sequential_io.ads
a-sequio.ads
(you don't actually need whatever's after the final period to be the
actual file extension: you could use '.open' or just '.').
next prev parent reply other threads:[~2023-06-25 10:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-25 4:37 I have gnat 13.1.0 on my M1 Mac; I'd like to have my own Ada+GNAT *.ad[sb] library files, where are they? Kenneth Wolcott
2023-06-25 5:23 ` Kenneth Wolcott
2023-06-25 10:15 ` Simon Wright [this message]
2023-06-25 15:28 ` Simon Wright
2023-06-25 17:00 ` Kenneth Wolcott
2023-06-25 21:49 ` Keith Thompson
2023-06-26 18:56 ` Jere
2023-06-26 19:35 ` Kenneth Wolcott
2023-06-26 19:48 ` Simon Wright
2023-06-26 20:00 ` Kenneth Wolcott
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox