##############################################################################
##############################################################################
###
### Running command:
###
### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data matter
###
##############################################################################
##############################################################################
* checking for file ‘matter/DESCRIPTION’ ... OK
* preparing ‘matter’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to build vignettes
-----------------------------------
* installing *source* package ‘matter’ ...
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/library/BH/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -DR_NO_REMAP -c altrep.cpp -o altrep.o
In file included from altrep.cpp:2:
./matterDefines.h:4:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined]
#define R_NO_REMAP
^
<command line>:2:9: note: previous definition is here
#define R_NO_REMAP 1
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:57:4: error: use of undeclared identifier 'Free'; did you mean 'free'?
Free(_sources);
^~~~
free
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/malloc/_malloc.h:42:7: note: 'free' declared here
void free(void *);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:402:13: note: in instantiation of function template specialization 'Atoms::read_atom<char, unsigned char>' requested here
return read_atom<char,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:404:13: note: in instantiation of function template specialization 'Atoms::read_atom<unsigned char, unsigned char>' requested here
return read_atom<unsigned char,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:406:13: note: in instantiation of function template specialization 'Atoms::read_atom<short, unsigned char>' requested here
return read_atom<int16_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:408:13: note: in instantiation of function template specialization 'Atoms::read_atom<unsigned short, unsigned char>' requested here
return read_atom<uint16_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:410:13: note: in instantiation of function template specialization 'Atoms::read_atom<int, unsigned char>' requested here
return read_atom<int32_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:412:13: note: in instantiation of function template specialization 'Atoms::read_atom<unsigned int, unsigned char>' requested here
return read_atom<uint32_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:414:13: note: in instantiation of function template specialization 'Atoms::read_atom<long long, unsigned char>' requested here
return read_atom<int64_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:416:13: note: in instantiation of function template specialization 'Atoms::read_atom<unsigned long long, unsigned char>' requested here
return read_atom<uint64_t,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:362:5: error: use of undeclared identifier 'Free'
Free(tmp);
^
./atoms.h:418:13: note: in instantiation of function template specialization 'Atoms::read_atom<float, unsigned char>' requested here
return read_atom<float,T>(ptr, atom, pos, size, stride);
^
./atoms.h:467:9: note: in instantiation of function template specialization 'Atoms::get_atom<unsigned char>' requested here
n = get_atom<T>(ptr, atom, pos, num_toread, stride);
^
./matter.h:477:14: note: in instantiation of function template specialization 'Atoms::get_region<unsigned char>' requested here
data()->get_region<Rbyte>(RAW(x), 0, dim(i), i);
^
In file included from altrep.cpp:3:
In file included from ./matter.h:5:
./atoms.h:368:4: error: use of undeclared identifier 'Free'
Free(tmp);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [altrep.o] Error 1
ERROR: compilation failed for package ‘matter’
* removing ‘/private/tmp/RtmpZxiq0F/Rinst5c3b4db487e0/matter’
-----------------------------------
ERROR: package installation failed