I an for sometime now trying to get the version 2025 of ada working. At this moment I get an error I don’t understand. in the program hello_world . The .adb ffile is:
with Text_IO; use Text_IO;
procedure Hello_World is
begin
Put_Line(“Hello World”);
end Hello_World;
The project file is:
project Hello_World is
for Source_Dirs use (“src”);
for Object_Dir use “obj”;
for Main use (“hello_world.adb”);
end Hello_World;
Build & Run presents:
gprbuild -d -PD:\ada\project\Hello_World\hello_world.gpr D:\ada\project\Hello_World\src\hello_world.adb
Compile
[Ada] hello_world.adb
+===========================GNAT BUG DETECTED==============================+
| 4.2.1 (i386-pc-mingw32) Storage_Error stack overflow (or erroneous memory access)|
| Error detected at a-tags.adb:534:7 |
| Please submit a bug report; see GCC Bugs - GNU Project. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
[2025-10-11 16:28:15] process exited with status 4, elapsed time: 00.96s
Are you building with gcc/GNAT 4.2.1? If so that’s quite an old version. Where did you get your GNAT version from?
I tried your code with gcc 15.2.0 and it builds and runs successfully, though it emits a warning about using a renamed predefined unit is an obsolescent feature when you’re withing Text_IO.
I used the latest GNAT Studio from the github site version 20250417. That for the windows version is an exe file that installs the the compiler but without gprbuild. As that is without gprbuild I got that with alire. gprbuild is also the latest version 25.0.0 I used the line you suggested. I want to check if I did something wrong before I submit the error as asked.
Installing GNAT Studio does not install a compiler. Installing gprbuild does not install a compiler. You had that old version of GNAT already installed and in your path, so gprbuild used it. There is no point in submitting an error report since that version is no longer maintained. Since you installed gprbuild with alire, you can also install a more recent version of the GNAT compiler with it.
I understood that. I had to install the new version of Gnatstudio and gprbuild, both the newest version. I did empty my folders all before installing the new ones. So possibly I have forgotten something. I did first Gnatstudio and then gprbuild. Is there somewhere a point by point method to install it all correctly
It looks like I am not clear enough. I have installed already the newest version of version of both Gnatstudio and gprbuild as can be seen in an earlier post from me. Further investigation found if I only use “Build/Check Syntax” the fault does not appear but it appear with “Build/Check Semantic”.
As the error I got pointed to gcc and till now I thought it was part of gprbuild I tried to find an install procedure for pcc. I found one “mingw-get-setup.exe”, with that I could get a correct translation of “Hello_World”. The problem I now still have is this is the 32 bit version where can I find a 64 bit version if it exist.