[Debian-mobcom-maintainers] Bug#957652: osmo-iuh: ftbfs with GCC-10

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


Package: src:osmo-iuh
Version: 0.3.0-5
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/osmo-iuh_0.3.0-5_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

[...]
      | 
../../include/osmocom/ranap/ranap_ies_defs.h:435: note: this is the location of the previous definition
  435 | #define RANAP_ENHANCEDRELOCATIONINFORMATIONREQUESTIES_RANAP_GLOBALCN_ID_PRESENT                          (1 << 1)
      | 
hnb-test-ranap.c: In function ‘printstr’:
hnb-test-ranap.c:8:22: warning: pointer targets in passing argument 1 of ‘osmo_hexdump’ differ in signedness [-Wpointer-sign]
    8 |  return osmo_hexdump((char*)s->buf, s->size);
      |                      ^~~~~~~~~~~~~
      |                      |
      |                      char *
In file included from /usr/include/osmocom/core/msgb.h:24,
                 from hnb-test-ranap.c:1:
/usr/include/osmocom/core/utils.h:56:41: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
   56 | char *osmo_hexdump(const unsigned char *buf, int len);
      |                    ~~~~~~~~~~~~~~~~~~~~~^~~
hnb-test-ranap.c: In function ‘hnb_test_rua_dt_handle_ranap’:
hnb-test-ranap.c:33:8: warning: pointer targets in assignment from ‘uint8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
   33 |   data = ranap_msg->msg.directTransferIEs.nas_pdu.buf;
      |        ^
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o test-ranap test-ranap.o test_common.o -ltalloc -losmovty -losmocore -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/libosmo-ranap.la 
hnb-test-ranap.c: In function ‘hnb_test_rua_cl_handle_ranap’:
hnb-test-ranap.c:71:4: warning: implicit declaration of function ‘ranap_bcd_decode’ [-Wimplicit-function-declaration]
   71 |    ranap_bcd_decode(imsi, sizeof(imsi),
      |    ^~~~~~~~~~~~~~~~
hnb-test-ranap.c:76:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘RANAP_CN_DomainIndicator_t’ {aka ‘long int’} [-Wformat=]
   76 |   printf("rx Paging: presence=%hx  domain=%d  IMSI=%s\n",
      |                                           ~^
      |                                            |
      |                                            int
      |                                           %ld
   77 |          ranap_msg->msg.pagingIEs.presenceMask,
   78 |          ranap_msg->msg.pagingIEs.cN_DomainIndicator,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  RANAP_CN_DomainIndicator_t {aka long int}
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o test-helpers test-helpers.o test_common.o -ltalloc -losmovty -losmocore -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/libosmo-ranap.la 
hnb-test.c: In function ‘hnb_test_hnbap_rx’:
hnb-test.c:480:10: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  480 |   return rc;
      |          ^~
hnb-test.c: In function ‘hnb_test_rua_rx’:
hnb-test.c:508:6: warning: ‘rc’ is used uninitialized in this function [-Wuninitialized]
  508 |  int rc;
      |      ^~
libtool: link: gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/test-ranap test-ranap.o test_common.o  /usr/lib/x86_64-linux-gnu/libosmovty.so /usr/lib/x86_64-linux-gnu/libosmogsm.so /usr/lib/x86_64-linux-gnu/libosmocore.so -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/.libs/libosmo-ranap.so
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o test-hnbap hnbap_common.o hnbap_decoder.o test-hnbap.o test_common.o -ltalloc -losmovty -losmocore -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/hnbap/libosmo-asn1-hnbap.a ../../src/libosmo-ranap.la 
/bin/bash ../../libtool  --tag=CC   --mode=link gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o hnb-test hnbap_common.o hnbap_decoder.o hnbap_encoder.o rua_common.o rua_decoder.o rua_encoder.o rua_msg_factory.o hnb-test.o test_common.o hnb-test-ranap.o hnb-test-rua.o -ltalloc -losmovty -losmocore -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/hnbap/libosmo-asn1-hnbap.a ../../src/rua/libosmo-asn1-rua.a ../../src/libosmo-ranap.la 
libtool: link: gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/test-helpers test-helpers.o test_common.o  /usr/lib/x86_64-linux-gnu/libosmovty.so /usr/lib/x86_64-linux-gnu/libosmogsm.so /usr/lib/x86_64-linux-gnu/libosmocore.so -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/.libs/libosmo-ranap.so
/usr/bin/ld: test_common.o:(.bss+0x0): multiple definition of `talloc_asn1_ctx'; test-helpers.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[7]: *** [Makefile:421: test-helpers] Error 1
make[7]: *** Waiting for unfinished jobs....
libtool: link: gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/test-hnbap hnbap_common.o hnbap_decoder.o test-hnbap.o test_common.o  /usr/lib/x86_64-linux-gnu/libosmovty.so /usr/lib/x86_64-linux-gnu/libosmogsm.so /usr/lib/x86_64-linux-gnu/libosmocore.so -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/hnbap/libosmo-asn1-hnbap.a ../../src/.libs/libosmo-ranap.so
libtool: link: gcc -g -Wall -I../../src/tests -I../../include -I../../include -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/asn1c -I/usr/include/ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/hnb-test hnbap_common.o hnbap_decoder.o hnbap_encoder.o rua_common.o rua_decoder.o rua_encoder.o rua_msg_factory.o hnb-test.o test_common.o hnb-test-ranap.o hnb-test-rua.o  /usr/lib/x86_64-linux-gnu/libosmovty.so /usr/lib/x86_64-linux-gnu/libosmogsm.so /usr/lib/x86_64-linux-gnu/libosmocore.so -ltalloc -lasn1c -losmo-sigtran -lsctp ../../src/hnbap/libosmo-asn1-hnbap.a ../../src/rua/libosmo-asn1-rua.a ../../src/.libs/libosmo-ranap.so
make[7]: Leaving directory '/<<PKGBUILDDIR>>/src/tests'
make[6]: *** [Makefile:669: check-am] Error 2
make[6]: Leaving directory '/<<PKGBUILDDIR>>/src/tests'
make[5]: *** [Makefile:659: check-recursive] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[4]: *** [Makefile:811: check] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:454: check-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:748: check] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j4 check VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:26: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debian-mobcom-maintainers mailing list