Discussion:
Ada on old Macs
(too old to reply)
Marius Alves
2025-01-04 21:01:46 UTC
Permalink
Any chance of deploying an Ada 2022 or 2012 compiler on any of

Macbook, 2015, i5, Monterey 12.7.6

Macmini, 2012, i7, Catalina 10.15.7

(Local target for starts.)

I'm trying old packages from FSF but going nowhere fast.
Things like

Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun

are staring me in the face.
I suck at this.
Willing to pay for help.

Thanks.
--Marius
Lawrence D'Oliveiro
2025-01-04 22:02:39 UTC
Permalink
Post by Marius Alves
Any chance of deploying an Ada 2022 or 2012 compiler on any of
Macbook, 2015, i5, Monterey 12.7.6
Macmini, 2012, i7, Catalina 10.15.7
Maybe try Linux?
Marius Alves
2025-01-04 23:31:31 UTC
Permalink
Post by Marius Alves
Any chance of deploying an Ada 2022 or 2012 compiler on any of
Macbook, 2015, i5, Monterey 12.7.6
Macmini, 2012, i7, Catalina 10.15.7
(Local target for starts.)
I'm trying old packages from FSF but going nowhere fast.
Things like
Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path (/Library/Developer/
CommandLineTools), missing xcrun at: /Library/Developer/
CommandLineTools/usr/bin/xcrun
are staring me in the face.
I suck at this.
Willing to pay for help.
Thanks.
--Marius
Took a deep breath.

Managed to install, locate and run gnatmake on a simple program on the
Macbook :-)

Now for the libraries. Wish me luck.

Thanks.
Simon Wright
2025-01-05 20:17:37 UTC
Permalink
Good luck!
OrangeFish
2025-01-05 22:06:56 UTC
Permalink
Post by Marius Alves
Any chance of deploying an Ada 2022 or 2012 compiler on any of
Macbook, 2015, i5, Monterey 12.7.6
Macmini, 2012, i7, Catalina 10.15.7
(Local target for starts.)
I'm trying old packages from FSF but going nowhere fast.
Things like
Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path
/Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun tells you where the compiler+libraries are. (gcc actually invokes
the LLVM compiler.) It should have been installed with the Developer tools.

What version of Xcode are you running?

OF
Simon Wright
2025-01-31 06:48:45 UTC
Permalink
Post by OrangeFish
Post by Marius Alves
Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path
/Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun tells you where the compiler+libraries are. (gcc actually
invokes the LLVM compiler.) It should have been installed with the
Developer tools.
What version of Xcode are you running?
I don't have an elderly Mac to hand, but here I don't have
/Library/Developer/CommandLineTools/usr/bin/xcrun. It's in /usr/bin/.

GCC does invoke clang, but only to compile generated assembly.

When building GCC for Darwin, it has to be told where to find the
Software Development Kit (SDK); could be in Xcode or in CommandLineTools
(or, with my or Alire's current builds, either). It sounds as though
Marius's compiler was built to look in the CLTs, and either they aren't
installed or they're broken.

"xcrun --show-sdk-path" tells you where to find the installed SDK. If
there isn't one, or it's in /Applications/Xcode.app, you need to install
the CLTs. If it's in /Library/Developer/CommandLineTools/, you need to
clean it out and then install the CLTs.

Cleaning out the CLTs: make a backup and then

sudo rm -rf /Library/Developer/CommandLineTools

Installing the CLTs:

sudo xcode-select --install

Simon Wright
2025-01-07 19:34:50 UTC
Permalink
Post by Marius Alves
Marios-Air:~ marius$ gcc --help
xcrun: error: invalid active developer path
/Library/Developer/CommandLineTools/usr/bin/xcrun
I think you need to start by saying

$ xcode-select --install

On the other hand, xcrun on this machine is at /usr/bin, not
/Library/Developer/CommandLineTools/usr/bin/xcrun. Still, give it a go
Blady
2025-01-24 21:03:01 UTC
Permalink
Post by Marius Alves
Any chance of deploying an Ada 2022 or 2012 compiler on any of
Macbook, 2015, i5, Monterey 12.7.6
Macmini, 2012, i7, Catalina 10.15.7
(Local target for starts.)
Have you tried GNAT distro from Simon?

For macOS 10.15 : GNAT FSF 9.1.0
https://sourceforge.net/projects/gnuada/files/https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/9.1.0/native/

For macOS 12 : GNAT FSF 12.2.0
https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-12.2.0-x86_64

There are not fully Ada 2012 or 2022 but new features are available with
option -gnatX.
Loading...