FTBFS with gcc-13
Reported by Debian for the 2.9.0 release: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037630
cd /<<PKGBUILDDIR>>/build/dune/common/simd/test && /usr/bin/c++ -DENABLE_MPI=1 -DENABLE_QUADMATH=1 -DHAVE_CONFIG_H -D_GLIBCXX_USE_FLOAT128 -I/<<PKGBUILDDIR>>/build -I/<<PKGBUILDDIR>> -isystem /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -std=c++17 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIE -fext-numeric-literals -MD -MT dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o -MF CMakeFiles/looptest.dir/looptest.cc.o.d -o CMakeFiles/looptest.dir/looptest.cc.o -c /<<PKGBUILDDIR>>/build/dune/common/simd/test/looptest.cc
In file included from /usr/include/c++/13/cassert:44,
from /<<PKGBUILDDIR>>/dune/common/simd/interface.hh:17,
from /<<PKGBUILDDIR>>/dune/common/simd/simd.hh:13,
from /<<PKGBUILDDIR>>/dune/common/simd/loop.hh:13,
from /<<PKGBUILDDIR>>/build/dune/common/simd/test/looptest.cc:12:
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh: In constructor ‘Dune::LoopSIMD<T, S, A>::LoopSIMD()’:
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh:70:31: error: ‘uintptr_t’ does not name a type
70 | assert(reinterpret_cast<uintptr_t>(this) % std::min(alignof(LoopSIMD<T,S,A>),alignof(std::max_align_t)) == 0);
| ^~~~~~~~~
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh:14:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
13 | #include <dune/common/simd/simd.hh>
+++ |+#include <cstdint>
14 | #include <dune/common/typetraits.hh>
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh: In constructor ‘Dune::LoopSIMD<T, S, A>::LoopSIMD(const Dune::LoopSIMD<T, S, OA>&)’:
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh:82:31: error: ‘uintptr_t’ does not name a type
82 | assert(reinterpret_cast<uintptr_t>(this) % std::min(alignof(LoopSIMD<T,S,A>),alignof(std::max_align_t)) == 0);
| ^~~~~~~~~
/<<PKGBUILDDIR>>/dune/common/simd/loop.hh:82:31: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
make[5]: *** [dune/common/simd/test/CMakeFiles/looptest.dir/build.make:835: dune/common/simd/test/CMakeFiles/looptest.dir/looptest.cc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
Edited by Markus Blatt