Bug#984421: yade: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:18:58 GMT 2021


Package: src:yade
Version: 2021.01a-3
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/yade_2021.01a-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.

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

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
/usr/lib/qt5/bin/moc -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_PYTHON_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DMAX_LOG_LEVEL=5 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSUITESPARSE_VERSION_4 -DYADE_BOOST_LOG -DYADE_DISABLE_REAL_MULTI_HP -DYADE_FEM -DYADE_ODEINT -DYADE_POTENTIAL_PARTICLES -DYADE_REAL_BIT=64 -DYADE_REAL_DEC=15 -DYADE_SPH -D_GLViewer_EXPORTS -I/<<PKGBUILDDIR>> -I/usr/include/python3.9 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/eigen3 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/suitesparse -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/python3/dist-packages/mpi4py/include -I/<<PKGBUILDDIR>>/debian/build -I/usr/include/QGLViewer -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/c++/11 -I/usr/include/x86_64-linux-gnu/c++/11 -I/usr/include/c++/11/backward -I/usr/lib/gcc/x86_64-linux-gnu/11/include -I/usr/local/include --include /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/moc_predefs.h --output-dep-file -o /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_OpenGLManager.cpp /<<PKGBUILDDIR>>/gui/qt5/OpenGLManager.hpp
AutoMoc: Generating "SRC:/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp", because it doesn't exist, from "SRC:/gui/qt5/GLViewer.hpp"
/usr/lib/qt5/bin/moc -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_PYTHON_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DMAX_LOG_LEVEL=5 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSUITESPARSE_VERSION_4 -DYADE_BOOST_LOG -DYADE_DISABLE_REAL_MULTI_HP -DYADE_FEM -DYADE_ODEINT -DYADE_POTENTIAL_PARTICLES -DYADE_REAL_BIT=64 -DYADE_REAL_DEC=15 -DYADE_SPH -D_GLViewer_EXPORTS -I/<<PKGBUILDDIR>> -I/usr/include/python3.9 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/eigen3 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/suitesparse -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/python3/dist-packages/mpi4py/include -I/<<PKGBUILDDIR>>/debian/build -I/usr/include/QGLViewer -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/c++/11 -I/usr/include/x86_64-linux-gnu/c++/11 -I/usr/include/c++/11/backward -I/usr/lib/gcc/x86_64-linux-gnu/11/include -I/usr/local/include --include /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/moc_predefs.h --output-dep-file -o /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp /<<PKGBUILDDIR>>/gui/qt5/GLViewer.hpp
AutoMoc: Reading dependencies from "SRC:/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_OpenGLManager.cpp.d"
AutoMoc: Reading dependencies from "SRC:/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp.d"
AutoMoc: Generating MOC compilation "SRC:/debian/build/gui/_GLViewer_autogen/mocs_compilation.cpp"
AutoGen: Writing the parse cache file "SRC:/debian/build/gui/CMakeFiles/_GLViewer_autogen.dir/ParseCache.txt"
AutoGen: Writing the settings file "SRC:/debian/build/gui/CMakeFiles/_GLViewer_autogen.dir/AutogenUsed.txt"
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[  0%] Built target _GLViewer_autogen
make  -f gui/CMakeFiles/_GLViewer.dir/build.make gui/CMakeFiles/_GLViewer.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
cd /<<PKGBUILDDIR>>/debian/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/gui /<<PKGBUILDDIR>>/debian/build /<<PKGBUILDDIR>>/debian/build/gui /<<PKGBUILDDIR>>/debian/build/gui/CMakeFiles/_GLViewer.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/debian/build/gui/CMakeFiles/_GLViewer.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/debian/build/gui/CMakeFiles/_GLViewer.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/debian/build/gui/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/debian/build/gui/CMakeFiles/_GLViewer.dir/depend.internal".
Scanning dependencies of target _GLViewer
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make  -f gui/CMakeFiles/_GLViewer.dir/build.make gui/CMakeFiles/_GLViewer.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
[  1%] Building CXX object gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o
cd /<<PKGBUILDDIR>>/debian/build/gui && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_DYN_LINK -DBOOST_CHRONO_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_LOG_DYN_LINK -DBOOST_PYTHON_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DMAX_LOG_LEVEL=5 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSUITESPARSE_VERSION_4 -DYADE_BOOST_LOG -DYADE_DISABLE_REAL_MULTI_HP -DYADE_FEM -DYADE_ODEINT -DYADE_POTENTIAL_PARTICLES -DYADE_REAL_BIT=64 -DYADE_REAL_DEC=15 -DYADE_SPH -D_GLViewer_EXPORTS -I/<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/include -I/<<PKGBUILDDIR>> -I/usr/include/python3.9 -I/usr/lib/python3/dist-packages/numpy/core/include -I/usr/include/eigen3 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/suitesparse -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/python3/dist-packages/mpi4py/include -I/<<PKGBUILDDIR>>/debian/build -I/usr/include/QGLViewer -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Werror -Wformat -Wformat-security -Wformat-nonliteral -Wall -Wextra -Wnarrowing -Wreturn-type -Wuninitialized -Wfloat-conversion -Wcast-align -Wdisabled-optimization -Wtrampolines -Wpointer-arith -Wswitch-bool -Wwrite-strings -Wnon-virtual-dtor -Wreturn-local-addr  -Wno-error=cpp -fdce -fstack-protector-strong -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS  -DQGLVIEWER_FOUND -DYADE_OPENGL -DYADE_QT5  -DYADE_CGAL -DFLOW_ENGINE -DFLOW_ENGINE  -DLINSOLV -pthread -DYADE_MPI -DTWOPHASEFLOW -DYADE_GL2PS -DLBM_ENGINE -DTHERMAL -DPARTIALSAT -fPIC   -ftrack-macro-expansion=0 -save-temps -DEIGEN_DONT_VECTORIZE -DEIGEN_DONT_ALIGN -DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT -DCGAL_DISABLE_ROUNDING_MATH_CHECK -frounding-math -fPIC -std=gnu++14 -o CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o -c /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/mocs_compilation.cpp
In file included from /usr/include/boost/python/exception_translator.hpp:10,
                 from /usr/include/boost/python.hpp:28,
                 from /<<PKGBUILDDIR>>/lib/high-precision/RealHPConfig.hpp:35,
                 from /<<PKGBUILDDIR>>/lib/high-precision/Real.hpp:243,
                 from /<<PKGBUILDDIR>>/lib/base/Math.hpp:12,
                 from /<<PKGBUILDDIR>>/core/Omega.hpp:20,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/../../../../../gui/qt5/GLViewer.hpp:6,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:10,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/mocs_compilation.cpp:2:
