Bug#957216: foma: ftbfs with GCC-10

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


Package: src:foma
Version: 1:0.9.18+r243-6
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/foma_0.9.18+r243-6_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

[...]
flex -8 regex.l
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -Wl,-z,relro -c lex.yy.c -o lex.yy.o
flex -8 --prefix=cmatrix cmatrix.l
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -Wl,-z,relro -c lex.cmatrix.c -o lex.cmatrix.o
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -Wl,-z,relro -c regex.c -o regex.o
regex.y: In function ‘function_apply’:
regex.y:70:25: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
   70 |         sprintf(oldstr, "@ARGUMENT%02i@", (i+1));
      |                         ^~~~~~~~~~~~~~~~
regex.y:70:9: note: ‘sprintf’ output between 13 and 14 bytes into a destination of size 13
   70 |         sprintf(oldstr, "@ARGUMENT%02i@", (i+1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ar cru libfoma.a int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libfoma.a
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC -Wl,-z,relro -shared -Wl,-soname,libfoma.so.0 -o libfoma.so.0.9.18 int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.o -Wl,-z,relro -lreadline -lz -ltermcap -z relro
/usr/bin/ld: define.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: define.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: determinize.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: determinize.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: apply.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: apply.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: rewrite.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: rewrite.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: lexcread.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: lexcread.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: topsort.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: topsort.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: flags.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: flags.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: minimize.o:./minimize.c:78: multiple definition of `trans_array'; determinize.o:./determinize.c:71: first defined here
/usr/bin/ld: minimize.o:./minimize.c:72: multiple definition of `trans_list'; determinize.o:./determinize.c:65: first defined here
/usr/bin/ld: minimize.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: minimize.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: reverse.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: reverse.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: extract.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: extract.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: sigma.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: sigma.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: io.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: io.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: structures.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: structures.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: constructions.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: constructions.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: coaccessible.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: coaccessible.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: utf8.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: utf8.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: spelling.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: spelling.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: dynarray.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: dynarray.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: mem.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: mem.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: lex.lexc.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: lex.lexc.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: lex.yy.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: lex.yy.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: lex.cmatrix.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: lex.cmatrix.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
/usr/bin/ld: regex.o:./foma.h:28: multiple definition of `g_defines_f'; int_stack.o:./foma.h:28: first defined here
/usr/bin/ld: regex.o:./foma.h:27: multiple definition of `g_defines'; int_stack.o:./foma.h:27: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:71: libfoma.so.0.9.18] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list