[Debichem-devel] Bug#1075670: xmakemol: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:48:58 BST 2024


Package: src:xmakemol
Version: 5.16-10
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/xmakemol_5.16-10_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

[...]
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
../file.c: In function ‘file_cb’:
../file.c:124:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  124 |   int item_no=(int) client_data, i, j;/* aro */
      |               ^
../file.c: In function ‘file_type_cb’:
../file.c:628:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  628 |   file_type = (int) client_data;
      |               ^
../file.c: In function ‘export_type_cb’:
../file.c:634:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  634 |   export_type = (int) client_data;
      |                 ^
../file.c: In function ‘merge_file_cb’:
../file.c:819:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  819 |           fgets (buf, sizeof (buf), merge_file);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c:832:15: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  832 |               fgets (buf, sizeof (buf), merge_file);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c:871:15: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  871 |               fgets (buf, sizeof (buf), merge_file);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c: In function ‘print_file_cb’:
../file.c:1052:11: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1052 |           system(p_command);
      |           ^~~~~~~~~~~~~~~~~
../file.c: In function ‘open_file’:
../file.c:1208:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1208 |       fgets (buf, sizeof (buf), in_file);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c:1221:11: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1221 |           fgets(buf, sizeof (buf), in_file);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c: In function ‘read_aux’:
../file.c:2721:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2721 |       fgets (buf, sizeof (buf), aux_file);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c: In function ‘set_current_directory’:
../file.c:4074:5: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 4074 |     chdir (s);
      |     ^~~~~~~~~
../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, 2147483646]
  825 |               sprintf (eof_string, " - merge stopped after frame %d", i);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:964,
                 from ../file.c:35:
In function ‘sprintf’,
    inlined from ‘merge_file_cb’ at ../file.c:825:15:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 31 and 40 bytes into a destination of size 32
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/<<PKGBUILDDIR>>/normal'
dh_auto_build: error: cd normal && make -j8 returned exit code 2
make[1]: *** [debian/rules:27: override_dh_auto_build] Error 255
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