Package: src:bglibs
Version: 2.04+dfsg-7
Severity: important
Tags: sid forky
User: debian-...@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/bglibs_2.04+dfsg-7_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

[...]
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |            ^~~~~~
unix/selfpipe.c: In function 'selfpipe_catch_signal':
unix/selfpipe.c:19:3: warning: ignoring return value of 'write' declared with 
attribute 'warn_unused_result' [-Wunused-result]
   19 |   write(fds[1], &c, 1);
      |   ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1237: unix/selfpipe.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from unix/sig_all.c:4:
./sysdeps.h:91:12: error: conflicting types for 'select'; have 'int(void)'
   91 | extern int select();
      |            ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from ./sysdeps.h:5:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration 
of 'select' with type 'int(int,  fd_set * restrict,  fd_set * restrict,  fd_set 
* restrict,  struct timeval * restrict)'
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |            ^~~~~~
unix/sig_all.c: In function 'sig_all_block':
unix/sig_all.c:43:3: warning: 'sigblock' is deprecated 
[-Wdeprecated-declarations]
   43 |   sigblock(~(1 << (SIGPROF-1)) & ~(1 << (SIGSEGV-1)));
      |   ^~~~~~~~
In file included from unix/sig_all.c:1:
/usr/include/signal.h:173:12: note: declared here
  173 | extern int sigblock (int __mask) __THROW __attribute_deprecated__;
      |            ^~~~~~~~
unix/sig_all.c: In function 'sig_all_unblock':
unix/sig_all.c:54:3: warning: 'sigsetmask' is deprecated 
[-Wdeprecated-declarations]
   54 |   sigsetmask(0);
      |   ^~~~~~~~~~
/usr/include/signal.h:176:12: note: declared here
  176 | extern int sigsetmask (int __mask) __THROW __attribute_deprecated__;
      |            ^~~~~~~~~~
In file included from unix/sig_block.c:20:
./sysdeps.h:91:12: error: conflicting types for 'select'; have 'int(void)'
   91 | extern int select();
      |            ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from ./sysdeps.h:5:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration 
of 'select' with type 'int(int,  fd_set * restrict,  fd_set * restrict,  fd_set 
* restrict,  struct timeval * restrict)'
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |            ^~~~~~
make[2]: *** [Makefile:1243: unix/sig_all.lo] Error 1
unix/sig_block.c: In function 'sig_block':
unix/sig_block.c:30:3: warning: 'sigblock' is deprecated 
[-Wdeprecated-declarations]
   30 |   sigblock(1 << (s - 1));
      |   ^~~~~~~~
In file included from unix/sig_block.c:18:
/usr/include/signal.h:173:12: note: declared here
  173 | extern int sigblock (int __mask) __THROW __attribute_deprecated__;
      |            ^~~~~~~~
unix/sig_block.c: In function 'sig_unblock':
unix/sig_block.c:42:3: warning: 'sigsetmask' is deprecated 
[-Wdeprecated-declarations]
   42 |   sigsetmask(sigsetmask(~0) & ~(1 << (s - 1)));
      |   ^~~~~~~~~~
/usr/include/signal.h:176:12: note: declared here
  176 | extern int sigsetmask (int __mask) __THROW __attribute_deprecated__;
      |            ^~~~~~~~~~
unix/sig_block.c:42:3: warning: 'sigsetmask' is deprecated 
[-Wdeprecated-declarations]
   42 |   sigsetmask(sigsetmask(~0) & ~(1 << (s - 1)));
      |   ^~~~~~~~~~
/usr/include/signal.h:176:12: note: declared here
  176 | extern int sigsetmask (int __mask) __THROW __attribute_deprecated__;
      |            ^~~~~~~~~~
make[2]: *** [Makefile:1246: unix/sig_block.lo] Error 1
make[2]: Leaving directory '/build/reproducible-path/bglibs-2.04+dfsg'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" libraries 
man programs returned exit code 2
make[1]: *** [debian/rules:24: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/bglibs-2.04+dfsg'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to