* installing *source* package ‘ETAS’ ... ** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether clang++-17 -std=gnu++17 accepts -g... yes checking how to run the C++ preprocessor... clang++-17 -std=gnu++17 -E checking for clang++-17 -std=gnu++17 option to support OpenMP... -fopenmp configure: creating ./config.status config.status: creating src/Makevars -------------------------------------------------- Configuration for ETAS 0.4.7 cppflags: -I/usr/local/include libs: -------------------------------------------------- ** libs using C compiler: ‘Debian clang version 17.0.6 (5)’ using C++ compiler: ‘Debian clang version 17.0.6 (5)’ clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fopenmp -DARMA_64BIT_WORD -fpic -g -O3 -Wall -pedantic -c RcppExports.cpp -o RcppExports.o clang-17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c declust.c -o declust.o clang-17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c dist.c -o dist.o clang-17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c fit.c -o fit.o fit.c:330:47: warning: variable 'ss' set but not used [-Wunused-but-set-variable] 330 | double ramda = 0.05, fv, sum, stem, s1, s2, ss; | ^ 1 warning generated. clang++-17 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-17/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.4/x86_64-linux-gnu/Rcpp/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fopenmp -DARMA_64BIT_WORD -fpic -g -O3 -Wall -pedantic -c fitMP.cpp -o fitMP.o fitMP.cpp:658:3: warning: array index 7 is past the end of the array (that has type 'double[7]') [-Warray-bounds] 658 | intpartGr[ 7 ] = int_part1[0] * int_part2[0] * int_part3[2]; | ^ ~ fitMP.cpp:642:3: note: array 'intpartGr' declared here 642 | double intpartGr[7] = {0}; | ^ fitMP.cpp:732:30: warning: variable length arrays are a C99 feature [-Wvla-extension] 732 | double fvtemp = 0, dfvtemp[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:732:30: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:727:13: note: declared here 727 | const int dimparam = theta.length(); | ^ fitMP.cpp:732:30: error: variable-sized object may not be initialized 732 | double fvtemp = 0, dfvtemp[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:736:22: warning: variable length arrays are a C99 feature [-Wvla-extension] 736 | double fvj, dfvj[dimparam]; | ^~~~~~~~ fitMP.cpp:736:22: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:727:13: note: declared here 727 | const int dimparam = theta.length(); | ^ fitMP.cpp:914:22: warning: variable length arrays are a C99 feature [-Wvla-extension] 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:22: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:914:12: warning: variable length arrays are a C99 feature [-Wvla-extension] 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:12: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:914:35: warning: variable length arrays are a C99 feature [-Wvla-extension] 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:35: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:914:35: error: variable-sized object may not be initialized 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:55: warning: variable length arrays are a C99 feature [-Wvla-extension] 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:55: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:914:55: error: variable-sized object may not be initialized 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:75: warning: variable length arrays are a C99 feature [-Wvla-extension] 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:914:75: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:914:75: error: variable-sized object may not be initialized 914 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:915:7: warning: variable length arrays are a C99 feature [-Wvla-extension] 915 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:915:7: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:915:7: error: variable-sized object may not be initialized 915 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:915:27: warning: variable length arrays are a C99 feature [-Wvla-extension] 915 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:915:27: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:915:42: warning: variable length arrays are a C99 feature [-Wvla-extension] 915 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:915:42: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:902:13: note: declared here 902 | const int dimparam = tht.length(); | ^ fitMP.cpp:1005:14: warning: variable 'ss' set but not used [-Wunused-but-set-variable] 1005 | double ss = 0; | ^ fitMP.cpp:1166:30: warning: variable length arrays are a C99 feature [-Wvla-extension] 1166 | double fvtemp = 0, dfvtemp[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:1166:30: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1161:13: note: declared here 1161 | const int dimparam = theta.length(); | ^ fitMP.cpp:1166:30: error: variable-sized object may not be initialized 1166 | double fvtemp = 0, dfvtemp[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:1170:46: warning: variable length arrays are a C99 feature [-Wvla-extension] 1170 | double fvtemp_thread = 0, dfvtemp_thread[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:1170:46: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1161:13: note: declared here 1161 | const int dimparam = theta.length(); | ^ fitMP.cpp:1170:46: error: variable-sized object may not be initialized 1170 | double fvtemp_thread = 0, dfvtemp_thread[dimparam] = {0}; | ^~~~~~~~ fitMP.cpp:1175:24: warning: variable length arrays are a C99 feature [-Wvla-extension] 1175 | double fvj, dfvj[dimparam]; | ^~~~~~~~ fitMP.cpp:1175:24: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1161:13: note: declared here 1161 | const int dimparam = theta.length(); | ^ fitMP.cpp:1361:22: warning: variable length arrays are a C99 feature [-Wvla-extension] 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:22: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1361:12: warning: variable length arrays are a C99 feature [-Wvla-extension] 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:12: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1361:35: warning: variable length arrays are a C99 feature [-Wvla-extension] 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:35: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1361:35: error: variable-sized object may not be initialized 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:55: warning: variable length arrays are a C99 feature [-Wvla-extension] 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:55: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1361:55: error: variable-sized object may not be initialized 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:75: warning: variable length arrays are a C99 feature [-Wvla-extension] 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1361:75: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1361:75: error: variable-sized object may not be initialized 1361 | double h[dimparam][dimparam], s[dimparam] = {0}, dx[dimparam] = {0}, g0[dimparam] = {0}, | ^~~~~~~~ fitMP.cpp:1362:7: warning: variable length arrays are a C99 feature [-Wvla-extension] 1362 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:1362:7: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1362:7: error: variable-sized object may not be initialized 1362 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:1362:27: warning: variable length arrays are a C99 feature [-Wvla-extension] 1362 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:1362:27: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1362:42: warning: variable length arrays are a C99 feature [-Wvla-extension] 1362 | g[dimparam] = {0}, dg[dimparam], wrk[dimparam]; | ^~~~~~~~ fitMP.cpp:1362:42: note: initializer of 'dimparam' is not a constant expression fitMP.cpp:1350:13: note: declared here 1350 | const int dimparam = tht.length(); | ^ fitMP.cpp:1451:14: warning: variable 'ss' set but not used [-Wunused-but-set-variable] 1451 | double ss = 0; | ^ 24 warnings and 11 errors generated. make: *** [/home/hornik/tmp/R-d-clang-17/etc/Makeconf:198: fitMP.o] Error 1 ERROR: compilation failed for package ‘ETAS’ * removing ‘/srv/hornik/tmp/CRAN/ETAS.Rcheck/ETAS’