Bug#1097769: rapiddisk: ftbfs with GCC-15
Package: src:rapiddisk
Version: 9.1.0-5
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/rapiddisk_9.1.0-5_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
[...]
60 | typedef char bool;
| ^~~~~~~
common.h:222:37: warning: extra semicolon in struct or union specified [-Wpedantic]
222 | typedef struct NVMET_ALLOWED_HOST { ;
| ^
| -
common.h:222:37: warning: extra semicolon in struct or union specified [-Wpedantic]
222 | typedef struct NVMET_ALLOWED_HOST { ;
| ^
| -
In file included from utils.h:35,
from rapiddiskd.c:32:
common.h:60:14: error: ‘bool’ cannot be defined via ‘typedef’
60 | typedef char bool;
| ^~~~
common.h:60:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
common.h:60:1: warning: useless type name in empty declaration
60 | typedef char bool;
| ^~~~~~~
common.h:222:37: warning: extra semicolon in struct or union specified [-Wpedantic]
222 | typedef struct NVMET_ALLOWED_HOST { ;
| ^
| -
json.c: In function ‘json_nvmet_view_exports’:
json.c:514:24: warning: unused variable ‘nvmet_orig’ [-Wunused-variable]
514 | NVMET_PROFILE *nvmet_orig = nvmet;
| ^~~~~~~~~~
make[1]: *** [Makefile:142: rapiddiskd_ndebug.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:142: json_ndebug.o] Error 1
make[1]: *** [Makefile:142: sys_ndebug.o] Error 1
rdsk.c: In function ‘dm_flush_device’:
rdsk.c:428:21: warning: unused variable ‘response’ [-Wunused-variable]
428 | const char *response = dm_task_get_message_response(dmt);
| ^~~~~~~~
In file included from utils.h:35,
from utils.c:32:
common.h:60:14: error: ‘bool’ cannot be defined via ‘typedef’
60 | typedef char bool;
| ^~~~
In file included from utils.h:35,
from main.c:34:
common.h:60:14: error: ‘bool’ cannot be defined via ‘typedef’
60 | typedef char bool;
| ^~~~
common.h:60:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
common.h:60:14: note: ‘bool’ is a keyword with ‘-std=c23’ onwards
common.h:60:1: warning: useless type name in empty declaration
60 | typedef char bool;
| ^~~~~~~
common.h:60:1: warning: useless type name in empty declaration
60 | typedef char bool;
| ^~~~~~~
common.h:222:37: warning: extra semicolon in struct or union specified [-Wpedantic]
222 | typedef struct NVMET_ALLOWED_HOST { ;
| ^
| -
common.h:222:37: warning: extra semicolon in struct or union specified [-Wpedantic]
222 | typedef struct NVMET_ALLOWED_HOST { ;
| ^
| -
make[1]: *** [Makefile:145: utils-server_ndebug.o] Error 1
make[1]: *** [Makefile:142: main_ndebug.o] Error 1
make[1]: *** [Makefile:142: nvmet_ndebug.o] Error 1
make[1]: *** [Makefile:142: rdsk_ndebug.o] Error 1
make[1]: *** [Makefile:142: utils_ndebug.o] Error 1
make[1]: Leaving directory '/build/reproducible-path/rapiddisk-9.1.0/src'
dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: