* installing to library ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages’
* 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: ‘Debian clang version 21.1.8 (3+b1)’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpeNOM5u/R.INSTALL27a3591548edcb/INLAtools/src'
clang-21 -std=gnu23 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O3 -Wall -pedantic -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:
/usr/lib/llvm-21/lib/clang/21/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)})
      |                                       ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/include/Rinternals.h:996:17: note: expanded from macro 'match'
  996 | #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:
/usr/lib/llvm-21/lib/clang/21/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; }
      |                       ^
/usr/lib/llvm-21/lib/clang/21/include/omp.h:141:40: note: previous declaration is here
  141 |     extern int  __KAI_KMPC_CONVENTION  omp_is_initial_device (void);
      |                                        ^
/usr/lib/llvm-21/lib/clang/21/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
      |     ^
/usr/lib/llvm-21/lib/clang/21/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)})
      |                                       ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/include/Rinternals.h:996:17: note: expanded from macro 'match'
  996 | #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:
/usr/lib/llvm-21/lib/clang/21/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; }
      |                       ^
/usr/lib/llvm-21/lib/clang/21/include/omp.h:141:40: note: previous declaration is here
  141 |     extern int  __KAI_KMPC_CONVENTION  omp_is_initial_device (void);
      |                                        ^
/usr/lib/llvm-21/lib/clang/21/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]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:190: INLAtools_init.o] Error 1
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpeNOM5u/R.INSTALL27a3591548edcb/INLAtools/src'
ERROR: compilation failed for package ‘INLAtools’
* removing ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/INLAtools’