[pkg-apparmor] Bug#777773: apparmor: ftbfs with GCC-5

Matthias Klose doko at debian.org
Thu Feb 12 10:29:47 UTC 2015


Package: src:apparmor
Version: 2.9.0-3
Severity: normal
Tags: sid stretch
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-5

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

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc5-20150205/apparmor_2.9.0-3_unstable_gcc5.log
The last lines of the build log are at the end of this report.

To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ 

Common build failures are C11 as the default C mode, 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-5/porting_to.html

[...]
dbus.cc:152:35: note:   cannot convert 'os' (type 'std::ostream {aka std::basic_ostream<char>}') to type 'std::_Setbase'
   os << " member=\"" << member << os << "\"";
                                   ^
In file included from dbus.cc:23:0:
/usr/include/c++/5/iomanip:109:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Setiosflags)
     operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f)
     ^
/usr/include/c++/5/iomanip:109:5: note:   template argument deduction/substitution failed:
dbus.cc:152:35: note:   cannot convert 'os' (type 'std::ostream {aka std::basic_ostream<char>}') to type 'std::_Setiosflags'
   os << " member=\"" << member << os << "\"";
                                   ^
In file included from dbus.cc:23:0:
/usr/include/c++/5/iomanip:79:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, std::_Resetiosflags)
     operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f)
     ^
/usr/include/c++/5/iomanip:79:5: note:   template argument deduction/substitution failed:
dbus.cc:152:35: note:   cannot convert 'os' (type 'std::ostream {aka std::basic_ostream<char>}') to type 'std::_Resetiosflags'
   os << " member=\"" << member << os << "\"";
                                   ^
In file included from /usr/include/c++/5/bits/ios_base.h:46:0,
                 from /usr/include/c++/5/iomanip:40,
                 from dbus.cc:23:
/usr/include/c++/5/system_error:209:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
     operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
     ^
/usr/include/c++/5/system_error:209:5: note:   template argument deduction/substitution failed:
dbus.cc:152:35: note:   cannot convert 'os' (type 'std::ostream {aka std::basic_ostream<char>}') to type 'const std::error_code&'
   os << " member=\"" << member << os << "\"";
                                   ^
In file included from /usr/include/c++/5/string:52:0,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/iomanip:40,
                 from dbus.cc:23:
/usr/include/c++/5/bits/basic_string.h:5168:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5168:5: note:   template argument deduction/substitution failed:
dbus.cc:152:35: note:   'std::ostream {aka std::basic_ostream<char>}' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
   os << " member=\"" << member << os << "\"";
                                   ^
make[2]: *** [dbus.o] Error 1
Makefile:247: recipe for target 'dbus.o' failed
make[2]: Leaving directory '/«PKGBUILDDIR»/parser'
make[1]: *** [override_dh_auto_build] Error 2
debian/rules:20: recipe for target 'override_dh_auto_build' failed
make[1]: Leaving directory '/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
debian/rules:11: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the pkg-apparmor-team mailing list