As gtkada creating with alire is still giving me problems I tried just to download all sources and compile that. Then I get the following error:
(style) missing "overriding"indicator in body of “=” [-gnaty0]
As the error appears in the first item to compile I assume it appears in all items.
It appears with the following body:
function "=" (A, B : Cairo_Region) return Boolean is
function Internal (A, B : Cairo_Region) return Gboolean;
pragma Import (C, Internal, "cairo_region_equal");
Somewhere in compiler flags you have -gnatwe that makes compiler treat warnings as errors. The easiest way is to remove this flag or to suppress it with
-gnatwn
‘Set normal warnings mode.’
This switch sets normal warning mode, in which enabled warnings are issued and treated as warnings rather than errors. This is the default mode. the switch -gnatwn can be used to cancel the effect of an explicit -gnatws or -gnatwe. It also cancels the effect of the implicit -gnatwe that is activated by the use of -gnatg.
First of all: My lib is not created by alire. So the line you call alr build – -gnatwn is not the way to sove the problem. At this moment I have the following in my project file:
package Compiler is
for Default_Switches (“ada”) use (“-gnatQ”, “-g”, “-gnata”, “-gnatf”);
end Compiler;