############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL bgx ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library’ * installing *source* package ‘bgx’ ... ** using staged installation checking for gcc... clang -arch x86_64 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether clang -arch x86_64 accepts -g... yes checking for clang -arch x86_64 option to accept ISO C89... none needed checking for C compiler vendor... gnu checking whether C compiler accepts -ffast-math... yes checking whether C compiler accepts -O3... yes checking build system type... x86_64-apple-darwin21.6.0 checking host system type... x86_64-apple-darwin21.6.0 checking for gcc architecture flag... checking for x86 cpuid 0 output... d:756e6547:6c65746e:49656e69 checking for x86 cpuid 1 output... 306e4:12200800:7fbee3ff:bfebfbff checking whether C compiler accepts -march=pentiumpro... no checking whether C compiler accepts -mcpu=pentiumpro... yes checking for gcc architecture flag... -mcpu=pentiumpro checking for clang -arch x86_64 option to accept ISO C99... none needed checking for main in -lm... yes Untarring Boost header files... checking for an ANSI C-conforming const... yes checking for inline... inline configure: creating ./config.status config.status: creating src/Makevars ** libs using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ 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 ../boostIncl -I'/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/Rcpp/include' -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -falign-functions=64 -Wall -g -O2 -ffast-math -O3 -DUSING_R -c bgx.cc -o bgx.o In file included from bgx.cc:32: In file included from ./rand.hh:32: In file included from ../boostIncl/boost/random.hpp:70: ../boostIncl/boost/random/uniform_on_sphere.hpp:55:25: error: no member named 'bind2nd' in namespace 'std' std::bind2nd(std::divides(), sqrt(sqsum))); ~~~~~^ bgx.cc:44:13: warning: 'FLUSH' macro redefined [-Wmacro-redefined] #define FLUSH {R_FlushConsole(); R_ProcessEvents();} ^ ./rand.hh:42:13: note: previous definition is here #define FLUSH R_FlushConsole(); ^ In file included from bgx.cc:36: ./bgx_updates.hh:47:8: warning: private field 'categories' is not used [-Wunused-private-field] int* categories; ^ ./bgx_updates.hh:310:8: warning: private field 'categories' is not used [-Wunused-private-field] int *categories; ^ ./bgx_updates.hh:311:7: warning: private field 'numberCategories' is not used [-Wunused-private-field] int numberCategories; ^ 4 warnings and 1 error generated. make: *** [bgx.o] Error 1 ERROR: compilation failed for package ‘bgx’ * removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/bgx’