Summary: | sci-libs/vtk-9.2.5 fails to build with gcc-13.0.1_pre20230122 on arm64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roy Bamford <neddyseagoon> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, proxy-maint, waebbl-gentoo |
Priority: | Normal | Keywords: | PATCH, PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.kitware.com/vtk/vtk/-/issues/18782 | ||
See Also: | https://github.com/gentoo/gentoo/pull/29329 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: | Compressed build log |
Description
Roy Bamford
![]() Created attachment 849375 [details]
Compressed build log
Changing the patches from https://gitlab.kitware.com/vtk/vtk/-/issues/18782 to suit epatch as below and dropping it into /etc/portage/patches/sci-libs/vtk-9.2.5/gcc-13.patch allows sci-libs/vtk-9.2.5 to build with gcc-13.0.1_pre20230122 # from https://gitlab.kitware.com/vtk/vtk/-/issues/18782 #diff -up /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h.cstdint-orig /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h #--- /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h.cstdint-orig 2023-01-17 16:02:46.082573616 +0100 #+++ /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h 2023-01-17 16:03:17.307677446 +0100 diff -up /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h.cstdint-orig /builddir/build/BUILD/VTK-9.2.5/IO/Image/vtkSEPReader.h --- VTK-9.2.5/IO/Image/vtkSEPReader.h.cstdint-orig 2023-01-17 16:02:46.082573616 +0100 +++ VTK-9.2.5/IO/Image/vtkSEPReader.h 2023-01-17 16:03:17.307677446 +0100 @@ -27,6 +27,7 @@ #include <array> // for std::array #include <string> // for std::string +#include <cstdint> namespace details { #diff -up ParaView-v5.11.0/VTK/IO/PIO/PIOData.h.include ParaView-v5.11.0/VTK/IO/PIO/PIOData.h #--- ParaView-v5.11.0/VTK/IO/PIO/PIOData.h.include 2022-11-13 18:46:47.000000000 -0700 #+++ ParaView-v5.11.0/VTK/IO/PIO/PIOData.h 2023-01-19 21:56:37.639074039 -0700 diff -up VTK/IO/PIO/PIOData.h.include ParaView-v5.11.0/VTK/IO/PIO/PIOData.h --- VTK/IO/PIO/PIOData.h.include 2022-11-13 18:46:47.000000000 -0700 +++ VTK/IO/PIO/PIOData.h 2023-01-19 21:56:37.639074039 -0700 @@ -1,6 +1,7 @@ #if !defined(_PIODATA_H) #define _PIODATA_H +#include <cstdint> #include <fstream> #include <iostream> #include <list> #diff -up ParaView-v5.11.0/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h.include ParaView-v5.11.0/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h #--- ParaView-v5.11.0/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h.include 2022-11-13 18:46:47.000000000 -0700 #+++ ParaView-v5.11.0/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h 2023-01-20 07:33:28.095379861 -0700 diff -up VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h.include ParaView-v5.11.0/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h --- VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h.include 2022-11-13 18:46:47.000000000 -0700 +++ VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h 2023-01-20 07:33:28.095379861 -0700 @@ -49,6 +49,7 @@ #include "vtkMathTextUtilities.h" #include "vtkRenderingMatplotlibModule.h" // For export macro +#include <cstdint> // for std::uint64_t #include <vector> // for std::vector struct _object; The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7 commit 4b5edf17f69a4315b3fdc422d4a8c4e81c73d6b7 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2023-01-29 08:42:49 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-30 13:25:28 +0000 sci-libs/vtk: fix build with gcc-13 Add #include <cstdint> to build with gcc-13 Closes: https://bugs.gentoo.org/892435 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/29329 Signed-off-by: Sam James <sam@gentoo.org> .../vtk-9.2.5-Add-include-cstdint-for-gcc-13.patch | 20 +++++++++++++++ ...dd-include-cstdint-to-compile-with-gcc-13.patch | 30 ++++++++++++++++++++++ sci-libs/vtk/vtk-9.2.5.ebuild | 2 ++ 3 files changed, 52 insertions(+) |