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).
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
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/.