ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors compiling ada-mode 7.2.0


From: Simon Wright
Subject: Re: Errors compiling ada-mode 7.2.0
Date: Wed, 1 Jun 2022 21:04:10 +0100

On 31 May 2022, at 15:03, Tirifto <tirifto@posteo.cz> wrote:

However, now I’m getting an error message which I’m not sure how to
solve. These are the last lines printed after running ‘./build.sh -vh’:

/usr/bin/gnatgcc -c -x ada -gnatA -fstack-check -g -gnat2012
-gnatfqQ -gnatw.d -gnatwaBCeJL -gnatyO -gnaty3abcefhiklnOprtx
-gnatyM120 -fstack-check -g -gnat2012 -gnatfqQ -gnatw.d -gnatwaBCeJL
-gnatyO -O3 -fno-var-tracking-assignments -gnatyO -gnatn -gnat2020
-gnatec=/tmp/GNAT-TEMP-000011.TMP -gnatem=/tmp/GNAT-TEMP-000017.TMP
/home/tirifto/.emacs.d/elpa/wisi-3.1.7/sal-gen_unbounded_definite_vectors.adb
sal-gen_unbounded_definite_vectors.adb:560:25: warning: formal
parameter "Container" is not referenced [-gnatwu]
sal-gen_unbounded_definite_vectors.adb:566:07: warning: formal
parameter "Container" is not referenced [-gnatwu]
sal-gen_unbounded_definite_vectors.adb:630:34: warning: formal
parameter "Object" is not referenced [-gnatwu]

compilation of sal-gen_unbounded_definite_vectors.adb failed

The GNAT warnings switches -gnatw.d -gnatwaBCeJL include -gnatwe, which means "treat warnings as errors".

If you look at the top of build.sh it says

#    build.sh <other gprbuild options>
#    e.g. 'build.sh -j0' : use all available processors to compile
#         'build.sh -wn' : treat warnings as warnings.
#         'build.sh -vh' : Verbose output (high verbosity)

and I’d use -wn as well as -j0 (I probably wouldn’t use -vh, can be a bit overwhelming).

—S


reply via email to

[Prev in Thread] Current Thread [Next in Thread]