############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data qrqc ### ############################################################################## ############################################################################## * checking for file ‘qrqc/DESCRIPTION’ ... OK * preparing ‘qrqc’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘qrqc’ ... ** 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 -D_FILE_OFFSET_BITS=64 -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c R_init_io.c -o R_init_io.o clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -D_FILE_OFFSET_BITS=64 -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c io.c -o io.o io.c:222:39: error: use of undeclared identifier 'SINT_MAX' char *a_kmer = Calloc(k + 2 + log10(SINT_MAX), char), *start_ptr; ^ io.c:348:14: warning: incompatible pointer types initializing 'gzFile *' (aka 'struct gzFile_s **') with an expression of type 'gzFile' (aka 'struct gzFile_s *') [-Wincompatible-pointer-types] FILE_TYPE *fp = FILE_OPEN(CHAR(STRING_ELT(filename, 0)), "r"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ io.c:351:21: warning: incompatible pointer types passing 'gzFile *' (aka 'struct gzFile_s **') to parameter of type 'gzFile' (aka 'struct gzFile_s *'); dereference with * [-Wincompatible-pointer-types] block = kseq_init(fp); ^~ * io.c:35:1: note: passing argument to parameter 'fd' here KSEQ_INIT(gzFile, gzread) ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:240:35: note: expanded from macro 'KSEQ_INIT' #define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read) ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:237:2: note: expanded from macro 'KSEQ_INIT2' __KSEQ_BASIC(SCOPE, type_t) \ ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:165:33: note: expanded from macro '__KSEQ_BASIC' SCOPE kseq_t *kseq_init(type_t fd) \ ^ io.c:453:21: warning: incompatible pointer types passing 'gzFile *' (aka 'struct gzFile_s **') to parameter of type 'gzFile' (aka 'struct gzFile_s *'); dereference with * [-Wincompatible-pointer-types] block = kseq_init(fp); ^~ * io.c:35:1: note: passing argument to parameter 'fd' here KSEQ_INIT(gzFile, gzread) ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:240:35: note: expanded from macro 'KSEQ_INIT' #define KSEQ_INIT(type_t, __read) KSEQ_INIT2(static, type_t, __read) ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:237:2: note: expanded from macro 'KSEQ_INIT2' __KSEQ_BASIC(SCOPE, type_t) \ ^ /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rhtslib/include/htslib/kseq.h:165:33: note: expanded from macro '__KSEQ_BASIC' SCOPE kseq_t *kseq_init(type_t fd) \ ^ io.c:454:14: warning: incompatible pointer types passing 'gzFile *' (aka 'struct gzFile_s **') to parameter of type 'gzFile' (aka 'struct gzFile_s *'); dereference with * [-Wincompatible-pointer-types] FILE_CLOSE(fp); ^~ * io.c:34:32: note: expanded from macro 'FILE_CLOSE' #define FILE_CLOSE(x) (gzclose(x)) ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/zlib.h:1644:43: note: passing argument to parameter 'file' here ZEXTERN int ZEXPORT gzclose OF((gzFile file)); ^ 4 warnings and 1 error generated. make: *** [io.o] Error 1 ERROR: compilation failed for package ‘qrqc’ * removing ‘/private/tmp/RtmpTk80WZ/Rinst153fd5173dcc6/qrqc’ ----------------------------------- ERROR: package installation failed