############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data BGmix ### ############################################################################## ############################################################################## * checking for file ‘BGmix/DESCRIPTION’ ... OK * preparing ‘BGmix’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * installing *source* package ‘BGmix’ ... ** using staged installation checking for gcc... clang -arch x86_64 checking for C compiler default output file name... rm: a.out.dSYM: is a directory 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 clang -arch x86_64 option to accept ISO C99... none needed checking for cos in -lm... yes 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 SDK: ‘MacOSX11.3.sdk’ clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I ../boostIncl -I/opt/R/x86_64/include -fPIC -falign-functions=64 -Wall -g -O2 -falign-functions=64 -Wall -g -O2 -DUSING_R -c BGmix_main.cpp -o BGmix_main.o In file included from BGmix_main.cpp:25: In file included from ./updates_BGmix.h:1: 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))); ~~~~~^ 1 error generated. make: *** [BGmix_main.o] Error 1 ERROR: compilation failed for package ‘BGmix’ * removing ‘/private/tmp/Rtmp5v95um/Rinste36e6f012051/BGmix’ ----------------------------------- ERROR: package installation failed