* installing *source* package ‘INLAtools’ ...
** this is package ‘INLAtools’ version ‘0.1.2’
** package ‘INLAtools’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang/INLAtools/src'
clang-22 -std=gnu23 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -isystem /usr/local/clang22/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -c INLAtools_init.c -o INLAtools_init.o
In file included from INLAtools_init.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:529:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
529 | #pragma omp begin declare variant match(device={kind(host)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from INLAtools_init.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:530:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
530 | static inline int omp_is_initial_device(void) { return 1; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:531:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
531 | #pragma omp end declare variant
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:532:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
532 | #pragma omp begin declare variant match(device={kind(nohost)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from INLAtools_init.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:533:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
533 | static inline int omp_is_initial_device(void) { return 0; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:534:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
534 | #pragma omp end declare variant
| ^
6 errors generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:190: INLAtools_init.o] Error 1
clang-22 -std=gnu23 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -isystem /usr/local/clang22/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -c cgeneric_generic0.c -o cgeneric_generic0.o
In file included from cgeneric_generic0.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:529:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
529 | #pragma omp begin declare variant match(device={kind(host)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_generic0.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:530:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
530 | static inline int omp_is_initial_device(void) { return 1; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:531:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
531 | #pragma omp end declare variant
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:532:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
532 | #pragma omp begin declare variant match(device={kind(nohost)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_generic0.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:533:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
533 | static inline int omp_is_initial_device(void) { return 0; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:534:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
534 | #pragma omp end declare variant
| ^
6 errors generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:190: cgeneric_generic0.o] Error 1
clang-22 -std=gnu23 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -isystem /usr/local/clang22/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -c cgeneric_get.c -o cgeneric_get.o
In file included from cgeneric_get.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:529:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
529 | #pragma omp begin declare variant match(device={kind(host)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_get.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:530:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
530 | static inline int omp_is_initial_device(void) { return 1; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:531:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
531 | #pragma omp end declare variant
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:532:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
532 | #pragma omp begin declare variant match(device={kind(nohost)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_get.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:533:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
533 | static inline int omp_is_initial_device(void) { return 0; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:534:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
534 | #pragma omp end declare variant
| ^
6 errors generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:190: cgeneric_get.o] Error 1
clang-22 -std=gnu23 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG -isystem /usr/local/clang22/include -I/usr/local/clang/include -fopenmp -fpic -O3 -Wall -pedantic -Wp,-D_FORTIFY_SOURCE=3 -c cgeneric_kronecker.c -o cgeneric_kronecker.o
In file included from cgeneric_kronecker.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:529:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
529 | #pragma omp begin declare variant match(device={kind(host)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_kronecker.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:530:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
530 | static inline int omp_is_initial_device(void) { return 1; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:531:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
531 | #pragma omp end declare variant
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:532:39: error: expected 'match', 'adjust_args', or 'append_args' clause on 'omp declare variant' directive
532 | #pragma omp begin declare variant match(device={kind(nohost)})
| ^
/data/gannet/ripley/R/R-clang/include/Rinternals.h:1000:17: note: expanded from macro 'match'
1000 | #define match Rf_match
| ^
In file included from cgeneric_kronecker.c:28:
In file included from ./INLAtools.h:45:
In file included from ./cgeneric.h:148:
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:533:23: error: static declaration of 'omp_is_initial_device' follows non-static declaration
533 | static inline int omp_is_initial_device(void) { return 0; }
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:141:40: note: previous declaration is here
141 | extern int __KAI_KMPC_CONVENTION omp_is_initial_device (void);
| ^
/data/gannet2/ripley/Sources/LLVM/LLVM-22.1.3-Linux-X64/lib/clang/22/include/omp.h:534:5: error: '#pragma omp end declare variant' with no matching '#pragma omp begin declare variant'
534 | #pragma omp end declare variant
| ^
6 errors generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:190: cgeneric_kronecker.o] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang/INLAtools/src'
ERROR: compilation failed for package ‘INLAtools’
* removing ‘/data/gannet/ripley/R/packages/tests-clang/INLAtools.Rcheck/INLAtools’