[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/scalpel_1.60+git20240110.6960eb2-1_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
[...]
dh_auto_configure
dh_auto_build
make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/build/reproducible-path/scalpel-1.60+git20240110.6960eb2'
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c helpers.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c scalpel.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c files.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c dig.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c prioque.c
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/scalpel-1.60+git20240110.6960eb2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -Wl,-z,relro -Wl,-z,now -Wdate-time -D_FORTIFY_SOURCE=2 -D__LINUX -c base_name.c
scalpel.c: In function ‘registerSignalHandlers’:
scalpel.c:312:22: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
312 | signal(SIGWINCH, setttywidth);
| ^~~~~~~~~~~
| |
| void (*)(void)
In file included from scalpel.h:48,
from scalpel.c:33:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
scalpel.h:347:6: note: ‘setttywidth’ declared here
347 | void setttywidth();
| ^~~~~~~~~~~
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
scalpel.c: In function ‘convertFileNames’:
scalpel.c:505:3: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
505 | realpath(state->outputdirectory,fn);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:6: scalpel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
dig.c: In function ‘setupAuditFile’:
dig.c:197:3: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
197 | realpath(state->imagefile,imageFile);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dig.c: In function ‘carveImageFile’:
dig.c:837:45: warning: ‘%08llu’ directive output may be truncated writing between 8 and 20 bytes into a region of size between 0 and 4095 [-Wformat-truncation=]
837 | snprintf(fn,MAX_STRING_LENGTH,"%s/%08llu.%s",
| ^~~~~~
In file included from /usr/include/stdio.h:970,
from scalpel.h:40,
from dig.c:26:
In function ‘snprintf’,
inlined from ‘carveImageFile’ at dig.c:837:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output 11 or more bytes (assuming 4106) into a destination of size 4096
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
dig.c: In function ‘carveImageFile’:
dig.c:824:45: warning: ‘%08llu’ directive output may be truncated writing between 8 and 20 bytes into a region of size between 0 and 4095 [-Wformat-truncation=]
824 | snprintf(fn,MAX_STRING_LENGTH,"%s/%08llu",
| ^~~~~~
In function ‘snprintf’,
inlined from ‘carveImageFile’ at dig.c:824:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 10 and 4117 bytes into a destination of size 4096
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/build/reproducible-path/scalpel-1.60+git20240110.6960eb2'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2