openspeedshop: fixed build on arm. (#11861)

* openspeedshop: fixed build on arm.

* remove patch comment.
This commit is contained in:
Toyohisa Kameyama 2019-09-07 05:26:24 +09:00 committed by Greg Becker
parent 8fe5405e1b
commit 5def1dd39d
4 changed files with 52 additions and 0 deletions

View file

@ -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 */

View file

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

View file

@ -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 */

View file

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