[DSE-Dev] Bug#897857: setools: ftbfs with GCC-8

Matthias Klose doko at debian.org
Fri May 4 13:23:34 BST 2018


Package: src:setools
Version: 4.1.1-3
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8

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-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.

The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/setools_4.1.1-3_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 8, either set CC=gcc-8 CXX=g++-8 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-8/porting_to.html

[...]
copying setoolsgui/apol/netifconquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/exclude_types.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/choose_analysis.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/commonquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/boolquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/genfsconquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/permmapping.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/categoryquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/objclassquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/typeattrquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/typequery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/boundsquery.ui -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/apol.qhc -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
copying setoolsgui/apol/apol.qch -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.6/build/setoolsgui/apol
running build_ext
running build_yacc
Generating parser
bison -y -d libqpol/policy_parse.y -o libqpol/policy_parse.c
running build_lex
Generating scanner
flex -o libqpol/policy_scan.c libqpol/policy_scan.l
building 'setools.policyrep._qpol' extension
swigging setools/policyrep/qpol.i to setools/policyrep/qpol_wrap.c
swig -python -Ilibqpol/include -o setools/policyrep/qpol_wrap.c setools/policyrep/qpol.i
creating build
creating build/temp.linux-amd64-3.6
creating build/temp.linux-amd64-3.6/setools
creating build/temp.linux-amd64-3.6/setools/policyrep
creating build/temp.linux-amd64-3.6/libqpol
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibqpol -Ilibqpol/include -I/usr/include/python3.6m -c setools/policyrep/qpol_wrap.c -o build/temp.linux-amd64-3.6/setools/policyrep/qpol_wrap.o -Werror -Wextra -Waggregate-return -Wfloat-equal -Wformat -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-include-dirs -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wunknown-pragmas -Wwrite-strings -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-qual -Wno-shadow -Wno-unreachable-code -fno-exceptions
setools/policyrep/qpol_wrap.c:1819:23: error: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Werror=cast-function-type]
   {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
                       ^
setools/policyrep/qpol_wrap.c:1820:23: error: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Werror=cast-function-type]
   {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"acquires ownership of the pointer"},
                       ^
setools/policyrep/qpol_wrap.c:1823:23: error: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Werror=cast-function-type]
   {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
                       ^
setools/policyrep/qpol_wrap.c:1824:23: error: cast between incompatible function types from 'PyObject * (*)(SwigPyObject *)' {aka 'struct _object * (*)(struct <anonymous> *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'} [-Werror=cast-function-type]
   {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
                       ^
cc1: all warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
E: pybuild pybuild:336: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build 
dh_auto_build: pybuild --build -i python{version} -p 3.6 returned exit code 13
make[1]: *** [debian/rules:18: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the SELinux-devel mailing list