diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/swfft/include-stdio_h.patch | 11 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/swfft/package.py | 4 |
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 |