[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#957026: ax25-tools: ftbfs with GCC-10



Package: src:ax25-tools
Version: 0.0.10-rc4-3
Severity: normal
Tags: sid bullseye
User: debian-gcc@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/ax25-tools_0.0.10-rc4-3_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

[...]
  113 |     write(fderr, BIN_OFF, strlen(BIN_OFF));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c: In function ‘bput’:
proto_bin.c:168:7: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  168 |       write(fderr, "\r#NO#\r", 6);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c:180:3: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  180 |   write(fderr, "\r#OK#\r", 6);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c:270:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  270 |     write(fderr, "\r#ABORT#\r", 9);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c: In function ‘bget’:
proto_bin.c:504:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  504 |     write(fderr, "\r#ABORT#\r", 9);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c: In function ‘bput’:
proto_bin.c:162:48: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 2027 [-Wformat-overflow=]
  162 |         sprintf(err_msg, "error: cannot unlink %s (%s)\n", filename, strerror(errno));
      |                                                ^~          ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from includes.h:10,
                 from proto_bin.c:7:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 26 or more bytes (assuming 4122) into a destination of size 2048
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c:167:44: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 2029 [-Wformat-overflow=]
  167 |       sprintf(err_msg, "error: cannot open %s (%s)\n", filename, strerror(errno));
      |                                            ^~          ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from includes.h:10,
                 from proto_bin.c:7:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 24 or more bytes (assuming 4120) into a destination of size 2048
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proto_bin.c: In function ‘bget’:
proto_bin.c:327:44: warning: ‘%s’ directive writing up to 4096 bytes into a region of size 2029 [-Wformat-overflow=]
  327 |       sprintf(err_msg, "error: cannot open %s (%s)\n", filename, strerror(errno));
      |                                            ^~          ~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from includes.h:10,
                 from proto_bin.c:7:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 24 or more bytes (assuming 4120) into a destination of size 2048
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall  -Wl,-z,relro -Wl,-z,now -o axgetput axgetput.o util.o proto_bin.o  
/usr/bin/ld: util.o:./ax25/axgetput/axgetput.h:19: multiple definition of `err_msg'; axgetput.o:./ax25/axgetput/axgetput.h:19: first defined here
/usr/bin/ld: util.o:./ax25/axgetput/axgetput.h:18: multiple definition of `filename'; axgetput.o:./ax25/axgetput/axgetput.h:18: first defined here
/usr/bin/ld: util.o:./ax25/axgetput/axgetput.h:17: multiple definition of `myname'; axgetput.o:./ax25/axgetput/axgetput.h:17: first defined here
/usr/bin/ld: proto_bin.o:./ax25/axgetput/axgetput.h:19: multiple definition of `err_msg'; axgetput.o:./ax25/axgetput/axgetput.h:19: first defined here
/usr/bin/ld: proto_bin.o:./ax25/axgetput/axgetput.h:18: multiple definition of `filename'; axgetput.o:./ax25/axgetput/axgetput.h:18: first defined here
/usr/bin/ld: proto_bin.o:./ax25/axgetput/axgetput.h:17: multiple definition of `myname'; axgetput.o:./ax25/axgetput/axgetput.h:17: first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:427: axgetput] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/ax25/axgetput'
make[3]: *** [Makefile:784: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ax25'
make[2]: *** [Makefile:377: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:316: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: