Since MSys2 dropped support for Ada (!), how can I build Ada projects such as sdlada and gprbuild-bootstrap that require command-line tools (e.g. makefiles or bootstrap.sh) on Windows?
I'm several levels down a rabbit hole here, but if you'll bear with me I want to outline the whole chain in case there's a better way to achieve my original goal that I missed.
- I want to port some old embedded-device Ada code to run in a gtkada application.
- I have installed GNAT Studio and can build/run simple gtkada projects with it.
- I downloaded the "sdlada" project to learn more about interfacing Ada with C code
- Also I might want to use SDL visuals in my GTK app
- However I can't directly open sdlada's .gpr files with GNAT Studio
- Because it's missing some Ada source code that's generated in the build
- Apparently you must use the makefile to build sdlada
- When I try on MSys2, the makefile fails because my system is missing gprbuild
- So I tried to follow the Bootstrapping instructions for gprbuild
- https://github.com/AdaCore/gprbuild/
- But the gprbuild bootstrap.sh script fails because my system doesn't have gnatmake
- Facepalm - because MSys2 dropped Ada support
- "There's a hole in the bucket"
- On an MSys2 issue it was suggested a user might build gcc from source to get back Ada support
- I have built gcc before (for a cross-compiler) so... maybe? I could try this...
- However if the MSys2 maintainer can't get it to build for him why would it work for me?
- But this is getting off in the weeds considering - I have GNAT Studio and can already build+run Ada programs
- But how do I run a makefile with gprbuild from GNAT Studio on Windows?
- Is there a "GNAT Studio Command Line" (terminal) available somewhere? (Like how an install of Visual Studio includes shortcuts to open a command line preloaded with paths to MSVC tools.)
- Is it possible (and advisable) to try to MSys2 make refer to the tools in "C:\GNAT\2021\bin"?
- But how do I run a makefile with gprbuild from GNAT Studio on Windows?
[link] [comments]