Bug#1037905: yade: ftbfs with GCC-13
Matthias Klose
doko at debian.org
Wed Jun 14 10:33:05 BST 2023
Package: src:yade
Version: 2023.02a-1
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13
[This bug is targeted to the upcoming trixie 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.
The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/yade_2023.02a-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.
To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html
[...]
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_stale_data retbleed
bogomips : 5000.01
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -B/<<PKGBUILDDIR>>/debian/build-double
cd debian/build-double && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1
make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/build-double'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/debian/build-double --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/debian/build-double/CMakeFiles /<<PKGBUILDDIR>>/debian/build-double//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build-double'
make -f CMakeFiles/post_vtk.dir/build.make CMakeFiles/post_vtk.dir/depend
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build-double'
cd /<<PKGBUILDDIR>>/debian/build-double && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/debian/build-double /<<PKGBUILDDIR>>/debian/build-double /<<PKGBUILDDIR>>/debian/build-double/CMakeFiles/post_vtk.dir/DependInfo.cmake --color=
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
make -f CMakeFiles/post_vtk.dir/build.make CMakeFiles/post_vtk.dir/build
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build-double'
[ 0%] Building CXX object CMakeFiles/post_vtk.dir/postprocessing/vtk/VTKRecorder.cpp.o
/usr/bin/c++ -DBOOST_LOG_DYN_LINK -DFREEGLUT_VERSION_MAJOR=3 -DMAX_LOG_LEVEL=5 -DQT_NO_KEYWORDS -DSUITESPARSE_VERSION_4 -DYADE_BOOST_LOG -DYADE_COMPLEX_MP -DYADE_FEM -DYADE_LS_DEM -DYADE_ODEINT -DYADE_POTENTIAL_PARTICLES -DYADE_REAL_BIT=64 -DYADE_REAL_DEC=15 -Dkiss_fft_scalar=double -Dpost_vtk_EXPORTS -I/<<PKGBUILDDIR>> -I/usr/include/python3.11 -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/x86_64-linux-gnu/qt5 -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/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/GL -I/usr/include/suitesparse -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/python3/dist-packages/mpi4py/include -I/<<PKGBUILDDIR>>/debian/build-double -I/<<PKGBUILDDIR>>/debian/build-double/pkg/pfv -isystem /usr/include/vtk-9.1 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -g0 -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 -Wsuggest-override -Wshadow -Wswitch-default -Wno-error=maybe-uninitialized -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 -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 -std=gnu++14 -MD -MT CMakeFiles/post_vtk.dir/postprocessing/vtk/VTKRecorder.cpp.o -MF CMakeFiles/post_vtk.dir/postprocessing/vtk/VTKRecorder.cpp.o.d -o CMakeFiles/post_vtk.dir/postprocessing/vtk/VTKRecorder.cpp.o -c /<<PKGBUILDDIR>>/postprocessing/vtk/VTKRecorder.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:242,
from /<<PKGBUILDDIR>>/lib/base/Math.hpp:12,
from /<<PKGBUILDDIR>>/lib/compatibility/VTKCompatibility.hpp:29,
from /<<PKGBUILDDIR>>/postprocessing/vtk/VTKRecorder.hpp:2,
from /<<PKGBUILDDIR>>/postprocessing/vtk/VTKRecorder.cpp:3:
/usr/include/boost/config/pragma_message.hpp:24: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.’
24 | # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
| ^
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:
/usr/include/boost/config/pragma_message.hpp:24:75: note: ‘#pragma message: This header is deprecated. Use <iterator> instead.’
24 | # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
| ^
In file included from /<<PKGBUILDDIR>>/postprocessing/vtk/VTKRecorder.cpp:27:
/<<PKGBUILDDIR>>/core/Subdomain.hpp: In member function ‘yade::Vector3r yade::Subdomain::centerOfMass() const’:
/<<PKGBUILDDIR>>/core/Subdomain.hpp:322:49: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
322 | const shared_ptr<Body>& b = Body::byId(ids[k], scene);
| ^
/<<PKGBUILDDIR>>/core/Subdomain.hpp:322:63: note: the temporary was destroyed at the end of the full expression ‘yade::Body::byId(((__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type)((const yade::Subdomain*)this)->yade::Subdomain::ids.std::vector<int, std::allocator<int> >::operator[](((std::vector<int, std::allocator<int> >::size_type)k))), boost::shared_ptr<yade::Scene>((* & scene)))’
322 | const shared_ptr<Body>& b = Body::byId(ids[k], scene);
| ~~~~~~~~~~^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [CMakeFiles/post_vtk.dir/build.make:79: CMakeFiles/post_vtk.dir/postprocessing/vtk/VTKRecorder.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
make[3]: *** [CMakeFiles/Makefile2:557: CMakeFiles/post_vtk.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
make[2]: *** [Makefile:139: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
dh_auto_build: error: cd debian/build-double && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:72: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list