Debian Bug report logs - #1097311
logtool: ftbfs with GCC-15

version graph

Package: src:logtool; Maintainer for src:logtool is Wouter Verhelst <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:37:15 UTC

Severity: important

Tags: forky, sid

Found in version logtool/1.2.8-14

Reply or subscribe to this bug.

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


Report forwarded to Wouter Verhelst <[email protected]>:
Bug#1097311; Package src:logtool. (Mon, 17 Feb 2025 17:37:15 GMT) (full text, mbox, link).


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


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

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: logtool: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 17:35:07 +0000
Package: src:logtool
Version: 1.2.8-14
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/logtool_1.2.8-14_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 Makefile
config.status: creating conf/logtool.conf
config.status: creating doc/logtool.1
config.status: creating doc/logtool.txt
config.status: creating config.h
config.status: config.h is unchanged


Build was configured as follows:

Prefix:					/usr
Configuration files wil be placed in:	/etc/logtool
Binaries will be placed in:		/usr/bin
Using this install program:		/usr/bin/install -c
We will use the following compiler:	gcc
With the following CFLAGS:              -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
With the following DEFS:                -DHAVE_CONFIG_H
With the following LIBS:                
make[1]: Leaving directory '/build/reproducible-path/logtool-1.2.8'
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/reproducible-path/logtool-1.2.8'
cd src ; make
make[2]: Entering directory '/build/reproducible-path/logtool-1.2.8/src'
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H readconf.c -o readconf.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H getopt.c -o getopt.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H regex.c -o regex.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H parser.c -o parser.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H ansi.c -o ansi.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H ascii.c -o ascii.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H tai64nfrac.c -o tai64nfrac.o
gcc -c  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/logtool-1.2.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DHAVE_CONFIG_H csv.c -o csv.o
readconf.c:22:6: error: conflicting types for ‘lt_set_config_err’; have ‘void(char *, char *)’
   22 | void lt_set_config_err(char *option, char *val) {
      |      ^~~~~~~~~~~~~~~~~
In file included from includes.h:56,
                 from readconf.c:21:
logtool.h:34:6: note: previous declaration of ‘lt_set_config_err’ with type ‘void(void)’
   34 | void lt_set_config_err();
      |      ^~~~~~~~~~~~~~~~~
getopt.c:101:6: error: conflicting types for ‘lt_getopts’; have ‘void(int,  char **)’
  101 | void lt_getopts(int argc, char **argv)
      |      ^~~~~~~~~~
In file included from includes.h:56,
                 from getopt.c:21:
logtool.h:55:6: note: previous declaration of ‘lt_getopts’ with type ‘void(void)’
   55 | void lt_getopts();
      |      ^~~~~~~~~~
make[2]: *** [Makefile:25: readconf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:25: getopt.o] Error 1
regex.c: In function ‘lt_load_regex’:
regex.c:123:33: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  123 |                                 strncat(*dest, tmp, strlen(tmp) + 1);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:123:53: note: length computed here
  123 |                                 strncat(*dest, tmp, strlen(tmp) + 1);
      |                                                     ^~~~~~~~~~~
regex.c:119:33: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  119 |                                 strncat(*dest, tmp, strlen(tmp) + 1);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex.c:119:53: note: length computed here
  119 |                                 strncat(*dest, tmp, strlen(tmp) + 1);
      |                                                     ^~~~~~~~~~~
make[2]: Leaving directory '/build/reproducible-path/logtool-1.2.8/src'
make[1]: *** [Makefile:3: build_it] Error 2
make[1]: Leaving directory '/build/reproducible-path/logtool-1.2.8'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: fakeroot 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:07:54 2025; Machine Name: buxtehude

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.