From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANN: GCC 9.1.0 for macOS Date: Tue, 21 May 2019 08:53:25 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="2a57a09140910fc57e1b44da630f3017"; logging-data="13911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YNoK3S+4boISMdJbkrhXPr1U4eykhO1E=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:ednofQZMPfYOOHrxVgVSi2/JqCo= sha1:3TfnxmvGOowet6pBRQoCBujQYAg= Xref: reader01.eternal-september.org comp.lang.ada:56352 Date: 2019-05-21T08:53:25+01:00 List-Id: Gilbert Gosseyn writes: > I meant the latest version of the Ada GNU compiler, assuming that > future releases can be handled the same way. Sorry to harp on about this, but .. there is the FSF GCC compiler, which I've been providing macOS builds for for some time, and there's AdaCore's Community Edition compiler suite, which contains GPS but has a more restrictive licence condition. "the Ada GNU compiler" could mean either. > I had downloaded the gps.app and used !#/bin/sh. gcc-9.1.0 and > gcc-6.1.0 are in opt, but no gnat-ce_2018. However there is a > opt/GNAT/2018 directory. My gps is in opt/bin. I have exported the > PATH. If I start gps, it does not compute. However "sudo gps" still > works. Not sure how you get to "My gps is in opt/bin"? I just started a reinstall of CE 2018 and I see that its default install location is /Users/simon/opt/GNAT/2018 (i.e. ~/opt/GNAT 2018); is that where you mean? I install to /opt/gnat-ce-2018 so as to keep all my Ada compiler releases in one place. >From what you say I'd edit /Applications/GPS.app/Contents/MacOS/gps to contain #!/bin/sh export PATH=/opt/gcc-9.1.0/bin:/usr/local/bin:$PATH exec $HOME/opt/GNAT/2018/bin/gps so that when you double-click on /Applications/GPS the compiler you want is on the path and the proper gps executable gets run (you might need to replace $HOME by your own home directory, I haven't used $HOME here) What happens if, from the command line, you say (without sudo) $ ~/opt/GNAT/2018/bin/gps & (worked fine for me; I already have /opt/cc-9.1.0/bin first on my PATH). "does not compute" isn't helpful in coming to a diagnosis.