caliper: Fix for aarch64 (#19564)

This commit is contained in:
t-nojiri 2020-10-30 12:01:05 +09:00 committed by GitHub
parent ebe1c6badd
commit 52379d87fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -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;

View file

@ -79,6 +79,8 @@ class Caliper(CMakePackage):
conflicts('+dyninst', when='@:1.99', conflicts('+dyninst', when='@:1.99',
msg='Dyninst unsupported by version <=2.0.1') msg='Dyninst unsupported by version <=2.0.1')
patch('for_aarch64.patch', when='target=aarch64:')
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec