Bug#984051: esys-particle: ftbfs with GCC-11

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


Package: src:esys-particle
Version: 2.3.5+dfsg2-1
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/esys-particle_2.3.5+dfsg2-1_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.

[...]
make[4]: Entering directory '/<<PKGBUILDDIR>>/pis'
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o pi_storage.lo pi_storage.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c pi_storage.cpp  -fPIC -DPIC -o .libs/pi_storage.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c pi_storage.cpp -o pi_storage.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=link mpicxx  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -release 2.3.4  -lboost_system  -Wl,-z,relro -Wl,-z,now -o libpis.la -rpath /usr/lib/x86_64-linux-gnu pi_storage.lo  -lpython3.9 -lmpi++ -lmpi 
libtool: link: mpicxx  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o  .libs/pi_storage.o   -lboost_system -lpython3.9 -lmpi++ -L/usr/lib/x86_64-linux-gnu/openmpi/lib -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -lmpi_cxx -lmpi -lstdc++ -lm -lpthread -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libpis-2.3.4.so -o .libs/libpis-2.3.4.so
libtool: link: (cd ".libs" && rm -f "libpis.so" && ln -s "libpis-2.3.4.so" "libpis.so")
libtool: link: ar cr .libs/libpis.a  pi_storage.o
libtool: link: ranlib .libs/libpis.a
libtool: link: ( cd ".libs" && rm -f "libpis.la" && ln -s "../libpis.la" "libpis.la" )
make[4]: Leaving directory '/<<PKGBUILDDIR>>/pis'
Making all in Geometry
make[4]: Entering directory '/<<PKGBUILDDIR>>/Geometry'
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o ARandomAssembly.lo ARandomAssembly.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o BasicInteraction.lo BasicInteraction.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o LayeredBlock.lo LayeredBlock.cpp
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o Line.lo Line.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c BasicInteraction.cpp  -fPIC -DPIC -o .libs/BasicInteraction.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ARandomAssembly.cpp  -fPIC -DPIC -o .libs/ARandomAssembly.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c LayeredBlock.cpp  -fPIC -DPIC -o .libs/LayeredBlock.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Line.cpp  -fPIC -DPIC -o .libs/Line.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c BasicInteraction.cpp -o BasicInteraction.o >/dev/null 2>&1
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Line.cpp -o Line.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o PaddedBlock3D.lo PaddedBlock3D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c PaddedBlock3D.cpp  -fPIC -DPIC -o .libs/PaddedBlock3D.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c LayeredBlock.cpp -o LayeredBlock.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o Plane3D.lo Plane3D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Plane3D.cpp  -fPIC -DPIC -o .libs/Plane3D.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c PaddedBlock3D.cpp -o PaddedBlock3D.o >/dev/null 2>&1
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ARandomAssembly.cpp -o ARandomAssembly.o >/dev/null 2>&1
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c Plane3D.cpp -o Plane3D.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o RandomAssembly2D.lo RandomAssembly2D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomAssembly2D.cpp  -fPIC -DPIC -o .libs/RandomAssembly2D.o
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o RandomAssembly3D.lo RandomAssembly3D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomAssembly3D.cpp  -fPIC -DPIC -o .libs/RandomAssembly3D.o
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o RandomBlock3D.lo RandomBlock3D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomBlock3D.cpp  -fPIC -DPIC -o .libs/RandomBlock3D.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomAssembly2D.cpp -o RandomAssembly2D.o >/dev/null 2>&1
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomAssembly3D.cpp -o RandomAssembly3D.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o RandomBlock.lo RandomBlock.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomBlock.cpp  -fPIC -DPIC -o .libs/RandomBlock.o
/bin/bash ../libtool  --tag=CXX   --mode=compile mpicxx -DHAVE_CONFIG_H -I. -I..  "-I.." -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o SimpleNTable3D.lo SimpleNTable3D.cpp
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c SimpleNTable3D.cpp  -fPIC -DPIC -o .libs/SimpleNTable3D.o
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomBlock3D.cpp -o RandomBlock3D.o >/dev/null 2>&1
In file included from /usr/include/c++/11/set:60,
                 from ../Geometry/SimpleNTable.h:22,
                 from ../Geometry/SimpleNTable3D.h:19,
                 from SimpleNTable3D.cpp:13:
/usr/include/c++/11/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = BasicInteraction; _Val = BasicInteraction; _KeyOfValue = std::_Identity<BasicInteraction>; _Compare = BILess; _Alloc = std::allocator<BasicInteraction>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<BasicInteraction>*]’:
/usr/include/c++/11/bits/stl_tree.h:2069:47:   required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = BasicInteraction; _Val = BasicInteraction; _KeyOfValue = std::_Identity<BasicInteraction>; _Compare = BILess; _Alloc = std::allocator<BasicInteraction>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = BasicInteraction]’
/usr/include/c++/11/bits/stl_tree.h:2122:4:   required from ‘std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = BasicInteraction; _Key = BasicInteraction; _Val = BasicInteraction; _KeyOfValue = std::_Identity<BasicInteraction>; _Compare = BILess; _Alloc = std::allocator<BasicInteraction>]’
/usr/include/c++/11/bits/stl_set.h:521:25:   required from ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = BasicInteraction; _Compare = BILess; _Alloc = std::allocator<BasicInteraction>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<BasicInteraction, BasicInteraction, std::_Identity<BasicInteraction>, BILess, std::allocator<BasicInteraction> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<BasicInteraction>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<BasicInteraction>, BasicInteraction>::rebind<BasicInteraction>; typename _Alloc::value_type = BasicInteraction; std::set<_Key, _Compare, _Alloc>::value_type = BasicInteraction]’
SimpleNTable3D.cpp:222:75:   required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const BILess&, const BasicInteraction&, const BasicInteraction&>’ evaluates to false
make[4]: *** [Makefile:703: SimpleNTable3D.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  mpicxx -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include -I../Foundation -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c RandomBlock.cpp -o RandomBlock.o >/dev/null 2>&1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/Geometry'
make[3]: *** [Makefile:461: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:392: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:39: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list