Hi,
I am running into some problems building Cactus/Einstein Toolkit on our local HPC. The .ini file I am using looks okay to me. As far as I can tell, there seems to be an issue with PAPI?
I've attached a copy of the error message. Does anyone have any insight into this? If you need to see any particular files (e.g. .ini or .cfg files) then just let me know which ones (including directory would be helpful!) and I'll post back asap.
Thanks in advance! Your time taken is very much appreciated!
Regards Geraint
----------
*Checking status of thorn CoordBase...Checking status of thorn PUGHInterpChecking status of thorn PUGHReduce/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c: In function ‘PAPI_Cactus_outinfo’:/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:51:0: warning: ignoring #pragma omp master [-Wunknown-pragmas] #pragma omp master ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c: In function ‘PAPI_Cactus_chkerr’:/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:62:0: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c: In function ‘PAPI_init’:/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:231:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel private(ierr) ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:262:0: warning: ignoring #pragma omp master [-Wunknown-pragmas] #pragma omp master ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:267:7: warning: implicit declaration of function ‘strdup’ [-Wimplicit-function-declaration] char *const eventnames = strdup(eventset_eventnames[n]); ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:267:32: warning: initialization makes pointer from integer without a cast [enabled by default] char *const eventnames = strdup(eventset_eventnames[n]);
^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:270:7: warning: implicit declaration of function ‘strtok_r’ [-Wimplicit-function-declaration] for (char *event_name = strtok_r(eventnames, sep, &lasts); ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:270:31: warning: initialization makes pointer from integer without a cast [enabled by default] for (char *event_name = strtok_r(eventnames, sep, &lasts); ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:270:7: error: declaration of non-variable ‘strtok_r’ in ‘for’ loop initial declaration for (char *event_name = strtok_r(eventnames, sep, &lasts); ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:272:23: warning: assignment makes pointer from integer without a cast [enabled by default] event_name = strtok_r(NULL, sep, &lasts))
^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:274:0: warning: ignoring #pragma omp master [-Wunknown-pragmas] #pragma omp master ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:301:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel private(ierr) ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c: In function ‘output_stats’:/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:333:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel private(ierr) ^/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/build/PAPI/stats.c:351:0: warning: ignoring #pragma omp critical [-Wunknown-pragmas] #pragma omp critical(PAPI_output_stats_add) ^make[3]: *** [stats.c.o] Error 1make[2]: *** [make.checked] Error 2make[1]: *** [/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/lib/libthorn_PAPI.a] Error 2make[1]: *** Waiting for unfinished jobs....make: *** [apollo-login.cm.cluster.ini] Error 2*
Dear Geraint,
I've attached a copy of the error message. Does anyone have any insight into this? If you need to see any particular files (e.g. .ini or .cfg files) then just let me know which ones (including directory would be helpful!) and I'll post back asap.
Thanks in advance! Your time taken is very much appreciated!
All of the functions it complains about seem to be defined in POSIX.1-2001. Can you check if the system you compile on provides them in a simple test code, something as simple as:
#include <string.h> int main(void) { char *s = strdup("A"); char *saveptr; char *tok = strtok_r(s, ",", &saveptr); return 0; }
Otherwise, yes the .cfg file would be very helpful along with the output from Cactus' configure phase which you can find in
/mnt/pact/gp234/NR/Cactus/configs/apollo-login.cm.cluster.ini/config-data/config.log
Finally you can also just remove the PAPI thorn altogether from the thorn list since it is not essential to Cactus.
Yours, Roland
users@lists.einsteintoolkit.org