[Debichem-devel] Bug#957987: xmakemol: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:14:09 BST 2020


Package: src:xmakemol
Version: 5.16-9
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/xmakemol_5.16-9_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../menus.c
../edit.c: In function ‘make_edit_posn_dialog’:
../edit.c:1073:45: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
 1073 |             sprintf(istring,"Toggle %s atoms",element[i].label);
      |                                             ^
In file included from /usr/include/stdio.h:867,
                 from ../edit.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 14 and 17 bytes into a destination of size 16
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../region.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../rotate.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../sort.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../store.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../track.c
../track.c: In function ‘track_cb’:
../track.c:101:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  101 |   int item_no = (int) client_data;
      |                 ^
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../translate.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../utils.c
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../vectors.c
../track.c: In function ‘select_atom_for_measure.part.0’:
../track.c:385:70: warning: ‘%9.4f’ directive writing between 9 and 315 bytes into a region of size between 0 and 13 [-Wformat-overflow=]
  385 |       sprintf (message, "Atom %d selected: x = %9.4f, y = %9.4f, z = %9.4f",
      |                                                                      ^~~~~
In file included from /usr/include/stdio.h:867,
                 from ../track.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 61 and 989 bytes into a destination of size 64
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../view.c
../view.c: In function ‘view_cb’:
../view.c:54:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   54 |   int item_no = (int) client_data;
      |                 ^
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../xmakemol.c
../file.c: In function ‘merge_file_cb’:
../file.c:825:66: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 3 [-Wformat-overflow=]
  825 |               sprintf (eof_string, " - merge stopped after frame %d", i);
      |                                                                  ^~
../file.c:825:36: note: directive argument in the range [0, 2147483647]
  825 |               sprintf (eof_string, " - merge stopped after frame %d", i);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../file.c:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 31 and 40 bytes into a destination of size 32
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I.. -I.   -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -c ../gl2ps.c
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DELEMENTS=\"/usr/share/xmakemol/elements\" -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed  -o xmakemol  animate.o basename.o bbox.o canvas.o control.o crystal.o draw.o edit.o fig.o file.o frames.o gl_funcs.o help.o menus.o region.o rotate.o sort.o store.o track.o translate.o utils.o vectors.o view.o xmakemol.o gl2ps.o -lXm -lXt -lXpm -lXext -lXi -lX11 -lm
/usr/bin/ld: xmakemol.o:./normal/../globals.h:225: multiple definition of `bbox'; bbox.o:(.bss+0x60): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:269: xmakemol] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/normal'
dh_auto_build: error: cd normal && make -j4 returned exit code 2
make[1]: *** [debian/rules:27: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debichem-devel mailing list