Compile errors on Fedora 25 at svn revision 840,
Xtian.
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -rdynamic -g -O2 -MT apl-LApack.o -MD -MP -MF
.deps/apl-LApack.Tpo -c -o apl-LApack.o `test -f 'LApack.cc' || echo
'./'`LApack.cc
InputFile.cc: In static member function ‘static void
InputFile::randomize_files()’:
InputFile.cc:91:31: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
for (size_t done = 0; done < 4*files_todo.size();)
~~~~~^~~~~~~~~~~~~~~~~~~~~
mv -f .deps/apl-IndexIterator.Tpo .deps/apl-IndexIterator.Po
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -rdynamic -g -O2 -MT apl-LibPaths.o -MD -MP -MF
.deps/apl-LibPaths.Tpo -c -o apl-LibPaths.o `test -f 'LibPaths.cc' || echo
'./'`LibPaths.cc
mv -f .deps/apl-IntCell.Tpo .deps/apl-IntCell.Po
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -rdynamic -g -O2 -MT apl-LineInput.o -MD -MP -MF
.deps/apl-LineInput.Tpo -c -o apl-LineInput.o `test -f 'LineInput.cc' || echo
'./'`LineInput.cc
cc1plus: all warnings being treated as errors
Makefile:2260: recipe for target 'apl-InputFile.o' failed
make[3]: *** [apl-InputFile.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LineInput.cc: In member function ‘void LineHistory::save_history(const char*)’:
LineInput.cc:198:31: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
for (size_t p = put + 1; p < hist_lines.size(); ++p)
~~^~~~~~~~~~~~~~~~~~~
LineInput.cc: In member function ‘void
LineHistory::print_history(std::ostream&)’:
LineInput.cc:226:31: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
for (size_t p = put + 1; p < hist_lines.size(); ++p)
~~^~~~~~~~~~~~~~~~~~~
mv -f .deps/apl-LibPaths.Tpo .deps/apl-LibPaths.Po
mv -f .deps/apl-LApack.Tpo .deps/apl-LApack.Po
cc1plus: all warnings being treated as errors
Makefile:2316: recipe for target 'apl-LineInput.o' failed
make[3]: *** [apl-LineInput.o] Error 1
make[3]: Leaving directory '/home/xtian/gnuapl/src'
Makefile:3162: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/xtian/gnuapl/src'
Makefile:520: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/xtian/gnuapl'
Makefile:408: recipe for target 'all' failed
make: *** [all] Error 2
On 2017-01-09 07:13, Juergen Sauermann wrote:
Hi David,
thanks, hopefully fixed in *SVN 840*. I did not get these warnings with *g++
4.8.4*.
*-Werror=misleading-indentation*? They must be kidding. /// Jürgen
On 01/09/2017 03:11 AM, David B. Lamkins wrote:
GNU APL SVN 839 does not compile. Tested with gcc 6.3.1 and clang 3.8.0 using
./configure; make clean all .
Here are the compilation errors. I can post the entire make transcript if it'd
help.
gcc
===
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -I/usr/include -I sql -rdynamic -g -O2 -MT apl-Common.o
-MD -MP -MF .deps/apl-Common.Tpo -c -o apl-Common.o `test -f 'Common.cc' ||
echo './'`Common.cc
Command.cc: In static member function ‘static void
Command::lib_common(std::ostream&, const UCS_string&, int)’:
Command.cc:1022:17: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
if (col == (col_width.size() - 1) || c == (directories.size() - 1))
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -I/usr/include -I sql -rdynamic -g -O2 -MT
apl-Executable.o -MD -MP -MF .deps/apl-Executable.Tpo -c -o apl-Executable.o
`test -f 'Executable.cc' || echo './'`Executable.cc
Error.cc: In member function ‘void Error::print(std::ostream&) const’:
Error.cc:60:9: error: this ‘if’ clause does not guard...
[-Werror=misleading-indentation]
if (symbol_name.size())
^~
Error.cc:63:27: note: ...this statement, but the latter is misleadingly
indented as if it is guarded by the ‘if’
out << " Thrown at: " << throw_loc << endl
^~~
g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -I/usr/include -I sql -rdynamic -g -O2 -MT
apl-FloatCell.o -MD -MP -MF .deps/apl-FloatCell.Tpo -c -o apl-FloatCell.o `test
-f 'FloatCell.cc' || echo './'`FloatCell.cc
Executable.cc: In member function ‘UCS_string
Executable::extract_lambda_text(Fun_signature, int) const’:
Executable.cc:691:19: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
if (tidx >= text.size())
~~~~~^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
clang
=====
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -I/usr/include -I sql -g -O2 -MT apl-Assert.o -MD -MP
-MF .deps/apl-Assert.Tpo -c -o apl-Assert.o `test -f 'Assert.cc' || echo
'./'`Assert.cc
In file included from Archive.cc:41:
In file included from ./Macro.hh:24:
In file included from ./UserFunction.hh:29:
./Symbol.hh:39:1: error: 'ValueStackItem' defined as a struct here but
previously declared as a class [-Werror,-Wmismatched-tags]
struct ValueStackItem
^
./Archive.hh:40:1: note: did you mean struct here?
class ValueStackItem;
^~~~~
struct
In file included from Assert.cc:28:
In file included from ./Workspace.hh:30:
In file included from ./Quad_RL.hh:24:
./SystemVariable.hh:82:17: error: 'NL_SystemVariable::push_label' hides
overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual void push_label(int label) {}
^
./Symbol.hh:175:17: note: hidden overloaded virtual function
'Symbol::push_label' declared here: type mismatch at 1st parameter
('Function_Line' vs 'int')
virtual void push_label(Function_Line label);
clang++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -Wno-strict-aliasing
-I/usr/include -I sql -I/usr/include -I sql -g -O2 -MT apl-Avec.o -MD -MP
-MF .deps/apl-Avec.Tpo -c -o apl-Avec.o `test -f 'Avec.cc' || echo './'`Avec.cc
In file included from Archive.cc:51:
In file included from ./Workspace.hh:30:
In file included from ./Quad_RL.hh:24:
./SystemVariable.hh:82:17: error: 'NL_SystemVariable::push_label' hides
overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual void push_label(int label) {}
^
./Symbol.hh:175:17: note: hidden overloaded virtual function
'Symbol::push_label' declared here: type mismatch at 1st parameter
('Function_Line' vs 'int')
virtual void push_label(Function_Line label);
^
In file included from main.cc:42:
In file included from ./Workspace.hh:30:
In file included from ./Quad_RL.hh:24:
./SystemVariable.hh:82:17: error: 'NL_SystemVariable::push_label' hides
overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual void push_label(int label) {}
^
./Symbol.hh:175:17: note: hidden overloaded virtual function
'Symbol::push_label' declared here: type mismatch at 1st parameter
('Function_Line' vs 'int')
virtual void push_label(Function_Line label);
^
1 error generated.
^