[Debian-mobcom-maintainers] Bug#1013006: openbsc: ftbfs with GCC-12
Matthias Klose
doko at debian.org
Thu Jun 16 13:12:07 BST 2022
Package: src:openbsc
Version: 1.4.1+dfsg1-2
Severity: normal
Tags: sid bookworm
User: debian-gcc at 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/openbsc_1.4.1+dfsg1-2_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.
[...]
from e1_config.c:26:
/usr/include/osmocom/abis/e1_input.h:291:32: note: expected ‘int (*)(struct subch_demux *, int, const ubit_t *, int, void *)’ {aka ‘int (*)(struct subch_demux *, int, const unsigned char *, int, void *)’} but argument is of type ‘int (*)(struct subch_demux *, int, uint8_t *, int, void *)’ {aka ‘int (*)(struct subch_demux *, int, unsigned char *, int, void *)’}
291 | int (*trau_rcv_cb)(struct subch_demux *dmx, int ch,
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
292 | const ubit_t *data, int len, void *_priv));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bsc_api.c: In function ‘lchan_to_chosen_channel’:
bsc_api.c:55:9: warning: enumeration value ‘GSM48_CMODE_SPEECH_V1_VAMOS’ not handled in switch [-Wswitch]
55 | switch (lchan->tch_mode) {
| ^~~~~~
bsc_api.c:55:9: warning: enumeration value ‘GSM48_CMODE_SPEECH_V2_VAMOS’ not handled in switch [-Wswitch]
bsc_api.c:55:9: warning: enumeration value ‘GSM48_CMODE_SPEECH_V3_VAMOS’ not handled in switch [-Wswitch]
bsc_api.c:55:9: warning: enumeration value ‘GSM48_CMODE_SPEECH_V5_VAMOS’ not handled in switch [-Wswitch]
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_msc.o bsc_msc.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_vty.o bsc_vty.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o gsm_04_08_utils.o gsm_04_08_utils.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o gsm_04_80_utils.o gsm_04_80_utils.c
gsm_04_08_utils.c: In function ‘gsm48_extract_mi’:
gsm_04_08_utils.c:284:9: warning: ‘gsm48_mi_to_string’ is deprecated: Instead use osmo_mobile_identity_decode() [-Wdeprecated-declarations]
284 | return gsm48_mi_to_string(mi_string, GSM48_MI_SIZE, mi_lv+1, *mi_lv);
| ^~~~~~
In file included from gsm_04_08_utils.c:31:
/usr/include/osmocom/gsm/gsm48.h:65:5: note: declared here
65 | int gsm48_mi_to_string(char *string, int str_len, const uint8_t *mi, int mi_len)
| ^~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_init.o bsc_init.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bts_init.o bts_init.c
gsm_04_80_utils.c: In function ‘bsc_send_ussd_release_complete’:
gsm_04_80_utils.c:36:16: warning: ‘gsm0480_create_ussd_release_complete’ is deprecated: Use gsm0480_create_release_complete() instead. [-Wdeprecated-declarations]
36 | struct msgb *msg = gsm0480_create_ussd_release_complete();
| ^~~~
In file included from gsm_04_80_utils.c:22:
/usr/include/osmocom/gsm/gsm0480.h:120:14: note: declared here
120 | struct msgb *gsm0480_create_ussd_release_complete(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_rf_ctrl.o bsc_rf_ctrl.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o arfcn_range_encode.o arfcn_range_encode.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_ctrl_commands.o bsc_ctrl_commands.c
In file included from /usr/include/osmocom/gsm/gsm48.h:8,
from ../../include/openbsc/gsm_04_08.h:4,
from ../../include/openbsc/rest_octets.h:5,
from ../../include/openbsc/gsm_data.h:18,
from abis_nm.c:37:
In function ‘msgb_headroom’,
inlined from ‘msgb_push’ at /usr/include/osmocom/core/msgb.h:341:6,
inlined from ‘msgb_tv_push’ at /usr/include/osmocom/gsm/tlv.h:446:17,
inlined from ‘abis_nm_perform_test’ at abis_nm.c:1997:2:
/usr/include/osmocom/core/msgb.h:223:34: error: potential null pointer dereference [-Werror=null-dereference]
223 | return (msgb->data - msgb->head);
| ~~~~^~~~~~
/usr/include/osmocom/core/msgb.h:223:21: error: potential null pointer dereference [-Werror=null-dereference]
223 | return (msgb->data - msgb->head);
| ~~~~^~~~~~
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_ctrl_lookup.o bsc_ctrl_lookup.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o net_init.o net_init.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bsc_dyn_ts.o bsc_dyn_ts.c
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference -Werror=sizeof-array-argument -Werror=sizeof-pointer-memaccess -c -o bts_ipaccess_nanobts_omlattr.o bts_ipaccess_nanobts_omlattr.c
cc1: some warnings being treated as errors
make[4]: *** [Makefile:530: abis_nm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src/libbsc'
make[3]: *** [Makefile:430: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src'
make[2]: *** [Makefile:457: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/openbsc'
make[1]: *** [Makefile:389: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/openbsc'
dh_auto_build: error: cd openbsc && make -j8 returned exit code 2
make: *** [debian/rules:16: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Debian-mobcom-maintainers
mailing list