• Re: Ada on old Macs

    From Lawrence D'Oliveiro@21:1/5 to Marius Alves on Sat Jan 4 22:02:39 2025
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to All on Sun Jan 5 20:17:37 2025
    Good luck!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From OrangeFish@21:1/5 to Marius Alves on Sun Jan 5 17:06:56 2025
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to Marius Alves on Tue Jan 7 19:34:50 2025
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Blady@21:1/5 to All on Fri Jan 24 22:03:01 2025
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Wright@21:1/5 to OrangeFish on Fri Jan 31 06:48:45 2025
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)