Debian Bug report logs - #1098126
xcolors: ftbfs with GCC-15

version graph

Package: src:xcolors; Maintainer for src:xcolors is Fredrik Hallenberg <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 18:02:02 UTC

Severity: important

Tags: forky, sid

Found in version xcolors/1.5a-10.1

Reply or subscribe to this bug.

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


Report forwarded to Fredrik Hallenberg <[email protected]>:
Bug#1098126; Package src:xcolors. (Mon, 17 Feb 2025 18:02:02 GMT) (full text, mbox, link).


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


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

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: xcolors: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 18:01:18 +0000
Package: src:xcolors
Version: 1.5a-10.1
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/xcolors_1.5a-10.1_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

[...]
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
test -f xcolors.c -a -f debian/rules
if test -f Makefile; then make clean; fi
rm -f build Makefile.bak Makefile
rm -rf *~ debian/xcolors debian/*~ debian/files*
dh_clean
 debian/rules binary
test -f xcolors.c -a -f debian/rules
xmkmf
imake -DUseInstalled -I/usr/lib/X11/config
make CC="gcc" CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xcolors-1.5a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" EXTRA_LDOPTIONS="-Wl,-z,relro"
make[1]: Entering directory '/build/reproducible-path/xcolors-1.5a'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xcolors-1.5a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o xcolors.o xcolors.c
xcolors.c: In function ‘do_set_color’:
xcolors.c:106:1: warning: old-style function definition [-Wold-style-definition]
  106 | do_set_color(w, colorname, foreground_flag)
      | ^~~~~~~~~~~~
xcolors.c: In function ‘set_foreground’:
xcolors.c:141:1: warning: old-style function definition [-Wold-style-definition]
  141 | set_foreground(w, event, params, num_params)
      | ^~~~~~~~~~~~~~
xcolors.c: In function ‘set_background’:
xcolors.c:152:1: warning: old-style function definition [-Wold-style-definition]
  152 | set_background(w, event, params, num_params)
      | ^~~~~~~~~~~~~~
xcolors.c: In function ‘quit_action’:
xcolors.c:163:1: warning: old-style function definition [-Wold-style-definition]
  163 | quit_action(w, event, params, num_params)
      | ^~~~~~~~~~~
xcolors.c: In function ‘main’:
xcolors.c:185:5: warning: old-style function definition [-Wold-style-definition]
  185 | int main(argc, argv)
      |     ^~~~
xcolors.c: In function ‘colordemo’:
xcolors.c:273:6: warning: old-style function definition [-Wold-style-definition]
  273 | void colordemo(parent, startcolor, nearcolor, maxdist)
      |      ^~~~~~~~~
xcolors.c:314:22: error: too many arguments to function ‘do_color’; expected 0, have 2
  314 |                 if (!do_color(parent, save_colorname))
      |                      ^~~~~~~~ ~~~~~~
xcolors.c:282:10: note: declared here
  282 |     Bool do_color();
      |          ^~~~~~~~
xcolors.c:324:13: error: too many arguments to function ‘do_color’; expected 0, have 2
  324 |       (void)do_color(parent, save_colorname);
      |             ^~~~~~~~ ~~~~~~
xcolors.c:282:10: note: declared here
  282 |     Bool do_color();
      |          ^~~~~~~~
xcolors.c: In function ‘do_color’:
xcolors.c:282:10: warning: old-style function definition [-Wold-style-definition]
xcolors.c:342:1: error: number of arguments doesn’t match prototype
  342 | {
      | ^
xcolors.c:282:10: error: prototype declaration
  282 |     Bool do_color();
      |          ^~~~~~~~
xcolors.c: In function ‘l_strcasecmp’:
xcolors.c:375:1: warning: old-style function definition [-Wold-style-definition]
  375 | l_strcasecmp(s1, s2)
      | ^~~~~~~~~~~~
xcolors.c: In function ‘colordemo’:
xcolors.c:296:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  296 |         fgets(str, 1024L, rgb);
      |         ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [<builtin>: xcolors.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/xcolors-1.5a'
make: *** [debian/rules:33: build-stamp] Error 2
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:20:55 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.