Closed WinterAlexander closed 1 year ago
Ada Util 2.4.1 builds fine on Debian 11 which is using gcc 10.2.1.
The Util.Properties
package is one of the oldest package provided by the library and it has always compiled successfully starting with gcc 4.7 up to now with gcc 12. There is something very suspicious because there is nothing terrific and wrong on line util-properties.ads:301
since line 301 declares the Manager_Type
:
generic
type Manager_Type is limited new Manager with private;
package Shared_Implementation is
I'm not able to reproduce your error. I've tried several versions of the compiler including gcc 10.2
I'm in the process of preparing the 2.5.0 release. Would it be possible to check with the latest sources?
Fixed.
System: Dockerized Ubuntu 21 under ArchLinux host machine, both x86_84 Ada Util Version: 2.4.1
Compilation of an example project that uses Ada-Util fails for GCC 10 only, GCC 9, 11 and 12 have no issue. The problem seems to be located in the properties part of the library, despite the example only using the HTTP part of the library.
Question 1: Do you care to fix this? Question 2: Is there a way to fully exclude util-properties from the project when using the HTTP module?
The error in question:
Here is a minimal reproducible example (using docker). To run it, create the 3 files
Dockerfile
,example.adb
andexample.gpr
as the following:Dockerfile:
example.adb:
example.gpr:
Then run from the same directory:
Best, Alexander Winter