############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data maanova ### ############################################################################## ############################################################################## * checking for file ‘maanova/DESCRIPTION’ ... OK * preparing ‘maanova’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘maanova’ ... ** 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 makeratio.c -o makeratio.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 masvd.c -o masvd.o In file included from masvd.c:17: ./masvd.h:14:6: error: conflicting types for 'dgesvd_' void F77_NAME(dgesvd)(const char *jobu, const char *jobvt, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :19:1: note: expanded from here dgesvd_ ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Lapack.h:348:1: note: previous declaration is here F77_NAME(dgesvd)(const char* jobu, const char* jobvt, const int* m, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :445:1: note: expanded from here dgesvd_ ^ masvd.c:48:24: error: too few arguments to function call, expected 16, have 14 &tmp, &lwork, &info); ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Lapack.h:348:1: note: 'dgesvd_' declared here F77_NAME(dgesvd)(const char* jobu, const char* jobvt, const int* m, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :445:1: note: expanded from here dgesvd_ ^ masvd.c:58:24: error: too few arguments to function call, expected 16, have 14 work, &lwork, &info); ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Lapack.h:348:1: note: 'dgesvd_' declared here F77_NAME(dgesvd)(const char* jobu, const char* jobvt, const int* m, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :445:1: note: expanded from here dgesvd_ ^ masvd.c:72:31: error: too few arguments to function call, expected 15, have 14 &tmp, &lwork, iwork, &info); ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Lapack.h:2404:1: note: 'dgesdd_' declared here F77_NAME(dgesdd)(const char* jobz, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :76:1: note: expanded from here dgesdd_ ^ masvd.c:81:31: error: too few arguments to function call, expected 15, have 14 work, &lwork, iwork, &info); ^ /Library/Frameworks/R.framework/Resources/include/R_ext/Lapack.h:2404:1: note: 'dgesdd_' declared here F77_NAME(dgesdd)(const char* jobz, ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:81:24: note: expanded from macro 'F77_NAME' #define F77_NAME(x) F77_CALL(x) ^ /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:77:22: note: expanded from macro 'F77_CALL' # define F77_CALL(x) x ## _ ^ :76:1: note: expanded from here dgesdd_ ^ masvd.c:114:2: warning: '/*' within block comment [-Wcomment] /* work on a copy of x */ ^ masvd.c:154:1: warning: '/*' within block comment [-Wcomment] /*#ifndef IEEE_754 ^ masvd.c:161:5: warning: '/*' within block comment [-Wcomment] /* work on a copy of x */ ^ masvd.c:165:2: warning: '/*' within block comment [-Wcomment] /* ask for optimal size of work array */ ^ masvd.c:189:2: warning: '/*' within block comment [-Wcomment] /* ask for optimal size of work array */ ^ 5 warnings and 5 errors generated. make: *** [masvd.o] Error 1 ERROR: compilation failed for package ‘maanova’ * removing ‘/private/tmp/RtmpLOHy1u/Rinst432f3201fc3e/maanova’ ----------------------------------- ERROR: package installation failed