Bug#984030: d-itg: ftbfs with GCC-11
Package: src:d-itg
Version: 2.8.1-r1023-4
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/d-itg_2.8.1-r1023-4_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
| ^~~~~~
newran2.cpp: In function ‘DividedRandom& operator/(Random&, Random&)’:
newran2.cpp:1003:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1003 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1003:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1003 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
newran2.cpp: In function ‘AddedSelectedRandom& operator+(SelectedRandom&, SelectedRandom&)’:
newran2.cpp:1121:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1121 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1121:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1121 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
newran2.cpp: In function ‘AddedSelectedRandom& operator+(AddedSelectedRandom&, SelectedRandom&)’:
newran2.cpp:1128:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1128 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1128:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1128 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
newran2.cpp: In function ‘AddedSelectedRandom& operator+(SelectedRandom&, AddedSelectedRandom&)’:
newran2.cpp:1135:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1135 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1135:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1135 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
newran2.cpp: In function ‘AddedSelectedRandom& operator+(AddedSelectedRandom&, AddedSelectedRandom&)’:
newran2.cpp:1142:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1142 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1142:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1142 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
newran2.cpp: In member function ‘SelectedRandom& Random::operator()(double)’:
newran2.cpp:1148:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
1148 | if (!r) ErrorNoSpace(); return *r;
| ^~
newran2.cpp:1148:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
1148 | if (!r) ErrorNoSpace(); return *r;
| ^~~~~~
[ CXX ] myexcept.o <- myexcept.cpp
[ CXX ] simpstr.o <- simpstr.cpp
simpstr.cpp: In constructor ‘SimpleString::SimpleString(unsigned int, char)’:
simpstr.cpp:46:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
46 | while (i--) *s1++ = c; *s1 = 0;
| ^~~~~
simpstr.cpp:46:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
46 | while (i--) *s1++ = c; *s1 = 0;
| ^
[ CXX ] extreal.o <- extreal.cpp
[ AR ] libnewran.a <- newran1.o newran2.o myexcept.o simpstr.o extreal.o
[ RL ] libnewran.a
[ CXX ] traffic.o <- traffic.cpp
traffic.cpp: In function ‘void burstyParser(int&, char**, int&, unsigned int, SumRandom**, SumRandom**, TDistro&, TDistro&)’:
traffic.cpp:415:56: error: ordered comparison of pointer with integer zero (‘char*’ and ‘int’)
415 | if ((argc < 5) || (argv[h + 2] <= 0))
| ~~~~~~~~~~~~^~~~
traffic.cpp:541:56: error: ordered comparison of pointer with integer zero (‘char*’ and ‘int’)
541 | if ((argc < 3) || (argv[h + 2] <= 0))
| ~~~~~~~~~~~~^~~~
make[3]: *** [../common.mk:8: traffic.o] Error 1
make[2]: *** [unix.mk:182: ITGSend] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [debian/rules:16: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: