From 5def1dd39d593db4373d4a6ddd7d9edd44fc2a09 Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Sat, 7 Sep 2019 05:26:24 +0900 Subject: openspeedshop: fixed build on arm. (#11861) * openspeedshop: fixed build on arm. * remove patch comment. --- .../builtin/packages/openspeedshop-utils/arm.patch | 25 ++++++++++++++++++++++ .../packages/openspeedshop-utils/package.py | 1 + .../repos/builtin/packages/openspeedshop/arm.patch | 25 ++++++++++++++++++++++ .../builtin/packages/openspeedshop/package.py | 1 + 4 files changed, 52 insertions(+) create mode 100644 var/spack/repos/builtin/packages/openspeedshop-utils/arm.patch create mode 100644 var/spack/repos/builtin/packages/openspeedshop/arm.patch (limited to 'var') diff --git a/var/spack/repos/builtin/packages/openspeedshop-utils/arm.patch b/var/spack/repos/builtin/packages/openspeedshop-utils/arm.patch new file mode 100644 index 0000000000..c0099cfd35 --- /dev/null +++ b/var/spack/repos/builtin/packages/openspeedshop-utils/arm.patch @@ -0,0 +1,25 @@ +diff --git a/plugins/views/iot/iot_view.cxx b/plugins/views/iot/iot_view.cxx +index f4cdf48..ef1b81f 100644 +--- a/plugins/views/iot/iot_view.cxx ++++ b/plugins/views/iot/iot_view.cxx +@@ -45,6 +45,20 @@ + # endif + #endif + /* End part 2 of 2 for Hack to get around inconsistent syscall definitions */ ++/* Start Added Hack to get around inconsistent syscall definitions */ ++#ifndef SYS_open ++#define SYS_open SYS_openat ++#endif ++#ifndef SYS_creat ++#define SYS_creat SYS_openat ++#endif ++#ifndef SYS_dup2 ++#define SYS_dup2 SYS_dup3 ++#endif ++#ifndef SYS_pipe ++#define SYS_pipe SYS_pipe2 ++#endif ++/* end Added Hack to get around inconsistent syscall definitions */ + + + diff --git a/var/spack/repos/builtin/packages/openspeedshop-utils/package.py b/var/spack/repos/builtin/packages/openspeedshop-utils/package.py index cec1c92dc3..7f5d134b34 100644 --- a/var/spack/repos/builtin/packages/openspeedshop-utils/package.py +++ b/var/spack/repos/builtin/packages/openspeedshop-utils/package.py @@ -142,6 +142,7 @@ class OpenspeedshopUtils(CMakePackage): depends_on("mrnet@5.0.1-3:+cti", when='@2.3.1.3:9999+cti', type=('build', 'link', 'run')) depends_on("mrnet@5.0.1-3:+lwthreads", when='@2.3.1.3:9999', type=('build', 'link', 'run')) + patch('arm.patch', when='target=aarch64') parallel = False build_directory = 'build_openspeedshop' diff --git a/var/spack/repos/builtin/packages/openspeedshop/arm.patch b/var/spack/repos/builtin/packages/openspeedshop/arm.patch new file mode 100644 index 0000000000..c0099cfd35 --- /dev/null +++ b/var/spack/repos/builtin/packages/openspeedshop/arm.patch @@ -0,0 +1,25 @@ +diff --git a/plugins/views/iot/iot_view.cxx b/plugins/views/iot/iot_view.cxx +index f4cdf48..ef1b81f 100644 +--- a/plugins/views/iot/iot_view.cxx ++++ b/plugins/views/iot/iot_view.cxx +@@ -45,6 +45,20 @@ + # endif + #endif + /* End part 2 of 2 for Hack to get around inconsistent syscall definitions */ ++/* Start Added Hack to get around inconsistent syscall definitions */ ++#ifndef SYS_open ++#define SYS_open SYS_openat ++#endif ++#ifndef SYS_creat ++#define SYS_creat SYS_openat ++#endif ++#ifndef SYS_dup2 ++#define SYS_dup2 SYS_dup3 ++#endif ++#ifndef SYS_pipe ++#define SYS_pipe SYS_pipe2 ++#endif ++/* end Added Hack to get around inconsistent syscall definitions */ + + + diff --git a/var/spack/repos/builtin/packages/openspeedshop/package.py b/var/spack/repos/builtin/packages/openspeedshop/package.py index df737b2fb1..3b88ff8062 100644 --- a/var/spack/repos/builtin/packages/openspeedshop/package.py +++ b/var/spack/repos/builtin/packages/openspeedshop/package.py @@ -141,6 +141,7 @@ class Openspeedshop(CMakePackage): depends_on("mrnet@5.0.1-3:+cti", when='@2.3.1.3:9999+cti', type=('build', 'link', 'run')) depends_on("mrnet@5.0.1-3:+lwthreads", when='@2.3.1.3:9999', type=('build', 'link', 'run')) + patch('arm.patch', when='target=aarch64') parallel = False build_directory = 'build_openspeedshop' -- cgit v1.2.3-70-g09d2