* installing *source* package ‘BNN’ ... ** package ‘BNN’ successfully unpacked and MD5 sums checked ** using staged installation ** libs make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang13/BNN/src' /usr/local/clang13/bin/clang -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang13/include -fopenmp -fpic -g -O3 -Wall -pedantic -c BNN.c -o BNN.o In file included from BNN.c:13: /usr/local/clang13/lib/clang/13.0.0/include/omp.h:483:39: error: expected 'match' clause on 'omp declare variant' directive #pragma omp begin declare variant match(device={kind(host)}) ^ /data/gannet/ripley/R/R-clang-trunk/include/Rinternals.h:967:17: note: expanded from macro 'match' #define match Rf_match ^ In file included from BNN.c:13: /usr/local/clang13/lib/clang/13.0.0/include/omp.h:486:39: error: expected 'match' clause on 'omp declare variant' directive #pragma omp begin declare variant match(device={kind(nohost)}) ^ /data/gannet/ripley/R/R-clang-trunk/include/Rinternals.h:967:17: note: expanded from macro 'match' #define match Rf_match ^ BNN.c:262:7: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] if (big <= 0.0) nrerror("Singular matrix in routine LUDCMP"); ^ BNN.c:260:5: note: previous statement is here for (j=1;j<=n;j++) ^ BNN.c:376:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] free_dvector(col,1,n); free_ivector(indx,1,n); ^ BNN.c:373:3: note: previous statement is here for(i=1; i<=n; i++) ^ BNN.c:408:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] free_dvector(col,1,n); free_ivector(indx,1,n); ^ BNN.c:405:3: note: previous statement is here for(i=1; i<=n; i++) ^ BNN.c:450:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return 0; ^ BNN.c:445:3: note: previous statement is here for(i=1; i<=n; i++) ^ BNN.c:759:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(i=1; i<=p; i++) ^ BNN.c:754:3: note: previous statement is here for(j=2; j<=p; j++) ^ BNN.c:767:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] matrix_multiply(Z,A,B,p,p,p); ^ BNN.c:764:3: note: previous statement is here for(i=1; i<=p; i++) ^ BNN.c:903:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return maxi; ^ BNN.c:900:3: note: previous statement is here for(i=2; i<=n; i++) ^ BNN.c:917:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return maxd; ^ BNN.c:914:3: note: previous statement is here for(i=2; i<=n; i++) ^ BNN.c:931:7: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return maxi; ^ BNN.c:928:5: note: previous statement is here for(i=2; i<=n; i++) ^ BNN.c:969:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return max; ^ BNN.c:967:3: note: previous statement is here for(i=2; i<=n; i++) ^ BNN.c:982:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] return min; ^ BNN.c:980:3: note: previous statement is here for(i=2; i<=n; i++) ^ BNN.c:2640:9: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] if(k0>0) ave=sum/k0; ^ BNN.c:2638:7: note: previous statement is here for(sum=0.0,k0=0,i=1; i<=grid; i++) ^ BNN.c:2646:11: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(sum=0.0, i=1; i<=grid; i++){ hist[i][2]-=max; sum+=exp(hist[i][2]); } ^ BNN.c:2644:9: note: previous statement is here for(i=2; i<=grid; i++) ^ BNN.c:2702:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] if(k0>0) ave=sum/k0; ^ BNN.c:2700:3: note: previous statement is here for(sum=0.0,k0=0,i=1; i<=grid; i++) ^ BNN.c:2708:7: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(sum=0.0, i=1; i<=grid; i++){ hist[i][2]-=max; sum+=exp(hist[i][2]); } ^ BNN.c:2706:5: note: previous statement is here for(i=2; i<=grid; i++) ^ BNN.c:3033:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(L=1; L<=(OUT_UNIT); L++){ ^ BNN.c:3025:3: note: previous statement is here for(j=0, i=1; i<=((P)+1)*(hd1); i++) ^ BNN.c:3045:9: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(i=((P)+1)*(hd1)+(L-1)*(1+(hd1)+(P))+1+(hd1)+1;i<=((P)+1)*(hd1)+(L-1)*(1+(hd1)+(P))+1+(hd1)+(P);i++) ^ BNN.c:3038:7: note: previous statement is here for(i=((P)+1)*(hd1)+(L-1)*(1+(hd1)+(P))+2; i<=((P)+1)*(hd1)+(L-1)*(1+(hd1)+(P))+1+(hd1); i++) ^ BNN.c:3149:5: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(B=1; B<=(OUT_UNIT); B++){ ^ BNN.c:3141:3: note: previous statement is here for(j=0, i=1; i<=((P)+1)*(hd1); i++) ^ BNN.c:3160:9: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] for(i=((P)+1)*(hd1)+(B-1)*(1+(hd1)+(P))+1+(hd1)+1;i<=((P)+1)*(hd1)+(B-1)*(1+(hd1)+(P))+1+(hd1)+(P);i++) ^ BNN.c:3153:7: note: previous statement is here for(i=((P)+1)*(hd1)+(B-1)*(1+(hd1)+(P))+2; i<=((P)+1)*(hd1)+(B-1)*(1+(hd1)+(P))+1+(hd1); i++) ^ BNN.c:4314:9: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation] if(k0>0) ave=sum/k0; ^ BNN.c:4312:7: note: previous statement is here for(sum=0.0,k0=0,i=grid0; i0) ave=sum/k0; ^ BNN.c:4464:3: note: previous statement is here for(sum=0.0,k0=0,i=grid0; i