Debian Bug report logs - #1096559
eb: ftbfs with GCC-15

version graph

Package: src:eb; Maintainer for src:eb is Tatsuya Kinoshita <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Mon, 17 Feb 2025 17:12:42 UTC

Severity: important

Tags: forky, sid

Found in version eb/4.4.3-14.3

Reply or subscribe to this bug.

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


Report forwarded to Tatsuya Kinoshita <[email protected]>:
Bug#1096559; Package src:eb. (Mon, 17 Feb 2025 17:12:43 GMT) (full text, mbox, link).


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


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

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: eb: ftbfs with GCC-15
Date: Mon, 17 Feb 2025 17:11:04 +0000
Package: src:eb
Version: 4.4.3-14.3
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/eb_4.4.3-14.3_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

[...]
libtool: link: x86_64-linux-gnu-ar cru .libs/libeb.a  appendix.o appsub.o bcd.o binary.o bitmap.o book.o booklist.o copyright.o cross.o eb.o endword.o error.o exactword.o filename.o font.o hook.o jacode.o keyword.o lock.o log.o match.o menu.o multi.o narwalt.o narwfont.o readtext.o search.o setword.o stopcode.o strcasecmp.o subbook.o text.o widealt.o widefont.o word.o zio.o ebnet.o multiplex.o linebuf.o urlparts.o getaddrinfo.o dummyin6.o
x86_64-linux-gnu-ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: x86_64-linux-gnu-ranlib .libs/libeb.a
libtool: link: ( cd ".libs" && rm -f "libeb.la" && ln -s "../libeb.la" "libeb.la" )
make[4]: Leaving directory '/build/reproducible-path/eb-4.4.3/eb'
make[3]: Leaving directory '/build/reproducible-path/eb-4.4.3/eb'
Making all in libebutils
make[3]: Entering directory '/build/reproducible-path/eb-4.4.3/libebutils'
rm -f ebutils.h.tmp
echo '/* automatically generated from ebutils.h.in. */' \
   > ebutils.h.tmp
sed -e 's;\@localedir\@;/usr/share/locale;' \
   ./ebutils.h.in >> ebutils.h.tmp
../move-if-change ebutils.h.tmp ebutils.h
/usr/bin/make  all-am
make[4]: Entering directory '/build/reproducible-path/eb-4.4.3/libebutils'
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I..    -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/eb-4.4.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MT ebutils.o -MD -MP -MF .deps/ebutils.Tpo -c -o ebutils.o ebutils.c
mv -f .deps/ebutils.Tpo .deps/ebutils.Po
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I..    -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/eb-4.4.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
getopt.c:90:14: error: conflicting types for ‘getenv’; have ‘char *(void)’
   90 | extern char *getenv();
      |              ^~~~~~
In file included from getopt.c:46:
/usr/include/stdlib.h:773:14: note: previous declaration of ‘getenv’ with type ‘char *(const char *)’
  773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;
      |              ^~~~~~
getopt.c: In function ‘getopt_internal’:
getopt.c:77:29: error: too many arguments to function ‘getenv’; expected 0, have 1
   77 | #define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
      |                             ^~~~~~ ~~~~~~~~~~~~~~~~~
getopt.c:80:27: note: in expansion of macro ‘IS_POSIXLY_CORRECT’
   80 | #define IN_ORDER        (!IS_POSIXLY_CORRECT && *options == '-')
      |                           ^~~~~~~~~~~~~~~~~~
getopt.c:219:29: note: in expansion of macro ‘IN_ORDER’
  219 |                         if (IN_ORDER) {
      |                             ^~~~~~~~
getopt.c:90:14: note: declared here
   90 | extern char *getenv();
      |              ^~~~~~
getopt.c:77:29: error: too many arguments to function ‘getenv’; expected 0, have 1
   77 | #define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
      |                             ^~~~~~ ~~~~~~~~~~~~~~~~~
getopt.c:78:27: note: in expansion of macro ‘IS_POSIXLY_CORRECT’
   78 | #define PERMUTE         (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
      |                           ^~~~~~~~~~~~~~~~~~
getopt.c:227:30: note: in expansion of macro ‘PERMUTE’
  227 |                         if (!PERMUTE) {
      |                              ^~~~~~~
getopt.c:90:14: note: declared here
   90 | extern char *getenv();
      |              ^~~~~~
getopt.c:77:29: error: too many arguments to function ‘getenv’; expected 0, have 1
   77 | #define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
      |                             ^~~~~~ ~~~~~~~~~~~~~~~~~
getopt.c:261:29: note: in expansion of macro ‘IS_POSIXLY_CORRECT’
  261 |                         if (IS_POSIXLY_CORRECT)
      |                             ^~~~~~~~~~~~~~~~~~
getopt.c:90:14: note: declared here
   90 | extern char *getenv();
      |              ^~~~~~
make[4]: *** [Makefile:288: getopt.o] Error 1
make[4]: Leaving directory '/build/reproducible-path/eb-4.4.3/libebutils'
make[3]: *** [Makefile:230: all] Error 2
make[3]: Leaving directory '/build/reproducible-path/eb-4.4.3/libebutils'
make[2]: *** [Makefile:353: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/eb-4.4.3'
make[1]: *** [Makefile:245: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/eb-4.4.3'
make: *** [debian/rules:38: build-arch-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:23:57 2025; Machine Name: bembo

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.