https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sci-visualization/paraview-5.9.0 fails to compile with gcc-11. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Created attachment 707241 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Possible context of error(s): /var/tmp/portage/sci-visualization/paraview-5.9.0/work/ParaView-v5.9.0/VTK/Rendering/Core/vtkColorTransferFunction.cxx:1874:26: error: ‘numeric_limits’ is not a member of ‘std’
Exact same error in sci-visualization/paraview-5.9.1 /var/tmp/portage/sci-visualization/paraview-5.9.1/work/ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx: Dans la fonction membre « double vtkColorTransferFunction::FindMinimumXDistance() »: /var/tmp/portage/sci-visualization/paraview-5.9.1/work/ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx:1874:26: erreur: « numeric_limits » n'est pas un membre de « std » 1874 | double distance = std::numeric_limits<double>::max(); | ^~~~~~~~~~~~~~ /var/tmp/portage/sci-visualization/paraview-5.9.1/work/ParaView-v5.9.1/VTK/Rendering/Core/vtkColorTransferFunction.cxx:1874:41: erreur: expected primary-expression before « double » 1874 | double distance = std::numeric_limits<double>::max(); | ^~~~~~
Created attachment 713574 [details, diff] gcc11.patch With this patch ebuild emerges fine Just drop it in /etc/portage/patches/sci-visualization/Paraview-5.9.1/
(In reply to Benjamin Réveillé from comment #4) > Created attachment 713574 [details, diff] [details, diff] > gcc11.patch > > With this patch ebuild emerges fine > > Just drop it in /etc/portage/patches/sci-visualization/Paraview-5.9.1/ Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3dc785bbc6000bc1ad0c48a10f3877404e046da commit c3dc785bbc6000bc1ad0c48a10f3877404e046da Author: Sam James <sam@gentoo.org> AuthorDate: 2021-06-13 16:32:01 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-13 17:13:52 +0000 sci-visualization/paraview: fix build for GCC 11 Closes: https://bugs.gentoo.org/789573 Signed-off-by: Sam James <sam@gentoo.org> .../files/paraview-5.9.0-gcc11-include.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
*** Bug 794124 has been marked as a duplicate of this bug. ***