• Ada on old Macs

    From Marius Alves@marius2023pt@gmail.com to comp.lang.ada on Sat Jan 4 21:01:46 2025
    From Newsgroup: comp.lang.ada

    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

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Lawrence D'Oliveiro@ldo@nz.invalid to comp.lang.ada on Sat Jan 4 22:02:39 2025
    From Newsgroup: comp.lang.ada

    On Sat, 4 Jan 2025 21:01:46 +0000, Marius Alves wrote:

    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?
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Marius Alves@marius2023pt@gmail.com to comp.lang.ada on Sat Jan 4 23:31:31 2025
    From Newsgroup: comp.lang.ada

    On 2025-01-04 21:01, Marius Alves wrote:
    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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Simon Wright@simon@pushface.org to comp.lang.ada on Sun Jan 5 20:17:37 2025
    From Newsgroup: comp.lang.ada

    Good luck!
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From OrangeFish@OrangeFish@invalid.invalid to comp.lang.ada on Sun Jan 5 17:06:56 2025
    From Newsgroup: comp.lang.ada

    On 2025-01-04 16:01, Marius Alves wrote:
    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

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Simon Wright@simon@pushface.org to comp.lang.ada on Tue Jan 7 19:34:50 2025
    From Newsgroup: comp.lang.ada

    Marius Alves <marius2023pt@gmail.com> writes:

    Marios-Air:~ marius$ gcc --help
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Blady@p.p11@orange.fr to comp.lang.ada on Fri Jan 24 22:03:01 2025
    From Newsgroup: comp.lang.ada

    Le 04/01/2025 à 22:01, Marius Alves a écrit :
    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.


    --- Synchronet 3.20c-Linux NewsLink 1.2
  • From Simon Wright@simon@pushface.org to comp.lang.ada on Fri Jan 31 06:48:45 2025
    From Newsgroup: comp.lang.ada

    OrangeFish <OrangeFish@invalid.invalid> writes:

    On 2025-01-04 16:01, Marius Alves wrote:

    Marios-Air:~ marius$ gcc --help
    xcrun: error: invalid active developer path
    (/Library/Developer/CommandLineTools), missing xcrun at:
    /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

    --- Synchronet 3.20c-Linux NewsLink 1.2