* installing *source* package ‘graphpcor’ ...
** this is package ‘graphpcor’ version ‘0.1.15’
** package ‘graphpcor’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using SDK: ‘MacOSX11.3.1.sdk’
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_LKJ.c -o cgeneric_LKJ.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_Wishart.c -o cgeneric_Wishart.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_graphpcor.c -o cgeneric_graphpcor.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_pc_correl.c -o cgeneric_pc_correl.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_pc_prec_correl.c -o cgeneric_pc_prec_correl.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cgeneric_treepcor.c -o cgeneric_treepcor.o
cgeneric_pc_correl.c:58:6: warning: unused variable 'debug' [-Wunused-variable]
        int debug = data->ints[1]->ints[0];
            ^
cgeneric_pc_correl.c:61:25: warning: unused variable 'itheta' [-Wunused-variable]
  inla_cgeneric_vec_tp *itheta = data->ints[2];
                        ^
cgeneric_graphpcor.c:52:6: warning: unused variable 'debug' [-Wunused-variable]
        int debug = data->ints[1]->ints[0];
            ^
2 warnings generated.
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c graphpcor_init.c -o graphpcor_init.o
clang -arch arm64 -std=gnu2x -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c graphpcor_utils.c -o graphpcor_utils.o
1 warning generated.
clang -arch arm64 -std=gnu2x -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o graphpcor.so cgeneric_LKJ.o cgeneric_Wishart.o cgeneric_graphpcor.o cgeneric_pc_correl.o cgeneric_pc_prec_correl.o cgeneric_treepcor.o graphpcor_init.o graphpcor_utils.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -lltdl -lm -F/Library/Frameworks/R.framework/.. -framework R
ld: library not found for -lltdl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [graphpcor.so] Error 1
ERROR: compilation failed for package ‘graphpcor’
* removing ‘/Volumes/Builds/packages/big-sur-arm64/results/4.5/graphpcor.Rcheck/graphpcor’