* installing *source* package ‘scs’ ... ** this is package ‘scs’ version ‘3.2.7’ ** package ‘scs’ successfully unpacked and MD5 sums checked ** using staged installation > > > writeLines(getwd()) /Volumes/Builds/packages/big-sur-x86_64/results/4.5/scs.Rcheck/00_pkg_src/scs > writeLines(dir()) DESCRIPTION MD5 NAMESPACE NEWS.md R README.md cleanup configure configure.win inst man src tests > > # Replace printf with scs_printf > file <- "src/scs/src/aa.c" > src <- readLines(file) > src <- gsub("^(\\s*)printf\\(", "\\1scs_printf(", src) > changed_src <- c("Changed 'aa.c'", grep("printf", src, value = TRUE)) > # writeLines(changed_src) > writeLines(src, file) > > > # Replace sprintf with snprintf > file <- "src/scs/src/cones.c" > src <- paste(readLines(file), collapse = "\n") > m <- gregexpr("\\ssprintf\\(.*?;", src) > smatches <- regmatches(src, m)[[1]] > patched <- gsub("sprintf(", "snprintf(", smatches, fixed = TRUE) > patched <- strsplit(patched, ",", fixed = "TRUE") > for (i in seq_along(smatches)) { + x <- patched[[i]] + if (i == 1) { + replacement <- paste(c(x[1], " 512", tail(x, -1)), collapse = ",") + } else { + replacement <- paste(c(x[1], " 512 - strlen(tmp)", tail(x, -1)), collapse = ",") + } + src <- gsub(smatches[i], replacement, src, fixed = TRUE) + } > writeLines(src, file) > > > > ** libs using C compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using SDK: ‘MacOSX11.3.sdk’ clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -falign-functions=64 -Wall -g -O2 -c init.c -o init.o (cp -f scs_mods/rw.c scs_mods/scs.c scs/src && \ cp -f scs_mods/private.c scs/linsys/cpu/direct && \ cp -f scs_mods/scs.mk scs && \ (cd scs && \ (make purge && \ make out/libscsdir.a CC="clang -arch x86_64" CFLAGS="-falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC " AR="ar" RANLIB="ranlib")) && \ touch scs.ts) clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c src/scs.c -o src/scs.o clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/util.o src/util.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/cones.o src/cones.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/exp_cone.o src/exp_cone.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/aa.o src/aa.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/rw.o src/rw.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/linalg.o src/linalg.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/ctrlc.o src/ctrlc.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/scs_version.o src/scs_version.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o src/normalize.o src/normalize.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/cpu/direct/private.o linsys/cpu/direct/private.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/SuiteSparse_config.o linsys/external/amd/SuiteSparse_config.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_1.o linsys/external/amd/amd_1.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_2.o linsys/external/amd/amd_2.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_aat.o linsys/external/amd/amd_aat.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_control.o linsys/external/amd/amd_control.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_defaults.o linsys/external/amd/amd_defaults.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_dump.o linsys/external/amd/amd_dump.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_global.o linsys/external/amd/amd_global.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_info.o linsys/external/amd/amd_info.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_order.o linsys/external/amd/amd_order.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_post_tree.o linsys/external/amd/amd_post_tree.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_postorder.o linsys/external/amd/amd_postorder.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_preprocess.o linsys/external/amd/amd_preprocess.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/amd/amd_valid.o linsys/external/amd/amd_valid.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/external/qdldl/qdldl.o linsys/external/qdldl/qdldl.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/scs_matrix.o linsys/scs_matrix.c clang -arch x86_64 -falign-functions=64 -Wall -g -O2 -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -g -Wall -pedantic -funroll-loops -I. -Iinclude -Ilinsys -O3 -fPIC -DCTRLC=1 -DGPU_TRANSPOSE_MAT=1 -DUSE_LAPACK -c -o linsys/csparse.o linsys/csparse.c mkdir -p out ar rv out/libscsdir.a src/scs.o src/util.o src/cones.o src/exp_cone.o src/aa.o src/rw.o src/linalg.o src/ctrlc.o src/scs_version.o src/normalize.o linsys/cpu/direct/private.o linsys/external/amd/SuiteSparse_config.o linsys/external/amd/amd_1.o linsys/external/amd/amd_2.o linsys/external/amd/amd_aat.o linsys/external/amd/amd_control.o linsys/external/amd/amd_defaults.o linsys/external/amd/amd_dump.o linsys/external/amd/amd_global.o linsys/external/amd/amd_info.o linsys/external/amd/amd_order.o linsys/external/amd/amd_post_tree.o linsys/external/amd/amd_postorder.o linsys/external/amd/amd_preprocess.o linsys/external/amd/amd_valid.o linsys/external/qdldl/qdldl.o linsys/scs_matrix.o linsys/csparse.o ar: creating archive out/libscsdir.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: out/libscsdir.a(amd_dump.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: out/libscsdir.a(amd_global.o) has no symbols a - src/scs.o a - src/util.o a - src/cones.o a - src/exp_cone.o a - src/aa.o a - src/rw.o a - src/linalg.o a - src/ctrlc.o a - src/scs_version.o a - src/normalize.o a - linsys/cpu/direct/private.o a - linsys/external/amd/SuiteSparse_config.o a - linsys/external/amd/amd_1.o a - linsys/external/amd/amd_2.o a - linsys/external/amd/amd_aat.o a - linsys/external/amd/amd_control.o a - linsys/external/amd/amd_defaults.o a - linsys/external/amd/amd_dump.o a - linsys/external/amd/amd_global.o a - linsys/external/amd/amd_info.o a - linsys/external/amd/amd_order.o a - linsys/external/amd/amd_post_tree.o a - linsys/external/amd/amd_postorder.o a - linsys/external/amd/amd_preprocess.o a - linsys/external/amd/amd_valid.o a - linsys/external/qdldl/qdldl.o a - linsys/scs_matrix.o a - linsys/csparse.o ranlib out/libscsdir.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: out/libscsdir.a(amd_dump.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: out/libscsdir.a(amd_global.o) has no symbols clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/R/x86_64/include -I./scs/include -I/Library/Frameworks/R.framework/Resources/include -DUSE_LAPACK -DCOPYAMATRIX -DR_LANG -fPIC -falign-functions=64 -Wall -g -O2 -c scsr.c -o scsr.o clang -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o scs.so init.o scsr.o -Lscs/out -lscsdir -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/14.2.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R /Volumes/Builds/packages/big-sur-x86_64/results/4.5/scs.Rcheck/00_pkg_src/scs/src/scs/out/libscsdir.a[amd_dump.o]: no symbols /Volumes/Builds/packages/big-sur-x86_64/results/4.5/scs.Rcheck/00_pkg_src/scs/src/scs/out/libscsdir.a[amd_global.o]: no symbols installing to /Volumes/Builds/packages/big-sur-x86_64/results/4.5/scs.Rcheck/00LOCK-scs/00new/scs/libs ** generating debug symbols (dSYM) ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (scs)