# Weirdness when building Gprbuild 25.0.0

**URL:** https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294
**Category:** General
**Created:** [March 28, 2026, 1:23pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294 "2026-03-28T13:23:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BlueAlmost](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/bluealmost/32/953_2.png) [@BlueAlmost](https://forum.ada-lang.io/u/BlueAlmost)
#### Post date: [March 28, 2026, 1:23pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294/1 "2026-03-28T13:23:58Z")

</div>

Trying to build gprbuild via bootstrapping process.

Background: On Linux, I have typically compiled gcc with ada from source. Grpbuild (25.0.0) is then built from source via the “bootstrap.sh” ( [GitHub - AdaCore/gprbuild: GPRbuild is an advanced build system designed to help automate the construction of multi-language systems. · GitHub](https://github.com/AdaCore/gprbuild) ).

The previous success has been with gcc 15.2 and gprbuild 25.0.0. The bootstrapping process had worked simply and flawlessly.

Recently, tried the same procedure with gcc master (version gcc (GCC) 16.0.1 20260327 (experimental)). Gcc builds fine, gnat, gnatmake and friends works fine. However, the bootstrapping process for gprbuild fails. Issuing a “sudo ./bootstrap.sh” yields a quizzical error:

> gcc -c -I./ -I/home/foo/GPR/gprbuild-25.0.0/src -I/home/foo/GPR/gprbuild-25.0.0/gpr/src -I../xmlada/sax -I../xmlada/dom -I../xmlada/schema -I../xmlada/unicode -I../xmlada/input\_sources -I- /home/foo/GPR/gprbuild-25.0.0/gpr/src/gpr\_build\_util.adb  
> gpr-compilation-process.adb:44:29: error: operator for type “String” is not declared in “Env\_Maps”  
> gnatmake: “/home/foo/GPR/gprbuild-25.0.0/gpr/src/gpr-compilation-process.adb” compilation error

The “Env\_Maps” is simply a “Containers.Indefinite\_Ordered\_Maps” as shown in this line from gpr-compilation-process.adb:

package Env\_Maps is new Containers.Indefinite\_Ordered\_Maps (String, String);

The Containers.Indefinite\_Ordered\_Maps is found in the gcc source code file gcc/ada/libgnat/a-ciorma.adb. The only difference in that file between gcc 15.2.0 and the recent 16.0.1 (experimental) is the copyright date bump.

As the grpbuild files being used are exactly the same whether I used gcc-15.2.0 or gcc-16.0.1 (experimental), and the a-ciorma.adb (containing Containers.Indefinite\_Ordered\_Maps contains identical code, I am believing there must be an issue with the gnat code of gcc 16.0.1.

Are there any recommendations on how to understand the failure mode on this? (If it is a gcc-16.0.1 gnat error, I would like to file a bugzilla to get it fixed asap.) But, even boiling this down to a minimal example is elusive to me.

All hints/suggestions greatly appreciated.

---

<div class="post-metadata">

### Author: ![liampwll](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/l/b19c9b/32.png) [@liampwll](https://forum.ada-lang.io/u/liampwll)
#### Post date: [March 28, 2026, 1:32pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294/2 "2026-03-28T13:32:38Z")

</div>

That’s a bug in gprbuild rather than GNAT. It’s fixed on the master branch.

---

<div class="post-metadata">

### Author: ![BlueAlmost](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/bluealmost/32/953_2.png) [@BlueAlmost](https://forum.ada-lang.io/u/BlueAlmost)
#### Post date: [March 28, 2026, 1:40pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294/3 "2026-03-28T13:40:49Z")

</div>

Ahhh… this is very good information. **Thanks kindly** for pointing me in the right direction on this. Will bootstrap from gprbuild master immediately!

---

<div class="post-metadata">

### Author: ![BlueAlmost](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/bluealmost/32/953_2.png) [@BlueAlmost](https://forum.ada-lang.io/u/BlueAlmost)
#### Post date: [March 28, 2026, 1:46pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294/4 "2026-03-28T13:46:22Z")

</div>

Wow, works like a charm, perfect!

---

<div class="post-metadata">

### Author: ![kevlar700](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/kevlar700/32/40_2.png) [@kevlar700](https://forum.ada-lang.io/u/kevlar700)
#### Post date: [July 21, 2026, 2:37pm UTC](https://forum.ada-lang.io/t/weirdness-when-building-gprbuild-25-0-0/4294/5 "2026-07-21T14:37:03Z")

</div>

This seems to affect building Startup-Gen (26) with Alire too?
