[Pkg-electronics-devel] Bug#1133640: systemc: ftbfs with GCC-16
Emanuele Rocca
ema at debian.org
Mon Apr 13 14:11:29 BST 2026
Package: src:systemc
Version: 3.0.2-1
Severity: important
Tags: sid forky ftbfs
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-16
Hi,
systemc fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.
The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/systemc_arm64.build.xz
The last lines of the build log are at the end of this report.
To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html
Please only close this issue after double-checking that the package can be
built correctly with GCC 16.
Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.
[...]
• candidate 2: 'constexpr sc_core::sc_string_view::sc_string_view(const sc_core::sc_string_view&)'
../../src/sysc/utils/sc_string_view.h:44:7:
44 | class sc_string_view
| ^~~~~~~~~~~~~~
• no known conversion for argument 1 from 'const char*' to 'const sc_core::sc_string_view&'
• candidate 3: 'constexpr sc_core::sc_string_view::sc_string_view(sc_core::sc_string_view&&)'
• no known conversion for argument 1 from 'const char*' to 'sc_core::sc_string_view&&'
../../src/sysc/utils/sc_string_view.h: In member function 'void sc_core::sc_zstring_view::swap(sc_core::sc_zstring_view&)':
../../src/sysc/utils/sc_string_view.h:97:18: error: 'swap' is not a member of 'sc_core::sc_zstring_view::base_type' {aka 'sc_core::sc_string_view'}
97 | { base_type::swap(s); }
| ^~~~
../../src/sysc/utils/sc_string_view.h: In member function 'const char* sc_core::sc_zstring_view::c_str() const':
../../src/sysc/utils/sc_string_view.h:100:14: error: 'data' was not declared in this scope
100 | { return data(); }
| ^~~~
make[4]: *** [Makefile:1157: tracing/sc_wif_trace.lo] Error 1
make[4]: *** [Makefile:1157: datatypes/int/sc_uint_base.lo] Error 1
tracing/sc_vcd_trace.cpp: In function 'void sc_core::vcd_print_scopes(FILE*, std::vector<vcd_trace*>&)':
tracing/sc_vcd_trace.cpp:1154:52: error: conversion from 'const char*' to non-scalar type 'sc_core::sc_string_view' requested
1154 | sc_string_view with_scopes_s = (with_scopes_p) ? with_scopes_p : "";
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
tracing/sc_vcd_trace.cpp:1157:23: error: no match for 'operator==' (operand types are 'sc_core::sc_string_view' and 'const char [8]')
1157 | if (with_scopes_s == "DISABLE") with_scopes = false;
| ~~~~~~~~~~~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| sc_core::sc_string_view
• there is 1 candidate
tracing/sc_vcd_trace.cpp:1157:23:
1157 | if (with_scopes_s == "DISABLE") with_scopes = false;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from ../../src/sysc/communication/sc_writer_policy.h:41,
from ../../src/sysc/kernel/sc_ver.h:35,
from tracing/sc_vcd_trace.cpp:61:
• candidate 1: 'bool sc_core::operator==(const sc_process_handle&, const sc_process_handle&)'
../../src/sysc/kernel/sc_process_handle.h:155:13:
155 | inline bool operator == (
| ^~~~~~~~
• no known conversion for argument 1 from 'sc_core::sc_string_view' to 'const sc_core::sc_process_handle&'
../../src/sysc/kernel/sc_process_handle.h:156:30:
156 | const sc_process_handle& left, const sc_process_handle& right )
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
tracing/sc_vcd_trace.cpp:1158:23: error: no match for 'operator==' (operand types are 'sc_core::sc_string_view' and 'const char [7]')
1158 | if (with_scopes_s == "ENABLE") with_scopes = true;
| ~~~~~~~~~~~~~ ^~ ~~~~~~~~
| | |
| | const char [7]
| sc_core::sc_string_view
• there is 1 candidate
tracing/sc_vcd_trace.cpp:1158:23:
1158 | if (with_scopes_s == "ENABLE") with_scopes = true;
| ~~~~~~~~~~~~~~^~~~~~~~~~~
• candidate 1: 'bool sc_core::operator==(const sc_process_handle&, const sc_process_handle&)'
../../src/sysc/kernel/sc_process_handle.h:155:13:
155 | inline bool operator == (
| ^~~~~~~~
• no known conversion for argument 1 from 'sc_core::sc_string_view' to 'const sc_core::sc_process_handle&'
../../src/sysc/kernel/sc_process_handle.h:156:30:
156 | const sc_process_handle& left, const sc_process_handle& right )
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
make[4]: *** [Makefile:1157: tracing/sc_vcd_trace.lo] Error 1
make[4]: Leaving directory '/build/reproducible-path/systemc-3.0.2/src/sysc'
make[3]: *** [Makefile:1204: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/systemc-3.0.2/src/sysc'
make[2]: *** [Makefile:659: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/systemc-3.0.2/src'
make[1]: *** [Makefile:522: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/systemc-3.0.2'
dh_auto_build: error: make -j128 returned exit code 2
make: *** [debian/rules:11: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess failed with exit status 2
More information about the Pkg-electronics-devel
mailing list