[Debichem-devel] Bug#984039: drawxtl: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:11:42 GMT 2021


Package: src:drawxtl
Version: 5.5-5
Severity: normal
Tags: sid bookworm
User: debian-gcc at 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/drawxtl_5.5-5_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.

[...]
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
/usr/include/c++/11/tr1/ell_integral.tcc: In function ‘_Tp std::__detail::__ellint_rd(_Tp, _Tp, _Tp)’:
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
/usr/include/c++/11/tr1/ell_integral.tcc: In function ‘_Tp std::__detail::__ellint_rj(_Tp, _Tp, _Tp, _Tp)’:
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
CrystalView.h:34:18: error: expected unqualified-id before ‘(’ token
   34 | #define max(a,b) ((a) >= (b) ? (a) : (b))
      |                  ^
In file included from /usr/include/c++/11/math.h:36,
                 from DRAWxtl1.cxx:45:
/usr/include/c++/11/cmath: At global scope:
/usr/include/c++/11/cmath:1930:1: error: expected declaration before ‘}’ token
 1930 | } // extern "C++"
      | ^
make[2]: *** [Makefile:177: DRAWxtl1.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CrystalView.cxx: In function ‘void Load_Bond_Data(const char*, char*)’:
CrystalView.cxx:1359:27: warning: ‘%4s’ directive writing between 4 and 4999 bytes into a region of size 100 [-Wformat-overflow=]
 1359 |         sprintf (string, "%4s  %8.3f\n", atoms[i], d_list[i]);
      |                           ^~~
In file included from /usr/include/stdio.h:867,
                 from CrystalView.cxx:44:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 16 and 5317 bytes into a destination of size 100
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |                                   __bos (__s), __fmt, __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CrystalView.cxx: In function ‘void ImportDataFile_cb(Fl_Widget*, void*)’:
CrystalView.cxx:1108:54: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 230 [-Wformat-truncation=]
 1108 |                           "The implied output file ('%s') could not be created.",
      |                                                      ^~
In file included from /usr/include/stdio.h:867,
                 from CrystalView.cxx:44:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 51 and 1074 bytes into a destination of size 256
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |                                    __bos (__s), __fmt, __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CrystalView.cxx: In function ‘void SelectDataFile_cb()’:
CrystalView.cxx:2227:55: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 232 [-Wformat-overflow=]
 2227 |             sprintf (string, "The file you selected ('%s') cannot be read\n"
      |                                                       ^~
In file included from /usr/include/stdio.h:867,
                 from CrystalView.cxx:44:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 67 and 1090 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |                                   __bos (__s), __fmt, __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>/source/DRAWxtl55'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" -C source/DRAWxtl55/ OS=Linux prefix=/usr includedir=/usr/include libdir=/usr/lib/ "LINKFLTKGL=-lfltk_gl -lfltk -lgl2ps -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed" "OPTIM=-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wunused -fno-exceptions" returned exit code 2
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:18: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debichem-devel mailing list