summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-10-30 12:01:05 +0900
committerGitHub <noreply@github.com>2020-10-29 22:01:05 -0500
commit52379d87fe7cf1db7389e1f00bde1c6563dae36f (patch)
tree35ab13dda5cfc0be3a5617eb437e9a6e1ed58e0b
parentebe1c6badd0053096b002d4621047e9dec971c00 (diff)
downloadspack-52379d87fe7cf1db7389e1f00bde1c6563dae36f.tar.gz
spack-52379d87fe7cf1db7389e1f00bde1c6563dae36f.tar.bz2
spack-52379d87fe7cf1db7389e1f00bde1c6563dae36f.tar.xz
spack-52379d87fe7cf1db7389e1f00bde1c6563dae36f.zip
caliper: Fix for aarch64 (#19564)
-rw-r--r--var/spack/repos/builtin/packages/caliper/for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/caliper/package.py2
2 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/caliper/for_aarch64.patch b/var/spack/repos/builtin/packages/caliper/for_aarch64.patch
new file mode 100644
index 0000000000..d3fed9a091
--- /dev/null
+++ b/var/spack/repos/builtin/packages/caliper/for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/src/services/callpath/Callpath.cpp.bak 2020-10-28 14:38:19.668122844 +0900
++++ spack-src/src/services/callpath/Callpath.cpp 2020-10-28 15:03:12.258061188 +0900
+@@ -63,7 +63,7 @@
+ unw_context_t unw_ctx;
+ unw_cursor_t unw_cursor;
+
+- unw_getcontext(&unw_ctx);
++ unw_getcontext(unw_ctx);
+
+ if (unw_init_local(&unw_cursor, &unw_ctx) < 0) {
+ Log(0).stream() << "callpath: unable to init libunwind cursor" << endl;
diff --git a/var/spack/repos/builtin/packages/caliper/package.py b/var/spack/repos/builtin/packages/caliper/package.py
index 9e4ddfca73..fe55a69133 100644
--- a/var/spack/repos/builtin/packages/caliper/package.py
+++ b/var/spack/repos/builtin/packages/caliper/package.py
@@ -79,6 +79,8 @@ class Caliper(CMakePackage):
conflicts('+dyninst', when='@:1.99',
msg='Dyninst unsupported by version <=2.0.1')
+ patch('for_aarch64.patch', when='target=aarch64:')
+
def cmake_args(self):
spec = self.spec