* installing *source* package ‘GofKmt’ ... ** this is package ‘GofKmt’ version ‘2.3.1’ ** using staged installation ** libs using C++ compiler: ‘Debian clang version 21.1.7 (1)’ clang++-21 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-21/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c FuncLib.cpp -o FuncLib.o In file included from FuncLib.cpp:20: ./Optimal_Side.h:55:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 55 | return (abs(out)/sqrt(n)); | ^ ./Optimal_Side.h:55:11: note: use function 'std::abs' instead 55 | return (abs(out)/sqrt(n)); | ^~~ | std::abs ./Optimal_Side.h:94:8: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 94 | if(abs(U1) >= abs(U2)){ | ^ ./Optimal_Side.h:94:8: note: use function 'std::abs' instead 94 | if(abs(U1) >= abs(U2)){ | ^~~ | std::abs ./Optimal_Side.h:94:19: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 94 | if(abs(U1) >= abs(U2)){ | ^ ./Optimal_Side.h:94:19: note: use function 'std::abs' instead 94 | if(abs(U1) >= abs(U2)){ | ^~~ | std::abs ./Optimal_Side.h:95:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 95 | U = abs(U1); | ^ ./Optimal_Side.h:95:11: note: use function 'std::abs' instead 95 | U = abs(U1); | ^~~ | std::abs ./Optimal_Side.h:98:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 98 | U = abs(U2); | ^ ./Optimal_Side.h:98:11: note: use function 'std::abs' instead 98 | U = abs(U2); | ^~~ | std::abs ./Optimal_Side.h:130:3: error: use of undeclared identifier 'omp_set_num_threads' 130 | omp_set_num_threads(nThreads); | ^~~~~~~~~~~~~~~~~~~ ./Optimal_Side.h:154:8: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 154 | if(abs(U1) >= abs(U2)){ | ^ ./Optimal_Side.h:154:8: note: use function 'std::abs' instead 154 | if(abs(U1) >= abs(U2)){ | ^~~ | std::abs ./Optimal_Side.h:154:19: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 154 | if(abs(U1) >= abs(U2)){ | ^ ./Optimal_Side.h:154:19: note: use function 'std::abs' instead 154 | if(abs(U1) >= abs(U2)){ | ^~~ | std::abs ./Optimal_Side.h:155:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 155 | U = abs(U1); | ^ ./Optimal_Side.h:155:11: note: use function 'std::abs' instead 155 | U = abs(U1); | ^~~ | std::abs ./Optimal_Side.h:158:11: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 158 | U = abs(U2); | ^ ./Optimal_Side.h:158:11: note: use function 'std::abs' instead 158 | U = abs(U2); | ^~~ | std::abs In file included from FuncLib.cpp:21: ./Optimal_Main.h:19:37: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 19 | T1=Parallel_GetT1(X, G, nThreads=nThreads); | ~~~~~~~~^~~~~~~~~ ./Optimal_Main.h:1:9: warning: '__OPTIMAL_MAIN_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 1 | #ifndef __OPTIMAL_MAIN_H | ^~~~~~~~~~~~~~~~ ./Optimal_Main.h:2:9: note: '__OPTIMAL_MAIL_H' is defined here; did you mean '__OPTIMAL_MAIN_H'? 2 | #define __OPTIMAL_MAIL_H | ^~~~~~~~~~~~~~~~ | __OPTIMAL_MAIN_H FuncLib.cpp:172:52: warning: explicitly assigning value of variable of type 'bool' to itself [-Wself-assign] 172 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~~^~~~~~~~~~ FuncLib.cpp:172:72: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 172 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~^~~~~~~~~ FuncLib.cpp:182:52: warning: explicitly assigning value of variable of type 'bool' to itself [-Wself-assign] 182 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~~^~~~~~~~~~ FuncLib.cpp:182:72: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 182 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~^~~~~~~~~ FuncLib.cpp:191:52: warning: explicitly assigning value of variable of type 'bool' to itself [-Wself-assign] 191 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~~^~~~~~~~~~ FuncLib.cpp:191:72: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 191 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~^~~~~~~~~ FuncLib.cpp:200:52: warning: explicitly assigning value of variable of type 'bool' to itself [-Wself-assign] 200 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~~^~~~~~~~~~ FuncLib.cpp:200:72: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] 200 | out = FindOptimal(Normed_X, G, distr, bParallel=bParallel, nThreads=nThreads); | ~~~~~~~~^~~~~~~~~ 19 warnings and 1 error generated. make: *** [/home/hornik/tmp/R-d-clang-21/etc/Makeconf:209: FuncLib.o] Error 1 ERROR: compilation failed for package ‘GofKmt’ * removing ‘/srv/hornik/tmp/CRAN_pretest/GofKmt.Rcheck/GofKmt’