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-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none 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: GNAT linking and macOS Date: Sat, 30 Sep 2023 15:20:22 +0100 Organization: A noiseless patient Spider Message-ID: References: <0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="7d3274ce33089df2409f384514a28a04"; logging-data="985846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BUfXu4rDk4A8V4ggKPlpN/mW5irjyqec=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:aTZ3J0rRL4ss6PLAK/03bB+iC4E= sha1:uouH7cf9Mjf+I1gmGAqxGRZxbss= Xref: news.eternal-september.org comp.lang.ada:65759 List-Id: "hn...@yahoo.de" writes: > What exactly is meant by "Using GNAT 12.2.0"? I put gcc-13.2.0 in ~/.zshrc. > Then I got Could not locate executable on path: gprbuild. > What do i miss? First, I asked above where you got GCC 13.2.0 from; you certainly didn't get it from one of my builds. If you got it via Homebrew, then be aware that homebrew's gcc *does* *not* *support* *Ada* (or gprbuild). There are two ways I know of for getting hold of GNAT and gprbuild: (1) go to https://alire.ada.dev/docs/#introduction and follow the steps at 'alr for macOS', then 'First steps' ... This provides GCC 12.2.0 for x86_64 (intel), which runs on an M1/M2 mac under Rosetta. (2) go to my release page at https://github.com/simonjwright/distributing-gcc/releases and download for Intel: https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.1.0-x86_64 for M1/M2: https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.1.0-aarch64-2 (in both cases, the actual download is found under Assets at the bottom of the page; but please read the release notes for what's included and how to install).