Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PAPI: disabble config fail if no -lrt and correct syscall.h location
this is required to build PAPI on OSX where there is no -lrt or timer_create and syscall.h is only in sy/syscall.h
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff -ur papi-6.0.0.1.orig/src/configure papi-6.0.0.1/src/configure | ||
--- papi-6.0.0.1.orig/src/configure 2020-04-03 03:07:00.000000000 -0500 | ||
+++ papi-6.0.0.1/src/configure 2020-08-28 08:46:33.000000000 -0500 | ||
@@ -4301,7 +4315,8 @@ | ||
$as_echo "found" >&6; } | ||
LRT="-lrt" | ||
else | ||
- as_fn_error $? "cannot find timer_create and timer_*ettime symbols neither in the base system libraries nor in -lrt" "$LINENO" 5 | ||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
+$as_echo "not found" >&6; } | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -ur papi-6.0.0.1.orig/src/threads.c papi-6.0.0.1/src/threads.c | ||
--- papi-6.0.0.1.orig/src/threads.c 2020-04-03 03:07:00.000000000 -0500 | ||
+++ papi-6.0.0.1/src/threads.c 2020-08-28 08:51:45.000000000 -0500 | ||
@@ -598,7 +598,7 @@ | ||
} | ||
|
||
#if defined(__NR_gettid) && !defined(HAVE_GETTID) | ||
- #include <syscall.h> | ||
+ #include <sys/syscall.h> | ||
#include <unistd.h> | ||
unsigned long _papi_gettid(void) | ||
{ | ||
@@ -611,7 +611,7 @@ | ||
return (unsigned long)(gettid()); | ||
} | ||
#elif defined(HAVE_SYSCALL_GETTID) | ||
- #include <syscall.h> | ||
+ #include <sys/syscall.h> | ||
#include <sys/types.h> | ||
unsigned long _papi_gettid(void) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters