Debian Bug report logs - #1096521
dia2code: ftbfs with GCC-15

version graph

Package: src:dia2code; Maintainer for src:dia2code is Francesco Aloe <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:12:10 UTC

Severity: important

Tags: forky, sid

Found in version dia2code/0.8.3-4.3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Francesco Aloe <[email protected]>:
Bug#1096521; Package src:dia2code. (Mon, 17 Feb 2025 17:12:11 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Francesco Aloe <[email protected]>. (Mon, 17 Feb 2025 17:12:11 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: dia2code: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 17:09:51 +0000
Package: src:dia2code
Version: 0.8.3-4.3
Severity: important
Tags: sid forky
User: [email protected]
Usertags: ftbfs-gcc-15

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

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/dia2code_0.8.3-4.3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
config.status: creating config.h
config.status: executing depfiles commands
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/dia2code-0.8.3'
make  all-recursive
make[2]: Entering directory '/build/reproducible-path/dia2code-0.8.3'
Making all in dia2code
make[3]: Entering directory '/build/reproducible-path/dia2code-0.8.3/dia2code'
Making all in docs
make[4]: Entering directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs'
Making all in en
make[5]: Entering directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs/en'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs/en'
make[5]: Entering directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs'
make[4]: Leaving directory '/build/reproducible-path/dia2code-0.8.3/dia2code/docs'
make[4]: Entering directory '/build/reproducible-path/dia2code-0.8.3/dia2code'
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o dia2code.o dia2code.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o main.o main.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o parse_diagram.o parse_diagram.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o scan_tree.o scan_tree.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o generate_code_c.o generate_code_c.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o generate_code_java.o generate_code_java.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o generate_code_cpp.o generate_code_cpp.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2   -Wdate-time -D_FORTIFY_SOURCE=2 -DDSO  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/dia2code-0.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o generate_code_ada.o generate_code_ada.c
dia2code.c:646:6: error: conflicting types for ‘d2c_indent’; have ‘void(FILE *)’
  646 | void d2c_indent(FILE *f)
      |      ^~~~~~~~~~
In file included from dia2code.c:18:
dia2code.h:235:6: note: previous declaration of ‘d2c_indent’ with type ‘void(void)’
  235 | void d2c_indent();
      |      ^~~~~~~~~~
dia2code.c:651:6: error: conflicting types for ‘d2c_outdent’; have ‘void(FILE *)’
  651 | void d2c_outdent(FILE *f)
      |      ^~~~~~~~~~~
dia2code.h:236:6: note: previous declaration of ‘d2c_outdent’ with type ‘void(void)’
  236 | void d2c_outdent();
      |      ^~~~~~~~~~~
make[4]: *** [Makefile:480: dia2code.o] Error 1
make[4]: *** Waiting for unfinished jobs....
generate_code_ada.c: In function ‘gen_class’:
generate_code_ada.c:284:33: warning: ‘.Object’ directive writing 7 bytes into a region of size between 1 and 80 [-Wformat-overflow=]
  284 |         sprintf (parentname, "%s.Object", parent->key->name);
      |                                 ^~~~~~~
In file included from /usr/include/stdio.h:970,
                 from /usr/include/malloc.h:25,
                 from dia2code.h:23,
                 from generate_code_ada.c:20:
In function ‘sprintf’,
    inlined from ‘gen_class’ at generate_code_ada.c:284:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 8 and 87 bytes into a destination of size 80
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
make[4]: Leaving directory '/build/reproducible-path/dia2code-0.8.3/dia2code'
make[3]: *** [Makefile:496: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/dia2code-0.8.3/dia2code'
make[2]: *** [Makefile:369: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/dia2code-0.8.3'
make[1]: *** [Makefile:310: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/dia2code-0.8.3'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:12:15 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.