[Pkg-kbd-devel] Bug#957398: kbd: ftbfs with GCC-10

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


Package: src:kbd
Version: 2.0.4-4
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/kbd_2.0.4-4_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

[...]
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o kmap.lo kmap.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c kmap.c  -fPIC -DPIC -o .libs/kmap.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c kmap.c -o kmap.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o diacr.lo diacr.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c diacr.c  -fPIC -DPIC -o .libs/diacr.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c diacr.c -o diacr.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o func.lo func.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c func.c  -fPIC -DPIC -o .libs/func.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c func.c -o func.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o summary.lo summary.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c summary.c  -fPIC -DPIC -o .libs/summary.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c summary.c -o summary.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o loadkeys.lo loadkeys.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c loadkeys.c  -fPIC -DPIC -o .libs/loadkeys.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c loadkeys.c -o loadkeys.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o parser.lo parser.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c parser.c  -fPIC -DPIC -o .libs/parser.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c parser.c -o parser.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o analyze.lo analyze.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c analyze.c  -fPIC -DPIC -o .libs/analyze.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c analyze.c -o analyze.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o modifiers.lo modifiers.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c modifiers.c  -fPIC -DPIC -o .libs/modifiers.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c modifiers.c -o modifiers.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o ksyms.lo ksyms.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c ksyms.c  -fPIC -DPIC -o .libs/ksyms.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I. -I./.. -I./.. -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -U_GNU_SOURCE -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2 -Os -g -c ksyms.c -o ksyms.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=link gcc  -Os -g  -Wl,-z,relro -o libkeymap.la   array.lo findfile.lo common.lo kernel.lo dump.lo kmap.lo diacr.lo func.lo summary.lo loadkeys.lo parser.lo analyze.lo modifiers.lo ksyms.lo   
libtool: link: ar cr .libs/libkeymap.a .libs/array.o .libs/findfile.o .libs/common.o .libs/kernel.o .libs/dump.o .libs/kmap.o .libs/diacr.o .libs/func.o .libs/summary.o .libs/loadkeys.o .libs/parser.o .libs/analyze.o .libs/modifiers.o .libs/ksyms.o 
libtool: link: ranlib .libs/libkeymap.a
libtool: link: ( cd ".libs" && rm -f "libkeymap.la" && ln -s "../libkeymap.la" "libkeymap.la" )
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/libkeymap'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/libkeymap'
/usr/bin/make -C src/ CFLAGS="-Os -g" loadkeys kbd_mode setfont
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o loadkeys.o loadkeys.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o getfd.o getfd.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o xmalloc.o xmalloc.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o kbd_error.o kbd_error.c
rm -f libcommon.a
ar cru libcommon.a getfd.o xmalloc.o kbd_error.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libcommon.a
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o psffontop.o psffontop.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o utf8.o utf8.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o kdmapop.o kdmapop.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o loadunimap.o loadunimap.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o kdfontop.o kdfontop.c
rm -f libfont.a
ar cru libfont.a psffontop.o utf8.o kdmapop.o loadunimap.o kdfontop.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libfont.a
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Os -g  -Wl,-z,relro -o loadkeys  loadkeys.o libcommon.a libfont.a libkeymap/libkeymap.la  
libtool: link: gcc -Os -g -Wl,-z -Wl,relro -o loadkeys loadkeys.o  libcommon.a libfont.a libkeymap/.libs/libkeymap.a
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o kbd_mode.o kbd_mode.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Os -g  -Wl,-z,relro -o kbd_mode  kbd_mode.o libcommon.a libfont.a libkeymap/libkeymap.la  
libtool: link: gcc -Os -g -Wl,-z -Wl,relro -o kbd_mode kbd_mode.o  libcommon.a libfont.a libkeymap/.libs/libkeymap.a
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o setfont.o setfont.c
gcc -DHAVE_CONFIG_H -I. -I..  -I./libkeymap -I./libkeymap -I./libkeymap/keymap -I./libkeymap/keymap -DDATADIR=\"/usr/share\" -DLOCALEDIR=\"/usr/share/locale\" -D_FORTIFY_SOURCE=2 -funit-at-a-time -Wdate-time -D_FORTIFY_SOURCE=2  -Os -g -c -o mapscrn.o mapscrn.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Os -g  -Wl,-z,relro -o setfont  setfont.o mapscrn.o libcommon.a libfont.a libkeymap/libkeymap.la  
libtool: link: gcc -Os -g -Wl,-z -Wl,relro -o setfont setfont.o mapscrn.o  libcommon.a libfont.a libkeymap/.libs/libkeymap.a
/usr/bin/ld: libfont.a(kdmapop.o):/<<PKGBUILDDIR>>/src/version.h:8: multiple definition of `progname'; setfont.o:/<<PKGBUILDDIR>>/src/version.h:8: first defined here
/usr/bin/ld: libfont.a(kdfontop.o):/<<PKGBUILDDIR>>/src/version.h:8: multiple definition of `progname'; setfont.o:/<<PKGBUILDDIR>>/src/version.h:8: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:840: setfont] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [debian/rules:44: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:27: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-kbd-devel mailing list