[Debian-mobcom-maintainers] Bug#984256: nextepc: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:15:52 GMT 2021


Package: src:nextepc
Version: 0.3.10+nods-4.1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/nextepc_0.3.10+nods-4.1_unstable_gcc11.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.

[...]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/core/include/arch/unix -I../../../lib/core/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c unix/sockaddr.c  -fPIC -DPIC -o unix/.libs/sockaddr.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/core/include/arch/unix -I../../../lib/core/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c unix/udp.c  -fPIC -DPIC -o unix/.libs/udp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/core/include/arch/unix -I../../../lib/core/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c unix/tcp.c  -fPIC -DPIC -o unix/.libs/tcp.o
/bin/bash ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include/arch/unix -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o unix/tun.lo unix/tun.c
/bin/bash ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include/arch/unix -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o unix/sctp.lo unix/sctp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/core/include/arch/unix -I../../../lib/core/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c unix/tun.c  -fPIC -DPIC -o unix/.libs/tun.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/core/include/arch/unix -I../../../lib/core/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c unix/sctp.c  -fPIC -DPIC -o unix/.libs/sctp.o
/bin/bash ../../../libtool  --tag=CC   --mode=link gcc -Wall -Werror -DLINUX=1  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -version-info 1:0:0  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o libcore.la -rpath /usr/lib/nextepc debug.lo version.lo fsm.lo msgq.lo ringbuf.lo timer.lo tlv.lo tlv_msg.lo hash.lo aes.lo aes_cmac.lo sha1.lo sha1_hmac.lo sha2.lo sha2_hmac.lo misc.lo event.lo 3gpp_types.lo unix/start.lo unix/errorcodes.lo unix/pkbuf.lo unix/rand.lo unix/time.lo unix/file.lo unix/thread.lo unix/signal.lo unix/atomic.lo unix/cond.lo unix/mutex.lo unix/rwlock.lo unix/semaphore.lo unix/socket.lo unix/sockaddr.lo unix/udp.lo unix/tcp.lo unix/tun.lo unix/sctp.lo  -lsctp -lgnutls -lpthread 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/debug.o .libs/version.o .libs/fsm.o .libs/msgq.o .libs/ringbuf.o .libs/timer.o .libs/tlv.o .libs/tlv_msg.o .libs/hash.o .libs/aes.o .libs/aes_cmac.o .libs/sha1.o .libs/sha1_hmac.o .libs/sha2.o .libs/sha2_hmac.o .libs/misc.o .libs/event.o .libs/3gpp_types.o unix/.libs/start.o unix/.libs/errorcodes.o unix/.libs/pkbuf.o unix/.libs/rand.o unix/.libs/time.o unix/.libs/file.o unix/.libs/thread.o unix/.libs/signal.o unix/.libs/atomic.o unix/.libs/cond.o unix/.libs/mutex.o unix/.libs/rwlock.o unix/.libs/semaphore.o unix/.libs/socket.o unix/.libs/sockaddr.o unix/.libs/udp.o unix/.libs/tcp.o unix/.libs/tun.o unix/.libs/sctp.o   -lsctp -lgnutls -lpthread  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed   -Wl,-soname -Wl,libcore.so.1 -o .libs/libcore.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libcore.so.1" && ln -s "libcore.so.1.0.0" "libcore.so.1")
libtool: link: (cd ".libs" && rm -f "libcore.so" && ln -s "libcore.so.1.0.0" "libcore.so")
libtool: link: ( cd ".libs" && rm -f "libcore.la" && ln -s "../libcore.la" "libcore.la" )
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/core/src'
Making all in test
make[5]: Entering directory '/<<PKGBUILDDIR>>/lib/core/test'
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o abts.o abts.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testds.o testds.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testfsm.o testfsm.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testsock.o testsock.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testthread.o testthread.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testtlv.o testtlv.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testaes.o testaes.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testfile.o testfile.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testlock.o testlock.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testatomic.o testatomic.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testsha.o testsha.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testtime.o testtime.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testdir.o testdir.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testfilecopy.o testfilecopy.c
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testmsgq.o testmsgq.c
testatomic.c: In function ‘test_casptr_notequal’:
testatomic.c:118:15: error: ‘b’ may be used uninitialized [-Werror=maybe-uninitialized]
  118 |     old_ptr = atomic_casptr(&target_ptr, &a, &b);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from testatomic.c:1:
../../../lib/core/include/core_atomic.h:100:21: note: by argument 3 of type ‘const void *’ to ‘atomic_casptr’ declared here
  100 | CORE_DECLARE(void*) atomic_casptr(void *volatile *mem, void *with,
      |                     ^~~~~~~~~~~~~
testatomic.c:114:12: note: ‘b’ declared here
  114 |     int a, b;
      |            ^
testatomic.c: In function ‘test_casptr_equal_nonnull’:
testatomic.c:107:15: error: ‘a’ may be used uninitialized [-Werror=maybe-uninitialized]
  107 |     old_ptr = atomic_casptr(&target_ptr, &b, &a);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from testatomic.c:1:
../../../lib/core/include/core_atomic.h:100:21: note: by argument 3 of type ‘const void *’ to ‘atomic_casptr’ declared here
  100 | CORE_DECLARE(void*) atomic_casptr(void *volatile *mem, void *with,
      |                     ^~~~~~~~~~~~~
testatomic.c:103:9: note: ‘a’ declared here
  103 |     int a, b;
      |         ^
gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../../lib/core/include  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -DLINUX=1 -Wno-unused-function -Wno-unused-variable -Wno-restrict -Wno-unknown-warning-option  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o testsleep.o testsleep.c
testatomic.c: At top level:
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1: all warnings being treated as errors
make[5]: *** [Makefile:709: testatomic.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/core/test'
make[4]: *** [Makefile:380: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib/core'
make[3]: *** [Makefile:380: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[2]: *** [Makefile:635: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:453: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:16: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-mobcom-maintainers mailing list