distributing-gcc icon indicating copy to clipboard operation
distributing-gcc copied to clipboard

Can't compile ADA project in GNATstudio while do in Terminal

Open SergeySlice opened this issue 9 months ago • 1 comments

The system is macOS Sequoia x86_64. Installed the package https://github.com/simonjwright/distributing-gcc/releases/download/gcc-14.1.0-x86_64/gcc-14.1.0-x86_64-apple-darwin21.pkg and GNAT studio https://sourceforge.net/projects/gnuada/files/latest/download The compiler worked

sergey@iMac GNAT_studio % gprbuild -Pproba
Compile
   [Ada]          main.adb
Bind
   [gprbind]      main.bexch
   [Ada]          main.ali
Link
   [link]         main.adb
sergey@iMac GNAT_studio % 

But GNATstudio shows

gprbuild -d -P/Applications/1App/GNAT_studio/proba.gpr /Applications/1App/GNAT_studio/src/main.adb
gprconfig: can't find a native toolchain for language 'ada'
gprconfig: can't find a native toolchain for language 'ada'
proba.gpr:1:09: no compiler for language "Ada", cannot compile "main.adb"
gprbuild: *** compilation phase failed
[2025-05-01 23:19:13] process exited with status 7, elapsed time: 06.91s

I edited GNATstudio info.plist for the compiler PATH

Append PATH with: /opt/gcc-14.1.0-x86_64/bin

And what else I needed?

SergeySlice avatar May 01 '25 20:05 SergeySlice