bug-apl
[Top][All Lists]
Advanced

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

Re: Error building APL


From: Dr . Jürgen Sauermann
Subject: Re: Error building APL
Date: Fri, 1 May 2020 16:43:08 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Hi everybody,

it seems like gcc/g++ continues to generate bogus warnings at a rate that makes it difficult to
keep up with. For that reason I have written a README-11-bogus-compiler-warnings which
explains how to deal with this. SVN 1276.

Maybe somebody would like to report this as a compiler error. Strictly speaking it is not
because the warning itself says "maybe", but IMHO it should not occur under -Wall
but only under -Wextra.

Best Regards,
Jürgen


On 5/1/20 4:06 PM, Blake McBride wrote:
Greetings,

Trying to build GNU APL rev 1275 on my 64-bit Linux box I get:

[...]
mv -f .deps/apl-Bif_OPER2_RANK.Tpo .deps/apl-Bif_OPER2_RANK.Po
g++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Werror -I/usr/include -I/usr/include/postgresql   -rdynamic -g -O2 -MT apl-Bif_OPER1_REDUCE.o -MD -MP -MF .deps/apl-Bif_OPER1_REDUCE.Tpo -c -o apl-Bif_OPER1_REDUCE.o `test -f 'Bif_OPER1_REDUCE.cc' || echo './'`Bif_OPER1_REDUCE.cc
In file included from PrintBuffer.hh:30:0,
                 from Cell.hh:30,
                 from CharCell.hh:24,
                 from Value.hh:24,
                 from NamedObject.hh:25,
                 from Function.hh:27,
                 from PrimitiveFunction.hh:27,
                 from PrimitiveOperator.hh:24,
                 from Bif_OPER1_REDUCE.hh:24,
                 from Bif_OPER1_REDUCE.cc:23:
Shape.hh: In member function ‘Token Bif_REDUCE::reduce_n_wise(Value_P, Token&, Value_P, uAxis)’:
Shape.hh:133:18: error: ‘shape_Z.Shape::rho[axis]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         if (rho[r])   { volume /= rho[r];  rho[r] = sh;  volume *= rho[r]; }
             ~~~~~^
Shape.hh:109:41: error: ‘shape_Z.Shape::rho[axis]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    { Assert(r < rho_rho);   return rho[r]; }
                                         ^
Shape.hh: In member function ‘Token Bif_REDUCE::replicate(Value_P, Value_P, uAxis)’:
Shape.hh:133:18: error: ‘shape_Z.Shape::rho[axis]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         if (rho[r])   { volume /= rho[r];  rho[r] = sh;  volume *= rho[r]; }
             ~~~~~^
cc1plus: all warnings being treated as errors
Makefile:3234: recipe for target 'apl-Bif_OPER1_REDUCE.o' failed
make[3]: *** [apl-Bif_OPER1_REDUCE.o] Error 1
make[3]: Leaving directory '/home/blake/Backup/apl/src'
Makefile:4584: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/blake/Backup/apl/src'
Makefile:522: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/blake/Backup/apl'
Makefile:409: recipe for target 'all' failed
make: *** [all] Error 2



reply via email to

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