[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1096694: genparse: ftbfs with GCC-15



Package: src:genparse
Version: 0.9.3-2
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
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/genparse_0.9.3-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

[...]
exmf-dist/fonts/type1/public/amsfonts/cm/cmtt12.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmtt9.pfb>
Output written on genparse.pdf (45 pages, 241570 bytes).
Transcript written on genparse.log.
make[3]: Leaving directory '/build/reproducible-path/genparse-0.9.3/doc'
Making all in examples
make[3]: Entering directory '/build/reproducible-path/genparse-0.9.3/examples'
gcc -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o mycopy1.o mycopy1.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o mycopy2.o mycopy2.c
g++ -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++14 -c -o getopt.o getopt.cc
gcc -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o mycopy3_clp.o mycopy3_clp.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o mycopy3.o mycopy3.c
g++ -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++14 -o mycopy4_clp.o -c ./mycopy4_clp.cc
g++ -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++14 -c -o mycopy4_clp_cb.o mycopy4_clp_cb.cc
g++ -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=c++14 -o mycopy4.o -c ./mycopy4.cc
gcc -DHAVE_CONFIG_H -I. -I..  -I./../gnulib/lib -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/genparse-0.9.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o rm_clp.o rm_clp.c
In file included from mycopy3.c:5:
mycopy3_clp.h:22:3: error: cannot use keyword ‘false’ as enumeration constant
   22 |   false = 0, true
      |   ^~~~~
mycopy3_clp.h:22:3: note: ‘false’ is a keyword with ‘-std=c23’ onwards
mycopy3_clp.h:23:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   23 | } bool;
      |   ^~~~
mycopy3_clp.h:23:3: warning: useless type name in empty declaration
In file included from mycopy3_clp.c:20:
mycopy3_clp.h:22:3: error: cannot use keyword ‘false’ as enumeration constant
   22 |   false = 0, true
      |   ^~~~~
mycopy3_clp.h:22:3: note: ‘false’ is a keyword with ‘-std=c23’ onwards
mycopy3_clp.h:23:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   23 | } bool;
      |   ^~~~
mycopy3_clp.h:23:3: warning: useless type name in empty declaration
make[3]: *** [Makefile:748: mycopy3.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:748: mycopy3_clp.o] Error 1
In file included from rm_clp.c:16:
rm_clp.h:19:3: error: cannot use keyword ‘false’ as enumeration constant
   19 |   false = 0, true
      |   ^~~~~
rm_clp.h:19:3: note: ‘false’ is a keyword with ‘-std=c23’ onwards
rm_clp.h:20:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
   20 | } bool;
      |   ^~~~
rm_clp.h:20:3: warning: useless type name in empty declaration
make[3]: *** [Makefile:748: rm_clp.o] Error 1
In file included from ./mycopy4_clp.cc:19:
./mycopy4_clp.h:47:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   47 |   Cmdline (int, char **) throw (std::string);
      |                          ^~~~~
./mycopy4_clp.cc:29:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   29 | Cmdline::Cmdline (int argc, char *argv[]) throw (std::string )
      |                                           ^~~~~
In file included from mycopy4_clp_cb.cc:17:
mycopy4_clp.h:47:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   47 |   Cmdline (int, char **) throw (std::string);
      |                          ^~~~~
In file included from ./mycopy4.cc:6:
./mycopy4_clp.h:47:26: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   47 |   Cmdline (int, char **) throw (std::string);
      |                          ^~~~~
make[3]: Leaving directory '/build/reproducible-path/genparse-0.9.3/examples'
make[2]: *** [Makefile:635: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/genparse-0.9.3'
make[1]: *** [Makefile:576: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/genparse-0.9.3'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:22: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: