summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMosè Giordano <giordano@users.noreply.github.com>2020-06-23 09:17:32 +0100
committerGitHub <noreply@github.com>2020-06-23 10:17:32 +0200
commit561f6d6c210f9c7848c9b14f6d9b021217d91fb3 (patch)
tree063b3d49af611842c3f4366cbc6068ad51e01830 /var
parent6fdf5913abac23bf5e15457f4c1337f4d2323981 (diff)
downloadspack-561f6d6c210f9c7848c9b14f6d9b021217d91fb3.tar.gz
spack-561f6d6c210f9c7848c9b14f6d9b021217d91fb3.tar.bz2
spack-561f6d6c210f9c7848c9b14f6d9b021217d91fb3.tar.xz
spack-561f6d6c210f9c7848c9b14f6d9b021217d91fb3.zip
swfft: Add patch to make it build (#17196)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/swfft/include-stdio_h.patch11
-rw-r--r--var/spack/repos/builtin/packages/swfft/package.py4
2 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/swfft/include-stdio_h.patch b/var/spack/repos/builtin/packages/swfft/include-stdio_h.patch
new file mode 100644
index 0000000000..86c9390cae
--- /dev/null
+++ b/var/spack/repos/builtin/packages/swfft/include-stdio_h.patch
@@ -0,0 +1,11 @@
+--- a/TimingStats.h
++++ b/TimingStats.h
+@@ -56,7 +56,7 @@
+ #define HACC_TIMINGSTATS_H
+
+ #include <math.h>
+-
++#include <stdio.h>
+ #include <mpi.h>
+
+ // lightweight timing statistics from MPI_Wtime() calls
diff --git a/var/spack/repos/builtin/packages/swfft/package.py b/var/spack/repos/builtin/packages/swfft/package.py
index f6bfae90ec..3d4766f77b 100644
--- a/var/spack/repos/builtin/packages/swfft/package.py
+++ b/var/spack/repos/builtin/packages/swfft/package.py
@@ -21,6 +21,10 @@ class Swfft(MakefilePackage):
depends_on('mpi')
depends_on('fftw')
+ # fix error
+ # TimingStats.h:94:35: error: 'printf' was not declared in this scope
+ patch('include-stdio_h.patch')
+
tags = ['proxy-app', 'ecp-proxy-app']
@property