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

Bug#957695: pnm2ppa: ftbfs with GCC-10



Package: src:pnm2ppa
Version: 1.13-9
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/pnm2ppa_1.13-9_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

[...]
                 from ../pnm2ppa.c:24:
In function ‘strncpy’,
    inlined from ‘main’ at ../pnm2ppa.c:872:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘main’ at ../pnm2ppa.c:848:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘main’ at ../pnm2ppa.c:821:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR='"/etc"' -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c -o cutswath.o ../cutswath.c
../cutswath.c: In function ‘ppa_print_page’:
../cutswath.c:465:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum <anonymous>’ [-Wsign-compare]
  465 |  if (!gUnimode && last_dir == prev->direction){
      |                            ^~
../cutswath.c:505:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum <anonymous>’ [-Wsign-compare]
  505 |  if (!gUnimode && last_dir == prev->direction){
      |                            ^~
../cutswath.c:541:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum <anonymous>’ [-Wsign-compare]
  541 |     if (!gUnimode && last_dir == prev->direction){
      |                               ^~
../cutswath.c: In function ‘read_black_image’:
../cutswath.c:780:34: warning: variable ‘after_color’ set but not used [-Wunused-but-set-variable]
  780 |   BOOLEAN  got_nonblank = false, after_color = false, ignore_color = false;
      |                                  ^~~~~~~~~~~
../cutswath.c: In function ‘r2l_black_sweep’:
../cutswath.c:1080:32: warning: variable ‘oddlines’ set but not used [-Wunused-but-set-variable]
 1080 |   int i, j , width, evenlines, oddlines;
      |                                ^~~~~~~~
../cutswath.c: In function ‘l2r_black_sweep’:
../cutswath.c:1219:32: warning: variable ‘oddlines’ set but not used [-Wunused-but-set-variable]
 1219 |   int i, j , width, evenlines, oddlines;
      |                                ^~~~~~~~
../cutswath.c: In function ‘l2r_color_sweep’:
../cutswath.c:1931:32: warning: variable ‘oddlines’ set but not used [-Wunused-but-set-variable]
 1931 |   int i, j , width, evenlines, oddlines;
      |                                ^~~~~~~~
../cutswath.c: In function ‘r2l_color_sweep’:
../cutswath.c:2154:32: warning: variable ‘oddlines’ set but not used [-Wunused-but-set-variable]
 2154 |   int i, j , width, evenlines, oddlines;
      |                                ^~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR='"/etc"' -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c -o gamma.o ../gamma.c
gcc -I.. -O2  -o make_hash_ink ../make_hash_ink.c 
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR='"/etc"' -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c -o calibrate_ppa.o ../calibrate_ppa.c
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR='"/etc"' -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c -o pnmtools.o ../pnmtools.c
./make_hash_ink 4 3 > hash_ink.c
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG  -Wl,-z,relro -o calibrate_ppa calibrate_ppa.o pnmtools.o gamma.o  -lm 
./make_hash_ink 1 5 >> hash_ink.c
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR='"/etc"' -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c -o hash_ink.o hash_ink.c
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DLANG_ENG -Wall -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG  -Wl,-z,relro -o pnm2ppa pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o gamma.o  hash_ink.o  -lm 
/usr/bin/ld: syslog.o:./build/../ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:./build/../ppa_syslog.h:42: first defined here
/usr/bin/ld: ppa.o:./build/../ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:./build/../ppa_syslog.h:42: first defined here
/usr/bin/ld: image.o:./build/../ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:./build/../ppa_syslog.h:42: first defined here
/usr/bin/ld: cutswath.o:./build/../ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:./build/../ppa_syslog.h:42: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:592: pnm2ppa] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[2]: *** [Makefile:701: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build'
make[1]: *** [Makefile:491: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build'
dh_auto_build: error: cd build && make -j4 returned exit code 2
make: *** [debian/rules:8: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: