#1096486 csh: ftbfs with GCC-15

Package:
src:csh
Source:
src:csh
Submitter:
Matthias Klose
Date:
2025-09-05 09:37:03 UTC
Severity:
normal
Tags:
#1096486#5
Date:
2025-02-17 17:08:45 UTC
From:
To:
[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/csh_20240808-2_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

[...]

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package csh
dpkg-buildpackage: info: source version 20240808-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Alastair McKinstry <mckinstry@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --buildsystem=bmake
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/build/reproducible-path/csh-20240808'
dh_auto_clean
	bmake cleandir
rm -f a.out [Ee]rrs mklog core *.core  csh alloc.o char.o const.o csh.o dir.o dol.o error.o exec.o exp.o file.o func.o glob.o hist.o init.o lex.o misc.o parse.o proc.o sem.o set.o str.o time.o  alloc.ln char.ln const.ln csh.ln dir.ln dol.ln error.ln exec.ln exp.ln file.ln func.ln glob.ln hist.ln init.ln lex.ln misc.ln parse.ln proc.ln sem.ln set.ln str.ln time.ln error.h const.h .depend alloc.d char.d const.d csh.d dir.d dol.d error.d exec.d exp.d file.d func.d glob.d hist.d init.d lex.d misc.d parse.d proc.d sem.d set.d str.d time.d y.tab.d *.tmp.d
rm -f .depend alloc.d char.d const.d csh.d dir.d dol.d error.d exec.d exp.d file.d func.d glob.d hist.d init.d lex.d misc.d parse.d proc.d sem.d set.d str.d time.d y.tab.d *.tmp.d
rm -f .depend /build/reproducible-path/csh-20240808/tags
dh_auto_clean -- -C USD.doc
	bmake cleandir -C USD.doc
rm -f paper.* [eE]rrs mklog
rm -f *.cat1
make[1]: Leaving directory '/build/reproducible-path/csh-20240808'
   dh_autoreconf_clean -O--buildsystem=bmake
   dh_clean -O--buildsystem=bmake
 debian/rules binary
dh binary --buildsystem=bmake
   dh_update_autotools_config -O--buildsystem=bmake
   dh_autoreconf -O--buildsystem=bmake
   dh_auto_configure -O--buildsystem=bmake
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/csh-20240808'
dh_auto_build
	bmake
egrep 'ERR_' /build/reproducible-path/csh-20240808/error.c | egrep '^#define' >> error.h
x86_64-linux-gnu-gcc -E -g -O2  -w -fcommon -I/build/reproducible-path/csh-20240808 -I. -D_GNU_SOURCE                   -MD -MF const.d -MT const.o /build/reproducible-path/csh-20240808/const.c | egrep 'Char STR' |  sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' |  sort >> const.h
x86_64-linux-gnu-gcc -g -O2  -w -fcommon -I/build/reproducible-path/csh-20240808 -I. -D_GNU_SOURCE                   -MD -MF alloc.d -MT alloc.o -Wdate-time -D_FORTIFY_SOURCE=2           -c alloc.c
In file included from alloc.c:39:
csh.h:84:13: error: ‘bool’ cannot be defined via ‘typedef’
   84 | typedef int bool;
      |             ^~~~
csh.h:84:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
*** Error code 1

Stop.
bmake[2]: stopped in /build/reproducible-path/csh-20240808
dh_auto_build: error: bmake returned exit code 1
make[1]: *** [debian/rules:15: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/csh-20240808'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096486#14
Date:
2025-09-05 09:35:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
csh, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1096486@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated csh package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 05 Sep 2025 10:09:27 +0100
Source: csh
Architecture: source
Version: 20240808-3
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1096486
Changes:
 csh (20240808-3) unstable; urgency=medium
 .
   * Fix FTBFS with std23 C. (std23.diff). Closes: #1096486
   * Standards-Version: 4.7.2
Checksums-Sha1:
 b714091f05e00bd3a3c9336450e9581243b0007d 1908 csh_20240808-3.dsc
 f2f6ddef6e372b447a0d01b0dc110d39b495e6d3 13972 csh_20240808-3.debian.tar.xz
Checksums-Sha256:
 51d0bb43d551baa6d74236eb860cd56db3567c84c6f31018f66f2851835ac87b 1908 csh_20240808-3.dsc
 1c1c0cdb5af7b53bbe4ca4e81dc6fe491218aaf9a0f968029067bec22ae93484 13972 csh_20240808-3.debian.tar.xz
Files:
 9bd02ef1220dcea5c4beea36630eb80f 1908 shells optional csh_20240808-3.dsc
 0959cda965a0d00afc674a2ac707f64b 13972 shells optional csh_20240808-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmi6qakACgkQy+a7Tl2a
06W9IQ/9E4GZK44i4cbuBhH7ultb5WQgtcfXCnQKLJ1sLLS68DteNs+08Ti06Q+j
62p3CbObCgUm/Zobk3ir6/rmarz/JK72tBifyq5MkWQb6w3mX7n8SVDN5A9c+gZ7
uH1AnNa0EKp0zyOUH+O3gteMPTGECz3vG6L8HU956tnxiLv8S+NEl72096pnfrfb
CYMGQ2NackGdp3jjNxpAhJ0k4EKeG7PIwpNZaQFVPD0p4eP4euIbk7wh4feC85hy
hxsAgAtq//viAPPJJV2W7/HQ+rUNOXH8Ry6PLxd48VfoASrEA+IBeYBnqfAFhBLp
K/HmMSeFshLtW4tGUurqubN08DPaKJ6EQMebqj3WWwwbUeGoRr5bo6mChJ+0Ai0o
WZsmw6Y3XVOy8NCYaHT69ypmjcpBgWWIVguNbU5nA963nOlrNmq0epVqOiv/CHuG
nRS9ZZLa+icUfG7LMu4j7rwfrNVpMqBwMO+uoKf2ljTiZEiUCercot6EwXLUHVWu
0WwH3U0ab63yv6dFcPZvYetVGfwIJkDxTxzw84m+aepjm4h0ehTD0wx8+FMd/Gbf
VJMZRDvuxCxz93x4raZUYs7Ve/BtGdWMZLT8CrzbPBSiJoThNWnWxd5sb6k0ns8i
3VRvgQL/zp4T0zcli0gHavGQfCi3vFSLv9l+Ufvm/fmNTZqQQOQ=
=Ue9t
-----END PGP SIGNATURE-----