trilonos: Fix missing #include <cstdint> for gcc-13+ (#46165)

This commit is contained in:
Pasquale Claudio Africa 2024-09-28 14:33:43 +02:00 committed by GitHub
parent 3bacced861
commit aff3fd8efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
diff -Naur spack-src.orig/packages/kokkos/core/src/impl/Kokkos_MemoryPool.cpp spack-src/packages/kokkos/core/src/impl/Kokkos_MemoryPool.cpp
--- spack-src.orig/packages/kokkos/core/src/impl/Kokkos_MemoryPool.cpp 2024-09-02 10:53:10.022724683 +0200
+++ spack-src/packages/kokkos/core/src/impl/Kokkos_MemoryPool.cpp 2024-09-02 10:57:03.312228742 +0200
@@ -44,6 +44,7 @@
#include <impl/Kokkos_Error.hpp>
+#include <cstdint>
#include <ostream>
#include <sstream>
diff -Naur spack-src.orig/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp spack-src/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp
--- spack-src.orig/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp 2024-09-02 10:53:50.098010896 +0200
+++ spack-src/packages/teuchos/core/src/Teuchos_BigUIntDecl.hpp 2024-09-02 10:51:17.777157344 +0200
@@ -42,6 +42,7 @@
#ifndef TEUCHOS_BIG_UINT_DECL_HPP
#define TEUCHOS_BIG_UINT_DECL_HPP
+#include <cstdint>
#include <iosfwd>
/*! \file Teuchos_BigUIntDecl.hpp
diff -Naur spack-src.orig/packages/teuchos/core/src/Teuchos_PrintDouble.cpp spack-src/packages/teuchos/core/src/Teuchos_PrintDouble.cpp
--- spack-src.orig/packages/teuchos/core/src/Teuchos_PrintDouble.cpp 2024-09-02 10:54:02.240401775 +0200
+++ spack-src/packages/teuchos/core/src/Teuchos_PrintDouble.cpp 2024-09-02 10:51:34.110672927 +0200
@@ -42,6 +42,7 @@
#include "Teuchos_PrintDouble.hpp"
#include "Teuchos_BigUInt.hpp"
+#include <cstdint>
#include <cstring>
namespace Teuchos {

View File

@ -516,6 +516,7 @@ class Trilinos(CMakePackage, CudaPackage, ROCmPackage):
"0001-use-the-gcnArchName-inplace-of-gcnArch-as-gcnArch-is.patch",
when="@15.0.0 ^hip@6.0 +rocm",
)
patch("cstdint_gcc13.patch", when="@13.4.0:13.4.1 %gcc@13.0.0:")
# Allow building with +teko gotype=long
patch(