* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘RNifti’ ...
** this is package ‘RNifti’ version ‘1.9.0’
** package ‘RNifti’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... gcc-15
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 the compiler supports GNU C... yes
checking whether gcc-15 accepts -g... yes
checking for gcc-15 option to enable C11 features... none needed
checking for library containing inflate... -lz
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C compiler: ‘gcc-15 (Debian 15.2.0-15) 15.2.0’
using C++ compiler: ‘g++-15 (Debian 15.2.0-15) 15.2.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpENmPuy/R.INSTALL2f3247774550a2/RNifti/src'
g++-15 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c main.cpp -o main.o
In file included from ../inst/include/RNifti.h:50,
from main.cpp:5:
../inst/include/RNifti/NiftiImage.h: In instantiation of ‘struct RNifti::NiftiImageData::ConcreteTypeHandler<std::complex<float> >’:
../inst/include/RNifti/NiftiImage.h:207:77: required from here
207 | case DT_COMPLEX64: return new ConcreteTypeHandler<complex64_t>(); break;
| ^
../inst/include/RNifti/NiftiImage.h:89:22: warning: ‘virtual void RNifti::NiftiImageData::TypeHandler::minmax(void*, size_t, double*, double*, bool) const’ was hidden [-Woverloaded-virtual=]
89 | virtual void minmax (void *ptr, const size_t length, double *min, double *max, const bool dropNaN = true) const { *min = R_PosInf; *max = R_NegInf; }
| ^~~~~~
../inst/include/RNifti/NiftiImage.h:153:14: note: by ‘void RNifti::NiftiImageData::ConcreteTypeHandler<std::complex<_Tp>, false>::minmax(void*, size_t, double*, double*, bool) [with ElementType = float; size_t = long unsigned int]’
153 | void minmax (void *ptr, const size_t length, double *min, double *max, const bool dropNaN = true)
| ^~~~~~
../inst/include/RNifti/NiftiImage.h: In instantiation of ‘struct RNifti::NiftiImageData::ConcreteTypeHandler<std::complex<double> >’:
../inst/include/RNifti/NiftiImage.h:208:78: required from here
208 | case DT_COMPLEX128: return new ConcreteTypeHandler<complex128_t>(); break;
| ^
../inst/include/RNifti/NiftiImage.h:89:22: warning: ‘virtual void RNifti::NiftiImageData::TypeHandler::minmax(void*, size_t, double*, double*, bool) const’ was hidden [-Woverloaded-virtual=]
89 | virtual void minmax (void *ptr, const size_t length, double *min, double *max, const bool dropNaN = true) const { *min = R_PosInf; *max = R_NegInf; }
| ^~~~~~
../inst/include/RNifti/NiftiImage.h:153:14: note: by ‘void RNifti::NiftiImageData::ConcreteTypeHandler<std::complex<_Tp>, false>::minmax(void*, size_t, double*, double*, bool) [with ElementType = double; size_t = long unsigned int]’
153 | void minmax (void *ptr, const size_t length, double *min, double *max, const bool dropNaN = true)
| ^~~~~~
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c zzz.c -o zzz.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c znzlib/znzlib.c -o znzlib/znzlib.o
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c niftilib/nifti1_io.c -o niftilib/nifti1_io.o
niftilib/nifti1_io.c:449:14: warning: ‘print_hex_vals’ declared ‘static’ but never defined [-Wunused-function]
449 | static int print_hex_vals (const char * data, size_t nbytes, FILE * fp);
| ^~~~~~~~~~~~~~
niftilib/nifti1_io.c:6135:14: warning: ‘escapize_string’ defined but not used [-Wunused-function]
6135 | static char *escapize_string( const char * str )
| ^~~~~~~~~~~~~~~
niftilib/nifti1_io.c:3337:12: warning: ‘compare_strlist’ defined but not used [-Wunused-function]
3337 | static int compare_strlist(const char * str, char ** strlist, int len)
| ^~~~~~~~~~~~~~~
niftilib/nifti1_io.c:3323:12: warning: ‘make_lowercase’ defined but not used [-Wunused-function]
3323 | static int make_lowercase(char * str)
| ^~~~~~~~~~~~~~
niftilib/nifti1_io.c:3310:12: warning: ‘make_uppercase’ defined but not used [-Wunused-function]
3310 | static int make_uppercase(char * str)
| ^~~~~~~~~~~~~~
niftilib/nifti1_io.c:3292:12: warning: ‘is_mixedcase’ defined but not used [-Wunused-function]
3292 | static int is_mixedcase(const char * str)
| ^~~~~~~~~~~~
niftilib/nifti1_io.c:3276:12: warning: ‘is_uppercase’ defined but not used [-Wunused-function]
3276 | static int is_uppercase(const char * str)
| ^~~~~~~~~~~~
niftilib/nifti1_io.c:363:29: warning: ‘nifti_type_list’ defined but not used [-Wunused-const-variable=]
363 | static const nifti_type_ele nifti_type_list[] = {
| ^~~~~~~~~~~~~~~
niftilib/nifti1_io.c:353:19: warning: ‘gni_version’ defined but not used [-Wunused-const-variable=]
353 | static const char gni_version[] = NIFTI1_IO_SOURCE_VERSION " (16 Jun, 2022)";
| ^~~~~~~~~~~
gcc-15 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DNDEBUG -DHAVE_ZLIB -DUSING_R -DRNIFTI_NIFTILIB_DEDUPLICATE -I../inst/include -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c niftilib/nifti2_io.c -o niftilib/nifti2_io.o
niftilib/nifti2_io.c:8250:14: warning: ‘escapize_string’ defined but not used [-Wunused-function]
8250 | static char *escapize_string( const char * str )
| ^~~~~~~~~~~~~~~
niftilib/nifti2_io.c:4468:12: warning: ‘print_hex_vals’ defined but not used [-Wunused-function]
4468 | static int print_hex_vals( const char * data, size_t nbytes, FILE * fp )
| ^~~~~~~~~~~~~~
g++-15 -std=gnu++20 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o RNifti.so main.o zzz.o znzlib/znzlib.o niftilib/nifti1_io.o niftilib/nifti2_io.o -lz -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpENmPuy/R.INSTALL2f3247774550a2/RNifti/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpENmPuy/R.INSTALL2f3247774550a2/RNifti/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpENmPuy/R.INSTALL2f3247774550a2/RNifti/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-RNifti/00new/RNifti/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package ‘RNifti’
finding HTML links ... done
ExtensionCodes html
asNifti html
bidsJson html
channels html
defaultInfoPanel html
extensions html
imageAttributes html
indexing html
internalImage html
ndim html
niftiHeader html
niftiVersion html
pixdim html
readNifti html
rgbArray html
view html
voxelToWorld html
writeNifti html
xform html
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RNifti)