comp.lang.ada
 help / color / mirror / Atom feed
* ANN: GCC 9.1.0 for macOS
@ 2019-05-08 19:00 Simon Wright
  2019-05-20 14:59 ` Gilbert Gosseyn
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Simon Wright @ 2019-05-08 19:00 UTC (permalink / raw)


GCC 9.1.0 for Mac OS X El Capitan (10.11) is available at
https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/9.1.0/

Also runs on macOS Mojave (10.14) and (untested) on Sierra (10.12) and
High Sierra (10.13).

        ******************************************
        * DO NOT USE ON EARLIER VERSIONS OF OS X *
        ******************************************

The native/ directory contains the 9.1.0 x86_64-apple-darwin15 compiler,
together with tools from GNAT CE 2018 and various Github and other
repositories.

The arm-eabi/ directory contains the 9.1.0 arm-eabi Darwin-hosted cross
compiler.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ANN: GCC 9.1.0 for macOS
  2019-05-08 19:00 ANN: GCC 9.1.0 for macOS Simon Wright
@ 2019-05-20 14:59 ` Gilbert Gosseyn
  2019-05-20 19:29   ` Simon Wright
  2019-05-20 20:43 ` Gilbert Gosseyn
  2019-05-21 10:36 ` alby.gamper
  2 siblings, 1 reply; 6+ messages in thread
From: Gilbert Gosseyn @ 2019-05-20 14:59 UTC (permalink / raw)


On Wednesday, May 8, 2019 at 9:00:59 PM UTC+2, Simon Wright wrote:
> GCC 9.1.0 for Mac OS X El Capitan (10.11) is available at
> https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/9.1.0/
> 
> Also runs on macOS Mojave (10.14) and (untested) on Sierra (10.12) and
> High Sierra (10.13).
> 
>         ******************************************
>         * DO NOT USE ON EARLIER VERSIONS OF OS X *
>         ******************************************
> 
> The native/ directory contains the 9.1.0 x86_64-apple-darwin15 compiler,
> together with tools from GNAT CE 2018 and various Github and other
> repositories.
> 
> The arm-eabi/ directory contains the 9.1.0 arm-eabi Darwin-hosted cross
> compiler.

How can I use the latest Ada GNU compiler with my free GPS on El Captain 10.11.6?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ANN: GCC 9.1.0 for macOS
  2019-05-20 14:59 ` Gilbert Gosseyn
@ 2019-05-20 19:29   ` Simon Wright
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Wright @ 2019-05-20 19:29 UTC (permalink / raw)


Gilbert Gosseyn <hnptz@yahoo.de> writes:

> How can I use the latest Ada GNU compiler with my free GPS on El
> Captain 10.11.6?

I don't understand "the latest Ada GNU compiler". Do yu mean the
compiler I announced above? or something else?

You could just install it and use it? Though, come to think, there may
be a PATH issue.

You could d/l https://www.dropbox.com/s/5gd84jl255povju/GPS.zip?dl=0,
then edit the Contents/MacOS/gps file to something like

------------------------------------------------------------------------
#!/bin/sh
export PATH=/opt/gcc-9.1.0/bin:/usr/local/bin:$PATH
exec /opt/gnat-ce-2018/bin/gps
------------------------------------------------------------------------

assuming the new compiler is at /opt/gcc-9.1.0 and your GPS is at
/opt/gnat-ce-2018.

This app was created by Pascal on the [GNAT-OSX] maining list.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ANN: GCC 9.1.0 for macOS
  2019-05-08 19:00 ANN: GCC 9.1.0 for macOS Simon Wright
  2019-05-20 14:59 ` Gilbert Gosseyn
@ 2019-05-20 20:43 ` Gilbert Gosseyn
  2019-05-21  7:53   ` Simon Wright
  2019-05-21 10:36 ` alby.gamper
  2 siblings, 1 reply; 6+ messages in thread
From: Gilbert Gosseyn @ 2019-05-20 20:43 UTC (permalink / raw)


On Wednesday, May 8, 2019 at 9:00:59 PM UTC+2, Simon Wright wrote:
> GCC 9.1.0 for Mac OS X El Capitan (10.11) is available at
> https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/9.1.0/
> 
> Also runs on macOS Mojave (10.14) and (untested) on Sierra (10.12) and
> High Sierra (10.13).
> 
>         ******************************************
>         * DO NOT USE ON EARLIER VERSIONS OF OS X *
>         ******************************************
> 
> The native/ directory contains the 9.1.0 x86_64-apple-darwin15 compiler,
> together with tools from GNAT CE 2018 and various Github and other
> repositories.
> 
> The arm-eabi/ directory contains the 9.1.0 arm-eabi Darwin-hosted cross
> compiler.

I meant the latest version of the Ada GNU compiler, assuming that future releases can be handled the same way. 
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.
How to shuffle things around?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ANN: GCC 9.1.0 for macOS
  2019-05-20 20:43 ` Gilbert Gosseyn
@ 2019-05-21  7:53   ` Simon Wright
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Wright @ 2019-05-21  7:53 UTC (permalink / raw)


Gilbert Gosseyn <hnptz@yahoo.de> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ANN: GCC 9.1.0 for macOS
  2019-05-08 19:00 ANN: GCC 9.1.0 for macOS Simon Wright
  2019-05-20 14:59 ` Gilbert Gosseyn
  2019-05-20 20:43 ` Gilbert Gosseyn
@ 2019-05-21 10:36 ` alby.gamper
  2 siblings, 0 replies; 6+ messages in thread
From: alby.gamper @ 2019-05-21 10:36 UTC (permalink / raw)


On Thursday, May 9, 2019 at 5:00:59 AM UTC+10, Simon Wright wrote:
> GCC 9.1.0 for Mac OS X El Capitan (10.11) is available at
> https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/9.1.0/
> 
> Also runs on macOS Mojave (10.14) and (untested) on Sierra (10.12) and
> High Sierra (10.13).
> 
>         ******************************************
>         * DO NOT USE ON EARLIER VERSIONS OF OS X *
>         ******************************************
> 
> The native/ directory contains the 9.1.0 x86_64-apple-darwin15 compiler,
> together with tools from GNAT CE 2018 and various Github and other
> repositories.
> 
> The arm-eabi/ directory contains the 9.1.0 arm-eabi Darwin-hosted cross
> compiler.

Great work Simon !


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-05-21 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 19:00 ANN: GCC 9.1.0 for macOS Simon Wright
2019-05-20 14:59 ` Gilbert Gosseyn
2019-05-20 19:29   ` Simon Wright
2019-05-20 20:43 ` Gilbert Gosseyn
2019-05-21  7:53   ` Simon Wright
2019-05-21 10:36 ` alby.gamper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox