--- Begin Message ---
Package: src:systemc
Version: 2.3.3-5.1
Severity: normal
Tags: sid bookworm
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-12
[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/systemc_2.3.3-5.1_unstable_gcc12.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
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-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/scx_barrier/2_1_scx_barrier_test-main.o `test -f '2.1/scx_barrier/main.cpp'
|| echo './'`2.1/scx_barrier/main.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/scx_mutex_w_policy/2_1_scx_mutex_w_policy_test-scx_mutex_w_policy.o `test
-f '2.1/scx_mutex_w_policy/scx_mutex_w_policy.cpp' || echo
'./'`2.1/scx_mutex_w_policy/scx_mutex_w_policy.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/specialized_signals/2_1_specialized_signals_test-main.o `test -f
'2.1/specialized_signals/main.cpp' || echo './'`2.1/specialized_signals/main.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/specialized_signals/2_1_specialized_signals_test-scx_signal_int.o `test -f
'2.1/specialized_signals/scx_signal_int.cpp' || echo
'./'`2.1/specialized_signals/scx_signal_int.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/specialized_signals/2_1_specialized_signals_test-scx_signal_uint.o `test -f
'2.1/specialized_signals/scx_signal_uint.cpp' || echo
'./'`2.1/specialized_signals/scx_signal_uint.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/specialized_signals/2_1_specialized_signals_test-scx_signal_signed.o `test
-f '2.1/specialized_signals/scx_signal_signed.cpp' || echo
'./'`2.1/specialized_signals/scx_signal_signed.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall
-m64 -O3 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -c -o
2.1/specialized_signals/2_1_specialized_signals_test-scx_signal_unsigned.o
`test -f '2.1/specialized_signals/scx_signal_unsigned.cpp' || echo
'./'`2.1/specialized_signals/scx_signal_unsigned.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -I ./2.3/sc_rvd/../include -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -m64 -O3 -pthread -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -c -o 2.3/sc_rvd/2_3_sc_rvd_test-main.o `test -f
'2.3/sc_rvd/main.cpp' || echo './'`2.3/sc_rvd/main.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -I ./2.3/sc_ttd/../include -Wdate-time
-D_FORTIFY_SOURCE=2 -Wall -m64 -O3 -pthread -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -c -o 2.3/sc_ttd/2_3_sc_ttd_test-main.o `test -f
'2.3/sc_ttd/main.cpp' || echo './'`2.3/sc_ttd/main.cpp
g++ -DSC_INCLUDE_FX -I. -I../../src -I ./2.3/simple_async/../include
-Wdate-time -D_FORTIFY_SOURCE=2 -Wall -m64 -O3 -pthread -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -c -o 2.3/simple_async/2_3_simple_async_test-main.o
`test -f '2.3/simple_async/main.cpp' || echo './'`2.3/simple_async/main.cpp
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o fft/fft_flpt/test
fft/fft_flpt/fft_fft_flpt_test-fft.o fft/fft_flpt/fft_fft_flpt_test-main.o
fft/fft_flpt/fft_fft_flpt_test-sink.o fft/fft_flpt/fft_fft_flpt_test-source.o
../../src/libsystemc.la
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o fft/fft_flpt/.libs/test fft/fft_flpt/fft_fft_flpt_test-fft.o
fft/fft_flpt/fft_fft_flpt_test-main.o fft/fft_flpt/fft_fft_flpt_test-sink.o
fft/fft_flpt/fft_fft_flpt_test-source.o ../../src/.libs/libsystemc.so -pthread
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o fft/fft_fxpt/test
fft/fft_fxpt/fft_fft_fxpt_test-fft.o fft/fft_fxpt/fft_fft_fxpt_test-main.o
fft/fft_fxpt/fft_fft_fxpt_test-sink.o fft/fft_fxpt/fft_fft_fxpt_test-source.o
../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o fir/test
fir/fir_test-stimulus.o fir/fir_test-display.o fir/fir_test-fir.o
fir/fir_test-main.o ../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o fir/test_rtl
fir/stimulus.o fir/display.o fir/fir_fsm.o fir/fir_data.o fir/main_rtl.o
../../src/libsystemc.la
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o fft/fft_fxpt/.libs/test fft/fft_fxpt/fft_fft_fxpt_test-fft.o
fft/fft_fxpt/fft_fft_fxpt_test-main.o fft/fft_fxpt/fft_fft_fxpt_test-sink.o
fft/fft_fxpt/fft_fft_fxpt_test-source.o ../../src/.libs/libsystemc.so -pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o fir/.libs/test fir/fir_test-stimulus.o fir/fir_test-display.o
fir/fir_test-fir.o fir/fir_test-main.o ../../src/.libs/libsystemc.so -pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o fir/.libs/test_rtl fir/stimulus.o fir/display.o fir/fir_fsm.o
fir/fir_data.o fir/main_rtl.o ../../src/.libs/libsystemc.so -pthread
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o pipe/test
pipe/pipe_test-display.o pipe/pipe_test-main.o pipe/pipe_test-numgen.o
pipe/pipe_test-stage1.o pipe/pipe_test-stage2.o pipe/pipe_test-stage3.o
../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o pkt_switch/test
pkt_switch/pkt_switch_test-fifo.o pkt_switch/pkt_switch_test-main.o
pkt_switch/pkt_switch_test-receiver.o pkt_switch/pkt_switch_test-sender.o
pkt_switch/pkt_switch_test-switch.o pkt_switch/pkt_switch_test-switch_clk.o
../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o risc_cpu/test
risc_cpu/risc_cpu_test-bios.o risc_cpu/risc_cpu_test-dcache.o
risc_cpu/risc_cpu_test-decode.o risc_cpu/risc_cpu_test-exec.o
risc_cpu/risc_cpu_test-fetch.o risc_cpu/risc_cpu_test-floating.o
risc_cpu/risc_cpu_test-icache.o risc_cpu/risc_cpu_test-main.o
risc_cpu/risc_cpu_test-mmxu.o risc_cpu/risc_cpu_test-paging.o
risc_cpu/risc_cpu_test-pic.o ../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o rsa/test
rsa/rsa_test-rsa.o ../../src/libsystemc.la
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o pipe/.libs/test pipe/pipe_test-display.o
pipe/pipe_test-main.o pipe/pipe_test-numgen.o pipe/pipe_test-stage1.o
pipe/pipe_test-stage2.o pipe/pipe_test-stage3.o ../../src/.libs/libsystemc.so
-pthread
In file included from 2.1/specialized_signals/main.cpp:40:
2.1/specialized_signals/scx_signal_signed.h: In instantiation of
‘sc_dt::sc_signed sc_core::sc_signal<sc_dt::sc_bigint<W> >::read_part(int, int)
const [with int W = 8]’:
2.1/specialized_signals/scx_signal_signed.h:715:25: required from here
2.1/specialized_signals/scx_signal_signed.h:718:60: error: passing ‘const
sc_core::sc_signal<sc_dt::sc_bigint<8> >’ as ‘this’ argument discards
qualifiers [-fpermissive]
718 | return (sc_dt::sc_signed)sc_dt::sc_signed::operator () (left,
right);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from ../../src/sysc/datatypes/bit/sc_proxy.h:66,
from ../../src/sysc/datatypes/bit/sc_bit_proxies.h:34,
from ../../src/sysc/datatypes/bit/sc_bv_base.h:58,
from ../../src/sysc/datatypes/bit/sc_lv_base.h:69,
from ../../src/sysc/datatypes/bit/sc_lv.h:51,
from ../../src/sysc/communication/sc_signal_rv.h:33,
from ../../src/systemc:93,
from ../../src/systemc.h:219,
from 2.1/specialized_signals/main.cpp:38:
../../src/sysc/datatypes/int/sc_signed.h:1284:23: note: in call to
‘sc_dt::sc_signed_subref& sc_dt::sc_signed::operator()(int, int)’
1284 | sc_signed_subref& operator () ( int i, int j )
| ^~~~~~~~
2.1/specialized_signals/scx_signal_signed.h: In instantiation of
‘sc_dt::sc_signed sc_core::sc_signal<sc_dt::sc_bigint<W> >::read_part(int, int)
const [with int W = 4]’:
2.1/specialized_signals/scx_signal_signed.h:715:25: required from here
2.1/specialized_signals/scx_signal_signed.h:718:60: error: passing ‘const
sc_core::sc_signal<sc_dt::sc_bigint<4> >’ as ‘this’ argument discards
qualifiers [-fpermissive]
718 | return (sc_dt::sc_signed)sc_dt::sc_signed::operator () (left,
right);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../../src/sysc/datatypes/int/sc_signed.h:1284:23: note: in call to
‘sc_dt::sc_signed_subref& sc_dt::sc_signed::operator()(int, int)’
1284 | sc_signed_subref& operator () ( int i, int j )
| ^~~~~~~~
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o pkt_switch/.libs/test pkt_switch/pkt_switch_test-fifo.o
pkt_switch/pkt_switch_test-main.o pkt_switch/pkt_switch_test-receiver.o
pkt_switch/pkt_switch_test-sender.o pkt_switch/pkt_switch_test-switch.o
pkt_switch/pkt_switch_test-switch_clk.o ../../src/.libs/libsystemc.so -pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o risc_cpu/.libs/test risc_cpu/risc_cpu_test-bios.o
risc_cpu/risc_cpu_test-dcache.o risc_cpu/risc_cpu_test-decode.o
risc_cpu/risc_cpu_test-exec.o risc_cpu/risc_cpu_test-fetch.o
risc_cpu/risc_cpu_test-floating.o risc_cpu/risc_cpu_test-icache.o
risc_cpu/risc_cpu_test-main.o risc_cpu/risc_cpu_test-mmxu.o
risc_cpu/risc_cpu_test-paging.o risc_cpu/risc_cpu_test-pic.o
../../src/.libs/libsystemc.so -pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o rsa/.libs/test rsa/rsa_test-rsa.o
../../src/.libs/libsystemc.so -pthread
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o simple_bus/test
simple_bus/simple_bus_test-simple_bus.o
simple_bus/simple_bus_test-simple_bus_arbiter.o
simple_bus/simple_bus_test-simple_bus_main.o
simple_bus/simple_bus_test-simple_bus_master_blocking.o
simple_bus/simple_bus_test-simple_bus_master_direct.o
simple_bus/simple_bus_test-simple_bus_master_non_blocking.o
simple_bus/simple_bus_test-simple_bus_types.o
simple_bus/simple_bus_test-simple_bus_tools.o ../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o simple_fifo/test
simple_fifo/simple_fifo_test-simple_fifo.o ../../src/libsystemc.la
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -m64 -O3 -pthread
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wl,-z,relro -Wl,-z,now -o simple_perf/test
simple_perf/simple_perf_test-simple_perf.o ../../src/libsystemc.la
make[4]: *** [Makefile:2276:
2.1/specialized_signals/2_1_specialized_signals_test-main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o simple_bus/.libs/test simple_bus/simple_bus_test-simple_bus.o
simple_bus/simple_bus_test-simple_bus_arbiter.o
simple_bus/simple_bus_test-simple_bus_main.o
simple_bus/simple_bus_test-simple_bus_master_blocking.o
simple_bus/simple_bus_test-simple_bus_master_direct.o
simple_bus/simple_bus_test-simple_bus_master_non_blocking.o
simple_bus/simple_bus_test-simple_bus_types.o
simple_bus/simple_bus_test-simple_bus_tools.o ../../src/.libs/libsystemc.so
-pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o simple_fifo/.libs/test
simple_fifo/simple_fifo_test-simple_fifo.o ../../src/.libs/libsystemc.so
-pthread
libtool: link: g++ -Wall -m64 -O3 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro
-Wl,-z -Wl,now -o simple_perf/.libs/test
simple_perf/simple_perf_test-simple_perf.o ../../src/.libs/libsystemc.so
-pthread
make[4]: Leaving directory '/<<PKGBUILDDIR>>/examples/sysc'
make[3]: *** [Makefile:3473: check-am] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/examples/sysc'
make[2]: *** [Makefile:506: check-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/examples'
make[1]: *** [Makefile:519: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1
returned exit code 2
make: *** [debian/rules:11: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--- End Message ---