From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada 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: Mon, 26 Jun 2023 20:48:39 +0100 Organization: A noiseless patient Spider Message-ID: References: <266fe78e-5e0e-4b2e-afc2-b1bf6771b082n@googlegroups.com> <87v8fb1acr.fsf@nosuchdomain.example.com> <1f88aebf-f1f2-46fa-b66a-4e605d7ff202n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: dont-email.me; posting-host="0d50d34cabf1ca3744b7d4bdfd682c8a"; logging-data="1122146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19myPTdasa1D15PQuyhtbAAESggrbV4u54=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:zV1eigfsujIM5imZxJad/LoF1iY= sha1:xTxPLrXqXQ5yCz2hORNuR/iy62M= Xref: news.eternal-september.org comp.lang.ada:65352 List-Id: Jere writes: > On Sunday, June 25, 2023 at 5:49:11 PM UTC-4, Keith Thompson wrote: >> Simon Wright writes: >> [...] >> > 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 ada.sequential_io.ads >> [fixed typo] >> > 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 '.'). >> Which raises a question: Why does GNAT still use crunched filenames? It >> probably makes sense to continue to support them (does anyone use GNAT >> on MS-DOS?), but I wouldn't think it would be difficult to use full file >> names on the vast majority of systems that support them. It's not a >> huge deal, but using full file names where possible would be less >> annoying. > > Unless they changed how the GNAT compiler works in the last few years, > then my guess is inertia > to do that. Right before the pandemic hit, I had the neat idea of > doing my own bare metal > runtime and to use normal uncrunched names. The RTS compiled just > fine doing that. However, > when I tried to use the RTS to build a full fledged program, it failed > to find the package in the RTS. > I don't recall if it failed at compile time or link time, but > crunching the names and recompiling the > RTS fixed the issue. So something in their compiler requires the > crunched names, or if they have > since changed that, used to require it. The package in the compiler that deals with crunched names is Rtsfind, https://github.com/gcc-mirror/gcc/blob/master/gcc/ada/rtsfind.ads