Bug#853501: libosmocore: ftbfs with GCC-7

Matthias Klose doko at debian.org
Tue Jan 31 09:33:03 UTC 2017


Package: src:libosmocore
Version: 0.9.0-6
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7

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-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/libosmocore_0.9.0-6_unstable_gcc7.log
The last lines of the build log are at the end of this report.

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

[...]
gb/gprs_ns_test.c:224:28: warning: 'gprs_ns_unblock' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_unblock[1] = {
                            ^~~~~~~~~~~~~~~
gb/gprs_ns_test.c:219:28: warning: 'gprs_ns_alive_ack' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_alive_ack[1] = {
                            ^~~~~~~~~~~~~~~~~
gb/gprs_ns_test.c:206:28: warning: 'gprs_ns_alive' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_alive[1] = {
                            ^~~~~~~~~~~~~
gb/gprs_ns_test.c:200:28: warning: 'gprs_ns_reset_nsei2' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_reset_nsei2[12] = {
                            ^~~~~~~~~~~~~~~~~~~
gb/gprs_ns_test.c:192:28: warning: 'gprs_ns_reset_vci2' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_reset_vci2[12] = {
                            ^~~~~~~~~~~~~~~~~~
gb/gprs_ns_test.c:184:28: warning: 'gprs_ns_reset' defined but not used [-Wunused-const-variable=]
 static const unsigned char gprs_ns_reset[12] = {
                            ^~~~~~~~~~~~~
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o gb/gprs_ns_test gb/gprs_ns_test.o ../src/libosmocore.la ../src/gb/libosmogb.la ../src/vty/libosmovty.la -ldl  
libtool: link: gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o gb/.libs/gprs_ns_test gb/gprs_ns_test.o  ../src/.libs/libosmocore.so ../src/gb/.libs/libosmogb.so ../src/vty/.libs/libosmovty.so -ldl
gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o kasumi/kasumi_test.o kasumi/kasumi_test.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o kasumi/kasumi_test kasumi/kasumi_test.o ../src/libosmocore.la ../src/gsm/libgsmint.la 
libtool: link: gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o kasumi/.libs/kasumi_test kasumi/kasumi_test.o  ../src/.libs/libosmocore.so ../src/gsm/.libs/libgsmint.a /<<PKGBUILDDIR>>/src/.libs/libosmocore.so -ldl
kasumi/kasumi_test.o: In function `test_expansion':
./tests/kasumi/kasumi_test.c:27: undefined reference to `_compare_mem'
./tests/kasumi/kasumi_test.c:28: undefined reference to `_compare_mem'
./tests/kasumi/kasumi_test.c:29: undefined reference to `_compare_mem'
./tests/kasumi/kasumi_test.c:30: undefined reference to `_compare_mem'
./tests/kasumi/kasumi_test.c:31: undefined reference to `_compare_mem'
kasumi/kasumi_test.o:./tests/kasumi/kasumi_test.c:32: more undefined references to `_compare_mem' follow
collect2: error: ld returned 1 exit status
Makefile:686: recipe for target 'kasumi/kasumi_test' failed
make[5]: *** [kasumi/kasumi_test] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/tests'
Makefile:1028: recipe for target 'check-am' failed
make[4]: *** [check-am] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests'
Makefile:518: recipe for target 'check-recursive' failed
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
Makefile:809: recipe for target 'check' failed
make[2]: *** [check] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: make -j1 check VERBOSE=1 returned exit code 2
debian/rules:28: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:17: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



More information about the debian-science-maintainers mailing list