[Debian-mobcom-maintainers] Bug#957634: openbsc: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:07:51 BST 2020


Package: src:openbsc
Version: 1.1.0-2
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/openbsc_1.1.0-2_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html

[...]
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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_data_shared.o gsm_data_shared.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 gsup_client.o gsup_client.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 oap_client.o oap_client.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 socket.o socket.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 talloc_ctx.o talloc_ctx.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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_subscriber_base.o gsm_subscriber_base.c
rm -f libcommon.a
ar cru libcommon.a bsc_version.o common_vty.o debug.o gsm_data.o gsm_data_shared.o gsup_client.o oap_client.o socket.o talloc_ctx.o gsm_subscriber_base.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libcommon.a
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o gsup_test_client gsup_test_client.o libcommon.a -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -losmovty -losmocore -losmoabis -lrt  
libtool: link: gcc -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -g -O2 -fdebug-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 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o gsup_test_client gsup_test_client.o  libcommon.a /usr/lib/x86_64-linux-gnu/libosmogsm.so -ltalloc /usr/lib/x86_64-linux-gnu/libosmovty.so /usr/lib/x86_64-linux-gnu/libosmocore.so -losmoabis -lrt
make[4]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src/libcommon'
Making all in libmgcp
make[4]: Entering directory '/<<PKGBUILDDIR>>/openbsc/src/libmgcp'
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/    -g -O2 -fdebug-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 mgcp_protocol.o mgcp_protocol.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/    -g -O2 -fdebug-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 mgcp_network.o mgcp_network.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/    -g -O2 -fdebug-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 mgcp_vty.o mgcp_vty.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/    -g -O2 -fdebug-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 mgcp_osmux.o mgcp_osmux.c
mgcp_network.c:44:2: warning: #warning "Make use of the rtp proxy code" [-Wcpp]
   44 | #warning "Make use of the rtp proxy code"
      |  ^~~~~~~
mgcp_network.c: In function ‘receive_from’:
mgcp_network.c:697:3: warning: #warning "Slight spec violation. With connection mode recvonly we should attempt to forward." [-Wcpp]
  697 |  #warning "Slight spec violation. With connection mode recvonly we should attempt to forward."
      |   ^~~~~~~
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/    -g -O2 -fdebug-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 mgcp_sdp.o mgcp_sdp.c
rm -f libmgcp.a
ar cru libmgcp.a mgcp_protocol.o mgcp_network.o mgcp_vty.o mgcp_osmux.o mgcp_sdp.o  
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libmgcp.a
make[4]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src/libmgcp'
Making all in libbsc
make[4]: Entering directory '/<<PKGBUILDDIR>>/openbsc/src/libbsc'
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 abis_nm.o abis_nm.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 abis_nm_vty.o abis_nm_vty.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 abis_om2000.o abis_om2000.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 abis_om2000_vty.o abis_om2000_vty.c
abis_om2000_vty.c: In function ‘cfg_bts_alt_mode’:
abis_om2000_vty.c:427:20: warning: unused variable ‘cg’ [-Wunused-variable]
  427 |  struct con_group *cg;
      |                    ^~
abis_nm.c: In function ‘abis_nm_rx_get_attr_resp’:
abis_nm.c:560:50: warning: passing argument 2 of ‘parse_attr_resp_info_unreported’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  560 |  data = parse_attr_resp_info_unreported(bts->nr, TLVP_VAL(&tp, NM_ATT_GET_ARI), TLVP_LEN(&tp, NM_ATT_GET_ARI),
      |                                                  ^~~~~~~~
abis_nm.c:458:81: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const uint8_t *’ {aka ‘const unsigned char *’}
  458 | static inline uint8_t *parse_attr_resp_info_unreported(uint8_t bts_nr, uint8_t *ari, uint16_t ari_len, uint16_t *out_len)
      |                                                                        ~~~~~~~~~^~~
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 abis_rsl.o abis_rsl.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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 acc_ramp.o acc_ramp.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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_rll.o bsc_rll.c
gcc -DHAVE_CONFIG_H -I. -I../..   -I../../include -I../..  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -g -O2 -fdebug-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_subscriber.o bsc_subscriber.c
bsc_subscriber.c: In function ‘bsc_subscr_find_or_create_by_tmsi’:
bsc_subscriber.c:106:13: error: potential null pointer dereference [-Werror=null-dereference]
  106 |  bsub->tmsi = tmsi;
      |  ~~~~~~~~~~~^~~~~~
cc1: some warnings being treated as errors
make[4]: *** [Makefile:541: bsc_subscriber.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src/libbsc'
make[3]: *** [Makefile:447: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/openbsc/src'
make[2]: *** [Makefile:518: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/openbsc'
make[1]: *** [Makefile:427: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/openbsc'
dh_auto_build: error: cd openbsc && make -j4 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