##############################################################################
##############################################################################
###
### Running command:
###
### rm -rf GRENITS.buildbin-libdir && mkdir GRENITS.buildbin-libdir && /Users/biocbuild/BBS/utils/build-universal.sh GRENITS_1.58.0.tar.gz /Library/Frameworks/R.framework/Resources/bin/R GRENITS.buildbin-libdir
###
##############################################################################
##############################################################################
>>>>>>>
>>>>>>> INSTALLATION WITH 'R CMD INSTALL --preclean --no-multiarch --library=GRENITS.buildbin-libdir GRENITS_1.58.0.tar.gz'
>>>>>>>
* installing *source* package ‘GRENITS’ ...
** 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 x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c AR1_Gauss_biocond.cc -o AR1_Gauss_biocond.o
AR1_Gauss_biocond.cc:49:39: warning: variable 'p_sqr' set but not used [-Wunused-but-set-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
AR1_Gauss_biocond.cc:49:30: warning: unused variable 'numDiag' [-Wunused-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
2 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c AR1_Student_biocond.cc -o AR1_Student_biocond.o
AR1_Student_biocond.cc:49:39: warning: variable 'p_sqr' set but not used [-Wunused-but-set-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
AR1_Student_biocond.cc:49:30: warning: unused variable 'numDiag' [-Wunused-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
2 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c AR1_biocond.cc -o AR1_biocond.o
AR1_biocond.cc:48:30: warning: unused variable 'numDiag' [-Wunused-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
AR1_biocond.cc:48:39: warning: variable 'p_sqr' set but not used [-Wunused-but-set-variable]
int num_fixedON, numDiag, p_sqr, free_gammas;
^
2 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c PSplines_biocond.cc -o PSplines_biocond.o
PSplines_biocond.cc:45:63: warning: unused variable 'numDiag' [-Wunused-variable]
int num_fixedON, nodesSpline, degreeSpline, numDiag, free_gammas;
^
1 warning generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c R_C_interface.cpp -o R_C_interface.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c ReadMCMCFiles.cpp -o ReadMCMCFiles.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c commonFunctions.cc -o commonFunctions.o
commonFunctions.cc:315:36: warning: variable 'so_far_clock' set but not used [-Wunused-but-set-variable]
clock_t so_far_clock, time_now; //so_far_sec,
^
commonFunctions.cc:438:59: warning: unused variable 'num_on' [-Wunused-variable]
unsigned int num_on;
^
commonFunctions.cc:480:59: warning: unused variable 'num_on' [-Wunused-variable]
unsigned int num_on;
^
3 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c functionsErrorModel.cc -o functionsErrorModel.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c matrixManipulationFunctions.cc -o matrixManipulationFunctions.o
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c updateFunctions_AR1.cc -o updateFunctions_AR1.o
updateFunctions_AR1.cc:264:59: warning: unused variable 'num_on' [-Wunused-variable]
unsigned int num_on;
^
1 warning generated.
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/RcppArmadillo/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -c updateFunctions_Splines.cc -o updateFunctions_Splines.o
updateFunctions_Splines.cc:158:16: warning: variable 'start_indx' set but not used [-Wunused-but-set-variable]
int G, start_indx, end_indx;
^
updateFunctions_Splines.cc:158:28: warning: variable 'end_indx' set but not used [-Wunused-but-set-variable]
int G, start_indx, end_indx;
^
updateFunctions_Splines.cc:182:16: warning: variable 'start_indx' set but not used [-Wunused-but-set-variable]
int G, start_indx, end_indx;
^
updateFunctions_Splines.cc:182:28: warning: variable 'end_indx' set but not used [-Wunused-but-set-variable]
int G, start_indx, end_indx;
^
4 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o GRENITS.so AR1_Gauss_biocond.o AR1_Student_biocond.o AR1_biocond.o PSplines_biocond.o R_C_interface.o ReadMCMCFiles.o commonFunctions.o functionsErrorModel.o matrixManipulationFunctions.o updateFunctions_AR1.o updateFunctions_Splines.o -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/12.2.0 -L/opt/gfortran/lib -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Users/biocbuild/bbs-3.20-bioc/meat/GRENITS.buildbin-libdir/00LOCK-GRENITS/00new/GRENITS/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** 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 (GRENITS)
>>>>>>>
>>>>>>> FIXING PATHS TO DYNAMIC LIBRARIES FOR GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so
>>>>>>>
>>>>>>> Paths before fix:
GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so:
GRENITS.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib (compatibility version 4.4.0, current version 4.4.1)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRblas.dylib (compatibility version 0.0.0, current version 0.0.0)
/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)
/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libR.dylib (compatibility version 4.4.0, current version 4.4.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1775.118.101)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
>>>>>>> Fix with install_name_tool:
install_name_tool -change "/usr/local/lib/libgcc_s.1.1.dylib" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libgcc_s.1.1.dylib" "GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so"
install_name_tool -change "/usr/local/lib/libgfortran.5.dylib" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libgfortran.5.dylib" "GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so"
install_name_tool -change "/usr/local/lib/libquadmath.0.dylib" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libquadmath.0.dylib" "GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so"
install_name_tool -change "/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libgfortran.5.dylib" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libgfortran.5.dylib" "GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so"
install_name_tool -change "/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libquadmath.0.dylib" "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libquadmath.0.dylib" "GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so"
>>>>>>> Paths after fix:
GRENITS.buildbin-libdir/GRENITS/libs/GRENITS.so:
GRENITS.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRlapack.dylib (compatibility version 4.4.0, current version 4.4.1)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libRblas.dylib (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/lib/libR.dylib (compatibility version 4.4.0, current version 4.4.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1775.118.101)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)