[Debian-med-packaging] Bug#957696: poa: ftbfs with GCC-10

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


Package: src:poa
Version: 2.0+20060928-7
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/poa_2.0+20060928-7_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

[...]
default.h:196:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  196 |       fprintf(stderr,"requested %d x %d bytes \n",(NUM),sizeof(ATYPE));   \
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
default.h:245:5: note: in expansion of macro ‘REALLOC’
  245 |     REALLOC(memptr,((NUM)+1)-((NUM)+1)%(BUF)+(BUF),TYPE);\
      |     ^~~~~~~
stringptr.c:67:3: note: in expansion of macro ‘GETMEM’
   67 |   GETMEM(s1->p,strlen(s2)+1,s1->last_alloc,STRINGPTR_BUFFER_CHUNK,char);
      |   ^~~~~~
default.h:196:34: note: format string is defined here
  196 |       fprintf(stderr,"requested %d x %d bytes \n",(NUM),sizeof(ATYPE));   \
      |                                 ~^
      |                                  |
      |                                  int
      |                                 %ld
default.h:196:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
  196 |       fprintf(stderr,"requested %d x %d bytes \n",(NUM),sizeof(ATYPE));   \
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~       ~~~~~~~~~~~~~
      |                                                         |
      |                                                         long unsigned int
default.h:245:5: note: in expansion of macro ‘REALLOC’
  245 |     REALLOC(memptr,((NUM)+1)-((NUM)+1)%(BUF)+(BUF),TYPE);\
      |     ^~~~~~~
stringptr.c:67:3: note: in expansion of macro ‘GETMEM’
   67 |   GETMEM(s1->p,strlen(s2)+1,s1->last_alloc,STRINGPTR_BUFFER_CHUNK,char);
      |   ^~~~~~
default.h:196:39: note: format string is defined here
  196 |       fprintf(stderr,"requested %d x %d bytes \n",(NUM),sizeof(ATYPE));   \
      |                                      ~^
      |                                       |
      |                                       int
      |                                      %ld
rm -f liblpo.a
ar rc liblpo.a black_flag.o seq_util.o fasta_format.o msa_format.o align_lpo2.o align_lpo_po2.o buildup_lpo.o lpo.o heaviest_bundle.o lpo_format.o create_seq.o remove_bundle.o numeric_data.o stringptr.o
ranlib liblpo.a
gcc -o poa align_score.o main.o -lm liblpo.a -Wl,-z,relro -Wl,-z,now
/usr/bin/ld: main.o:././black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: main.o:././black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(black_flag.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(black_flag.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(seq_util.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(seq_util.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(fasta_format.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(fasta_format.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(msa_format.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(msa_format.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(buildup_lpo.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(buildup_lpo.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(lpo.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(lpo.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(heaviest_bundle.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(heaviest_bundle.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(lpo_format.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(lpo_format.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(create_seq.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(create_seq.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(numeric_data.o):././black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(numeric_data.o):././black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(stringptr.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(stringptr.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
/usr/bin/ld: liblpo.a(align_lpo_po2.o):./black_flag.h:240: multiple definition of `Program_version'; align_score.o:./black_flag.h:240: first defined here
/usr/bin/ld: liblpo.a(align_lpo_po2.o):./black_flag.h:239: multiple definition of `Program_name'; align_score.o:./black_flag.h:239: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:47: poa] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" poa returned exit code 2
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debian-med-packaging mailing list