Package: src:ng
Version: 1.5~beta1-13
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/ng_1.5~beta1-13_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

[...]
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for fd_set... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether x86_64-linux-gnu-gcc needs -traditional... no
checking for 8-bit clean memcmp... no
checking return type of signal handlers... int
checking for vfork.h... no
checking for working vfork... no
checking for getcwd... yes
checking for rmdir... yes
checking for rename... yes
checking for opendir... yes
checking for select... yes
checking for mkstemp... yes
checking for bcopy... yes
checking for bzero... yes
checking for bcmp... yes
checking for rindex... yes
checking for symlink... yes
checking for dup2... yes
checking for sigprocmask... yes
checking for getgroups... yes
checking for cp... (cached) /bin/cp
checking for mv... (cached) /bin/mv
checking for ls... (cached) /bin/ls
checking for rmdir... (cached) /bin/rmdir
checking if --enable-canna option specified... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating sysconfig.h
/usr/bin/make
make[2]: Entering directory '/build/reproducible-path/ng-1.5~beta1'
rm -f ttydef.h
ln sys/default/ttydef.h .
rm -f sysdef.h
ln sys/unix/sysdef.h .
rm -f chrdef.h
ln sys/default/chrdef.h .
x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/ng-1.5~beta1=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -DHAVE_CONFIG_H -Wdate-time 
-D_FORTIFY_SOURCE=2  -c -o autosave.o autosave.c
In file included from def.h:70,
                 from autosave.c:23:
sysdef.h:95:7: error: conflicting types for ‘getenv’; have ‘char *(void)’
   95 | char *getenv();
      |       ^~~~~~
In file included from def.h:68:
/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;
      |              ^~~~~~
autosave.c: In function ‘autosave_check’:
autosave.c:40:1: warning: old-style function definition [-Wold-style-definition]
   40 | autosave_check(flag)
      | ^~~~~~~~~~~~~~
autosave.c: In function ‘del_autosave_file’:
autosave.c:98:1: warning: old-style function definition [-Wold-style-definition]
   98 | del_autosave_file(name)
      | ^~~~~~~~~~~~~~~~~
autosave.c: In function ‘as_set_interval’:
autosave.c:123:1: warning: old-style function definition 
[-Wold-style-definition]
  123 | as_set_interval(f, n)
      | ^~~~~~~~~~~~~~~
make[2]: *** [<builtin>: autosave.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/ng-1.5~beta1'
make[1]: *** [debian/rules:27: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/build/reproducible-path/ng-1.5~beta1'
make: *** [debian/rules:18: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to