##############################################################################
##############################################################################
###
### Running command:
###
### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data COMPASS
###
##############################################################################
##############################################################################
* checking for file ‘COMPASS/DESCRIPTION’ ... OK
* preparing ‘COMPASS’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* installing the package (it is needed to build vignettes)
-----------------------------------
* installing *source* package ‘COMPASS’ ...
** this is package ‘COMPASS’ version ‘1.50.0’
** using staged installation
** libs
using C compiler: ‘Apple clang version 17.0.0 (clang-1700.6.4.2)’
using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.4.2)’
using SDK: ‘MacOSX26.2.sdk’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.6/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c COMPASS_c.c -o COMPASS_c.o
COMPASS_c.c:76:7: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
76 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^
COMPASS_c.c:69:18: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^
COMPASS_c.c:76:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
76 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:76:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
76 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:32: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:76:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
76 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:78:7: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | HANDLE_CASE_MEMCPY(REAL, double);
| ^
COMPASS_c.c:69:18: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^
COMPASS_c.c:78:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
78 | HANDLE_CASE_MEMCPY(REAL, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:78:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
78 | HANDLE_CASE_MEMCPY(REAL, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:32: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:78:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
78 | HANDLE_CASE_MEMCPY(REAL, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:80:7: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
80 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^
COMPASS_c.c:69:18: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^
COMPASS_c.c:80:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
80 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:80:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
80 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:32: note: expanded from macro 'HANDLE_CASE_MEMCPY'
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:80:7: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
80 | HANDLE_CASE_MEMCPY(INTEGER, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:69:11: note: expanded from macro 'HANDLE_CASE_MEMCPY'
68 | memcpy( \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | (char*)DATAPTR(elt), (char*)DATAPTR(x) + (i* nRow* sz), nRow* sz); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:82:19: error: call to undeclared function 'STRING_PTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
82 | HANDLE_CASE(STRING_PTR, SEXP);
| ^
COMPASS_c.c:82:7: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
82 | HANDLE_CASE(STRING_PTR, SEXP);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:53:14: note: expanded from macro 'HANDLE_CASE'
53 | CTYPE* output_ptr = ACCESSOR(VECTOR_ELT(output, i)); \
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:82:7: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
82 | HANDLE_CASE(STRING_PTR, SEXP);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:54:14: note: expanded from macro 'HANDLE_CASE'
54 | CTYPE* x_ptr = ACCESSOR(x); \
| ^ ~~~~~~~~~~~
COMPASS_c.c:118:15: error: call to undeclared function 'STRING_PTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
118 | SEXP* ptr = STRING_PTR(x);
| ^
COMPASS_c.c:118:9: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
118 | SEXP* ptr = STRING_PTR(x);
| ^ ~~~~~~~~~~~~~
COMPASS_c.c:119:9: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
119 | SEXP* out_ptr = STRING_PTR(out);
| ^ ~~~~~~~~~~~~~~~
COMPASS_c.c:165:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
165 | HANDLE_CASE(INTSXP, int);
| ^
COMPASS_c.c:155:21: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^
COMPASS_c.c:165:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
165 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:165:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
165 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:50: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:165:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
165 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:166:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
166 | HANDLE_CASE(REALSXP, double);
| ^
COMPASS_c.c:155:21: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^
COMPASS_c.c:166:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
166 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:166:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
166 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:50: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:166:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
166 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:167:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
167 | HANDLE_CASE(LGLSXP, int);
| ^
COMPASS_c.c:155:21: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^
COMPASS_c.c:167:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
167 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:167:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
167 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:50: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:167:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
167 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:155:14: note: expanded from macro 'HANDLE_CASE'
155 | memcpy((char*)DATAPTR(out) + (i* len* sz), (char*)DATAPTR(x), len* sz); \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:168:5: error: call to undeclared function 'STRING_PTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
168 | HANDLE_CASE_STRING;
| ^
COMPASS_c.c:138:17: note: expanded from macro 'HANDLE_CASE_STRING'
138 | SEXP* ptr = STRING_PTR(x); \
| ^
COMPASS_c.c:168:5: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
168 | HANDLE_CASE_STRING;
| ^~~~~~~~~~~~~~~~~~
COMPASS_c.c:138:11: note: expanded from macro 'HANDLE_CASE_STRING'
138 | SEXP* ptr = STRING_PTR(x); \
| ^ ~~~~~~~~~~~~~
COMPASS_c.c:168:5: error: incompatible integer to pointer conversion initializing 'SEXP *' (aka 'struct SEXPREC **') with an expression of type 'int' [-Wint-conversion]
168 | HANDLE_CASE_STRING;
| ^~~~~~~~~~~~~~~~~~
COMPASS_c.c:139:11: note: expanded from macro 'HANDLE_CASE_STRING'
139 | SEXP* out_ptr = STRING_PTR(out); \
| ^ ~~~~~~~~~~~~~~~
COMPASS_c.c:258:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
258 | HANDLE_CASE(INTSXP, int);
| ^
COMPASS_c.c:245:21: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^
COMPASS_c.c:258:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
258 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:258:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
258 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:246:14: note: expanded from macro 'HANDLE_CASE'
246 | (char*)DATAPTR(tmp), \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:258:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
258 | HANDLE_CASE(INTSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:259:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
259 | HANDLE_CASE(REALSXP, double);
| ^
COMPASS_c.c:245:21: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^
COMPASS_c.c:259:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
259 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:259:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
259 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:246:14: note: expanded from macro 'HANDLE_CASE'
246 | (char*)DATAPTR(tmp), \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:259:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
259 | HANDLE_CASE(REALSXP, double);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:260:5: error: call to undeclared function 'DATAPTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
260 | HANDLE_CASE(LGLSXP, int);
| ^
COMPASS_c.c:245:21: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^
COMPASS_c.c:260:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
260 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:27: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
COMPASS_c.c:260:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
260 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:246:14: note: expanded from macro 'HANDLE_CASE'
246 | (char*)DATAPTR(tmp), \
| ^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:33: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~~~~~~~~
COMPASS_c.c:260:5: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast]
260 | HANDLE_CASE(LGLSXP, int);
| ^~~~~~~~~~~~~~~~~~~~~~~~
COMPASS_c.c:245:14: note: expanded from macro 'HANDLE_CASE'
245 | memcpy((char*)DATAPTR(value_SEXP) + (i* nRow * sizeof(CTYPE)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:234:40: note: expanded from macro 'memcpy'
234 | #define memcpy(...) __memcpy_chk_func (__VA_ARGS__)
| ^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_string.h:127:62: note: expanded from macro '__memcpy_chk_func'
127 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
| ^~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/secure/_common.h:40:55: note: expanded from macro '__darwin_obsz0'
40 | #define __darwin_obsz0(object) __builtin_object_size (object, 0)
| ^~~~~~
COMPASS_c.c:274:30: error: call to undeclared function 'STRING_PTR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
274 | curr_str_vec_ptr = STRING_PTR(tmp);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
27 warnings and 20 errors generated.
make: *** [COMPASS_c.o] Error 1
ERROR: compilation failed for package ‘COMPASS’
* removing ‘/private/var/folders/r0/l4fjk6cj5xj0j3brt4bplpl40000gt/T/RtmpUugQbw/Rinst1751567f185c/COMPASS’
-----------------------------------
ERROR: package installation failed