[Debian-astro-maintainers] Bug#957825: source-extractor: ftbfs with GCC-10

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


Package: src:source-extractor
Version: 2.25.0+ds-2
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/source-extractor_2.25.0+ds-2_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

[...]
      |                                          ^
define.h:180:21: note: in definition of macro ‘QMALLOC’
  180 |      sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
      |                     ^~~
som.c:686:37: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
  686 |   QCALLOC(som->freq, int, som->nneur);
      |                                     ^
define.h:170:21: note: in definition of macro ‘QCALLOC’
  170 |      sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
      |                     ^~~
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o weight.o weight.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o winpos.o winpos.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o xml.o xml.c
In file included from xml.c:39:
xml.c: In function ‘init_xml’:
xml.c:65:36: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
   65 |   QMALLOC(xmlstack, xmlstruct, next);
      |                                    ^
define.h:180:21: note: in definition of macro ‘QMALLOC’
  180 |      sprintf(gstr, #ptr " (" #nel "=%lld elements) " \
      |                     ^~~
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o ldactoasc.o ldactoasc.c
xml.c: In function ‘write_xml_meta’:
xml.c:248:35: warning: ‘%02d’ directive writing between 2 and 11 bytes into a region of size between 0 and 7 [-Wformat-overflow=]
  248 |     sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                                   ^~~~
xml.c:248:29: note: directive argument in the range [-2147483647, 2147483647]
  248 |     sprintf(prefs.sdate_end,"%04d-%02d-%02d",
      |                             ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from xml.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 11 and 36 bytes into a destination of size 12
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/bash ../libtool  --tag=CC   --mode=link x86_64-linux-gnu-gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -o ldactoasc ldactoasc.o ./fits/libfits.a -llapack_atlas -lfftw3f -lm 
libtool: link: x86_64-linux-gnu-gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o ldactoasc ldactoasc.o  ./fits/libfits.a -llapack_atlas -lfftw3f -lm
/usr/bin/ld: ./fits/libfits.a(fitscat.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitshead.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitshead.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitskey.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitskey.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsmisc.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsmisc.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsread.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsread.o):(.bss+0xb40): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitstab.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitstab.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsutil.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsutil.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsbody.o):(.bss+0x20): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitsbody.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitscheck.o):(.bss+0x0): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
/usr/bin/ld: ./fits/libfits.a(fitscheck.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitscleanup.o):./src/fits/fitscat_defs.h:89: multiple definition of `gstr'; ./fits/libfits.a(fitscat.o):./src/fits/fitscat_defs.h:89: first defined here
/usr/bin/ld: ./fits/libfits.a(fitscleanup.o):(.bss+0x18): multiple definition of `bswapflag'; ldactoasc.o:./src/fits/fitscat.h:336: first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:569: ldactoasc] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:663: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:528: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:435: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:12: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Debian-astro-maintainers mailing list