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

Full log


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

Received: (at maintonly) by bugs.debian.org; 17 Feb 2025 18:01:19 +0000
From [email protected] Mon Feb 17 18:01:19 2025
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-118.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_PACKAGE,
	USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
	autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 150; neutral, 214; spammy,
	0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--H*F:U*doko,
	0.000-+--qalogsdebiannet, 0.000-+--UD:qa-logs.debian.net,
	0.000-+--qa-logs.debian.net
Return-path: <[email protected]>
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:52400)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,[email protected] (verified)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk5Ql-00AmZx-B5
	for [email protected]; Mon, 17 Feb 2025 18:01:19 +0000
Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:57254)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=paradis.debian.org,[email protected] (verified)
	by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk5Qk-00GaK6-Ry
	for [email protected]; Mon, 17 Feb 2025 18:01:18 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.paradis; h=Date:Message-Id:Content-Transfer-Encoding:Content-Type:
	MIME-Version:From:Subject:To:Reply-To:Cc:Content-ID:Content-Description:
	In-Reply-To:References; bh=qTkEDEu6J1yHiti4USHUrV51T62qvO+AupJBVsIzAKA=; b=Ek
	INeQ4RHhdVdsQ0dVCIWCrJT6nD8ZPfURF6JIKEAirtbe/xK8BrjIrfySd3UZqMjnm7kWI94APoZ3E
	wQSfdXe8sF7y7zndH3Ll6E3MMa4tp0R4WfYrr9NdFM7hLOY0C7kWuyOtXCMQuirzayIBRAirIbrPp
	Ouj6I9rWw4eKsuilmyjIQSGd0VK9j44yDKbEjdWH61W9wxX0JVPj7zNho2FR7gUcRpYhBFavzH0Xh
	DilSMpH2lQ0z9k32nc7nzye43dAg4ZbrOmJYYaNgmlo5R9LIHd9Pa5UeODbNaFwIfNG3pTDbIiN2b
	5Qgzw4Pia0qI6MpNUUFOFh+lIA8t9jiw==;
Received: from doko by paradis.debian.org with local (Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tk5Qk-009RdW-2H
	for [email protected]; Mon, 17 Feb 2025 18:01:18 +0000
To: [email protected]
Subject: xcolors: ftbfs with GCC-15
From: Matthias Klose <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <[email protected]>
Date: Mon, 17 Feb 2025 18:01:18 +0000
Delivered-To: [email protected]
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 17:39:48 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.