* installing *source* package ‘amap’ ... ** package ‘amap’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc-13 (GCC) 13.2.0’ using Fortran compiler: ‘GNU Fortran (GCC) 13.2.0’ using C++ compiler: ‘g++-13 (GCC) 13.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-noRemap/amap/src' g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -DR_NO_REMAP -c acprob.cpp -o acprob.o In file included from acprob.cpp:27: smartPtr.h: In member function 'void SmartPtr::reset(int)': smartPtr.h:38:9: error: there are no arguments to 'error' that depend on a template parameter, so a declaration of 'error' must be available [-fpermissive] 38 | error("AMAP: cannot allocate %d Mo", sizeInMo); | ^~~~~ smartPtr.h:38:9: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) smartPtr.h: In instantiation of 'void SmartPtr::reset(int) [with T = double]': smartPtr.h:23:5: required from 'SmartPtr::SmartPtr(int) [with T = double]' acprob.cpp:140:29: required from here smartPtr.h:38:14: error: 'error' was not declared in this scope; did you mean 'perror'? 38 | error("AMAP: cannot allocate %d Mo", sizeInMo); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | perror make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:202: acprob.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-noRemap/amap/src' ERROR: compilation failed for package ‘amap’ * removing ‘/data/gannet/ripley/R/packages/tests-noRemap/Libs/amap-lib/amap’ Command exited with non-zero status 1 Time 0:01.57, 1.10 + 0.23