[Pkg-nagios-devel] Bug#777911: icinga2: ftbfs with GCC-5

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


Package: src:icinga2
Version: 2.2.4-1
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/icinga2_2.2.4-1_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

[...]
/«PKGBUILDDIR»/lib/base/process.cpp: In member function 'void icinga::Process::Run(const boost::function<void(const icinga::ProcessResult&)>&)':
/«PKGBUILDDIR»/lib/base/process.cpp:295:57: error: no matching function for call to 'call_once(boost::once_flag&, void (*)())'
  boost::call_once(l_OnceFlag, &Process::ThreadInitialize);
                                                         ^
In file included from /usr/include/boost/thread/once.hpp:20:0,
                 from /«PKGBUILDDIR»/lib/base/process.cpp:32:
/usr/include/boost/thread/pthread/once_atomic.hpp:121:15: note: candidate: template<class Function, class ... ArgTypes> void boost::call_once(boost::once_flag&, boost::detail::thread_move_t<T>, boost::detail::thread_move_t<Args>...)
   inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)
               ^
/usr/include/boost/thread/pthread/once_atomic.hpp:121:15: note:   template argument deduction/substitution failed:
/«PKGBUILDDIR»/lib/base/process.cpp:295:57: note:   mismatched types 'boost::detail::thread_move_t<T>' and 'void (*)()'
  boost::call_once(l_OnceFlag, &Process::ThreadInitialize);
                                                         ^
In file included from /«PKGBUILDDIR»/lib/base/process.cpp:32:0:
/usr/include/boost/thread/once.hpp:35:13: note: candidate: template<class Function> void boost::call_once(Function, boost::once_flag&)
 inline void call_once(Function func,once_flag& flag)
             ^
/usr/include/boost/thread/once.hpp:35:13: note:   template argument deduction/substitution failed:
/«PKGBUILDDIR»/lib/base/process.cpp:295:57: note:   cannot convert 'icinga::Process::ThreadInitialize' (type 'void (*)()') to type 'boost::once_flag&'
  boost::call_once(l_OnceFlag, &Process::ThreadInitialize);
                                                         ^
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles 
[ 13%] Building CXX object lib/base/CMakeFiles/base.dir/socket.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib/base && /usr/bin/c++   -DI2_BASE_BUILD -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -g -fPIC -I/«PKGBUILDDIR» -I/«PKGBUILDDIR»/lib -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib -I/«PKGBUILDDIR»/third-party/execvpe -I/«PKGBUILDDIR»/third-party/mmatch    -o CMakeFiles/base.dir/socket.cpp.o -c /«PKGBUILDDIR»/lib/base/socket.cpp
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles 11
[ 14%] Building CXX object lib/base/CMakeFiles/base.dir/stacktrace.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib/base && /usr/bin/c++   -DI2_BASE_BUILD -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -g -fPIC -I/«PKGBUILDDIR» -I/«PKGBUILDDIR»/lib -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib -I/«PKGBUILDDIR»/third-party/execvpe -I/«PKGBUILDDIR»/third-party/mmatch    -o CMakeFiles/base.dir/stacktrace.cpp.o -c /«PKGBUILDDIR»/lib/base/stacktrace.cpp
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles 
[ 14%] Building CXX object lib/base/CMakeFiles/base.dir/statsfunction.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib/base && /usr/bin/c++   -DI2_BASE_BUILD -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -g -fPIC -I/«PKGBUILDDIR» -I/«PKGBUILDDIR»/lib -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib -I/«PKGBUILDDIR»/third-party/execvpe -I/«PKGBUILDDIR»/third-party/mmatch    -o CMakeFiles/base.dir/statsfunction.cpp.o -c /«PKGBUILDDIR»/lib/base/statsfunction.cpp
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles 
[ 14%] Building CXX object lib/base/CMakeFiles/base.dir/stdiostream.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib/base && /usr/bin/c++   -DI2_BASE_BUILD -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -g -fPIC -I/«PKGBUILDDIR» -I/«PKGBUILDDIR»/lib -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/lib -I/«PKGBUILDDIR»/third-party/execvpe -I/«PKGBUILDDIR»/third-party/mmatch    -o CMakeFiles/base.dir/stdiostream.cpp.o -c /«PKGBUILDDIR»/lib/base/stdiostream.cpp
make[4]: *** [lib/base/CMakeFiles/base.dir/process.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
lib/base/CMakeFiles/base.dir/build.make:559: recipe for target 'lib/base/CMakeFiles/base.dir/process.cpp.o' failed
make[4]: Leaving directory '/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
make[3]: *** [lib/base/CMakeFiles/base.dir/all] Error 2
CMakeFiles/Makefile2:1262: recipe for target 'lib/base/CMakeFiles/base.dir/all' failed
make[3]: Leaving directory '/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
make[2]: *** [all] Error 2
Makefile:150: recipe for target 'all' failed
make[2]: Leaving directory '/«PKGBUILDDIR»/obj-x86_64-linux-gnu'
dh_auto_build: make -j10 returned exit code 2
make[1]: *** [override_dh_auto_build] Error 2
debian/rules:11: recipe for target 'override_dh_auto_build' failed
make[1]: Leaving directory '/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
debian/rules:6: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the Pkg-nagios-devel mailing list