/usr/include/boost/bind.hpp:41:273: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   41 | )
      |                                                                                                                                                                                                                                                                                 ^
In file included from /usr/include/boost/python/object/iterator.hpp:28,
                 from /usr/include/boost/python/iterator.hpp:12,
                 from /usr/include/boost/python.hpp:37,
                 from /<<PKGBUILDDIR>>/lib/high-precision/RealHPConfig.hpp:35,
                 from /<<PKGBUILDDIR>>/lib/high-precision/Real.hpp:243,
                 from /<<PKGBUILDDIR>>/lib/base/Math.hpp:12,
                 from /<<PKGBUILDDIR>>/core/Omega.hpp:20,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/../../../../../gui/qt5/GLViewer.hpp:6,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:10,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/mocs_compilation.cpp:2:
/usr/include/boost/detail/iterator.hpp:13:75: note: ‘#pragma message: This header is deprecated. Use <iterator> instead.’
   13 | BOOST_HEADER_DEPRECATED("<iterator>")
      |                                                                           ^
In file included from /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:277,
                 from /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:2887,
                 from /<<PKGBUILDDIR>>/core/Scene.hpp:23,
                 from /<<PKGBUILDDIR>>/pkg/common/PeriodicEngines.hpp:6,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/../../../../../gui/qt5/GLViewer.hpp:8,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/OXRBQHTNNB/moc_GLViewer.cpp:10,
                 from /<<PKGBUILDDIR>>/debian/build/gui/_GLViewer_autogen/mocs_compilation.cpp:2:
/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/ompi/mpi/cxx/op_inln.h: In member function ‘virtual void MPI::Op::Init(void (*)(const void*, void*, int, const MPI::Datatype&), bool)’:
/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/ompi/mpi/cxx/op_inln.h:121:25: error: cast between incompatible function types from ‘void (*)(void*, void*, int*, ompi_datatype_t**, void (*)(void*, void*, int*, ompi_datatype_t**))’ to ‘void (*)(void*, void*, int*, ompi_datatype_t**)’ [-Werror=cast-function-type]
  121 |     (void)MPI_Op_create((MPI_User_function*) ompi_mpi_cxx_op_intercept,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/ompi/mpi/cxx/op_inln.h:123:38: error: cast between incompatible function types from ‘void (*)(const void*, void*, int, const MPI::Datatype&)’ to ‘void (*)(void*, void*, int*, ompi_datatype_t**)’ [-Werror=cast-function-type]
  123 |     ompi_op_set_cxx_callback(mpi_op, (MPI_User_function*) func);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [gui/CMakeFiles/_GLViewer.dir/build.make:85: gui/CMakeFiles/_GLViewer.dir/_GLViewer_autogen/mocs_compilation.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [CMakeFiles/Makefile2:305: gui/CMakeFiles/_GLViewer.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:19: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list