[DSE-Dev] Bug#957083: checkpolicy: ftbfs with GCC-10

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


Package: src:checkpolicy
Version: 3.0-1
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/checkpolicy_3.0-1_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

[...]
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-cac81d59-1a3a-4aa8-97b7-40c9eeda2169
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package checkpolicy
dpkg-buildpackage: info: source version 3.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Laurent Bigonville <bigon at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_auto_clean
	make -j4 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f checkpolicy checkmodule y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkpolicy.o y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkmodule.o y.tab.c y.tab.h lex.yy.c
make -C test clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/test'
rm -f dispol dismod *.o 
make[2]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
	make -j4 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
bison -y -d policy_parse.y
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o queue.o -c queue.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o module_compiler.o -c module_compiler.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o parse_util.o -c parse_util.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o policy_define.o -c policy_define.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o checkpolicy.o -c checkpolicy.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o checkmodule.o -c checkmodule.c
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o y.tab.o -c y.tab.c
flex policy_scan.l
cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o lex.yy.o -c lex.yy.c
cc -o checkpolicy y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkpolicy.o -Wl,-z,relro -l:libsepol.a
cc -o checkmodule y.tab.o lex.yy.o queue.o module_compiler.o parse_util.o policy_define.o checkmodule.o -Wl,-z,relro -l:libsepol.a
/usr/bin/ld/usr/bin/ld: : policy_define.o:policy_define.o./checkpolicy.h::16: multiple definition of `./checkpolicy.h:16: multiple definition of `te_assertions'te_assertions'; ; y.tab.o:y.tab.o./checkpolicy.h::./checkpolicy.h:16: first defined here16: first defined here

/usr/bin/ld: /usr/bin/ld: checkmodule.o:./checkpolicy.h:16: multiple definition of `te_assertions'; y.tab.o:./checkpolicy.h:16: first defined here
checkpolicy.o:./checkpolicy.h:16: multiple definition of `te_assertions'; y.tab.o:./checkpolicy.h:16: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:36: checkmodule] Error 1
make[1]: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:33: checkpolicy] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:14: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the SELinux-devel mailing list