* installing *source* package ‘spdep’ ...
** package ‘spdep’ successfully unpacked and MD5 sums checked
** 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 arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c card.c -o card.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c dfs_ncomp.c -o dfs_ncomp.o
dfs_ncomp.c:10:11: warning: unused variable 'nvert' [-Wunused-variable]
  int n,i,nvert;
          ^
1 warning generated.
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c dnn.c -o dnn.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c gabriel.c -o gabriel.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c gearyw.c -o gearyw.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c gsymtest.c -o gsymtest.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c init.c -o init.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c insiders.c -o insiders.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c jc.c -o jc.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c knn.c -o knn.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c lagw.c -o lagw.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c listw2sn.c -o listw2sn.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c nbdists.c -o nbdists.o
nbdists.c:21:27: error: implicit declaration of function 'mkChar' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        SET_STRING_ELT(class, 0, COPY_TO_USER_STRING("nbdist"));
                                 ^
/Library/Frameworks/R.framework/Resources/include/Rdefines.h:182:32: note: expanded from macro 'COPY_TO_USER_STRING'
#define COPY_TO_USER_STRING(x)  mkChar(x)
                                ^
nbdists.c:21:27: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'SEXP' (aka 'struct SEXPREC *') [-Wint-conversion]
        SET_STRING_ELT(class, 0, COPY_TO_USER_STRING("nbdist"));
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Frameworks/R.framework/Resources/include/Rdefines.h:182:32: note: expanded from macro 'COPY_TO_USER_STRING'
#define COPY_TO_USER_STRING(x)  mkChar(x)
                                ^~~~~~~~~
/Library/Frameworks/R.framework/Resources/include/Rinternals.h:283:46: note: passing argument to parameter 'v' here
void SET_STRING_ELT(SEXP x, R_xlen_t i, SEXP v);
                                             ^
1 warning and 1 error generated.
make: *** [nbdists.o] Error 1
ERROR: compilation failed for package ‘spdep’
* removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.3/spdep.Rcheck/spdep’