Greetings, I have run in a problem where a user tries to install my package 'gpuR' and the compilation is showing the C++ compiler absent resulting in errors like: I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I../inst/include -DCL_HPP_MINIMUM_OPENCL_VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_HPP_TARGET_OPENCL_VERSION=120 -I'/usr/include/' -I. -pthread -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/Rcpp/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/RcppEigen/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/RViennaCL/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/BH/include" -c vienna_svd.cpp -o vienna_svd.o sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory You can find the full issue here ( https://github.com/cdeterman/gpuR/issues/66). What I don't understand is what could be causing this. On the particular machine (CentOS 7) with using Microsoft R Open the 'Makevars' files ends up like this: CXX_STD=CXX11 PKG_CPPFLAGS=-I../inst/include -DCL_HPP_MINIMUM_OPENCL_VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_HPP_TARGET_OPENCL_VERSION=120 -I'/usr/include/' -I. -pthread PKG_CXXFLAGS= PKG_LIBS=-L../inst/include/loader -lOpenCL -pthread BUILD_LIB=../inst/include/loader/libOpenCL.a $(SHLIB): $(BUILD_LIB) ../inst/include/loader/libOpenCL.a: cd ../inst/include/loader/ && $(MAKE) libOpenCL.a \ CC="$(CC)" CFLAGS="$(ALL_CFLAGS)" AR="$(AR)" RM="$(RM)" \ ICD_OS=icd_linux Have I mistakenly set something here that is causing this problem? I tried putting the 'CXX=g++' in the `Makevars` but I had previously read that it is ignored by the internal R `Makefile` so naturally it provided no help. Regards, Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20170220/8e299313/attachment.html>
[Rcpp-devel] C++ compiler being omitted during compilation
2 messages · Charles Determan, Qiang Kou
Hi, Charles, I think this is a known problem in Microsoft R Open. You can try to add following lines into your ~/.R/Makevars file: CXX1X=gcc -std=c++0x CXX1XSTD=-std=c++0x Best, KK On Mon, Feb 20, 2017 at 11:29 AM, Charles Determan <cdetermanjr at gmail.com> wrote:
Greetings, I have run in a problem where a user tries to install my package 'gpuR' and the compilation is showing the C++ compiler absent resulting in errors like: I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I../inst/include -DCL_HPP_MINIMUM_OPENCL_VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_HPP_TARGET_OPENCL_VERSION=120 -I'/usr/include/' -I. -pthread -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/Rcpp/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/RcppEigen/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/RViennaCL/include" -I"/usr/lib64/microsoft-r/3.3/lib64/R/library/BH/include" -c vienna_svd.cpp -o vienna_svd.o sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory You can find the full issue here (https://github.com/cdeterman/ gpuR/issues/66). What I don't understand is what could be causing this. On the particular machine (CentOS 7) with using Microsoft R Open the 'Makevars' files ends up like this: CXX_STD=CXX11 PKG_CPPFLAGS=-I../inst/include -DCL_HPP_MINIMUM_OPENCL_VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_HPP_TARGET_OPENCL_VERSION=120 -I'/usr/include/' -I. -pthread PKG_CXXFLAGS= PKG_LIBS=-L../inst/include/loader -lOpenCL -pthread BUILD_LIB=../inst/include/loader/libOpenCL.a $(SHLIB): $(BUILD_LIB) ../inst/include/loader/libOpenCL.a: cd ../inst/include/loader/ && $(MAKE) libOpenCL.a \ CC="$(CC)" CFLAGS="$(ALL_CFLAGS)" AR="$(AR)" RM="$(RM)" \ ICD_OS=icd_linux Have I mistakenly set something here that is causing this problem? I tried putting the 'CXX=g++' in the `Makevars` but I had previously read that it is ignored by the internal R `Makefile` so naturally it provided no help. Regards, Charles
_______________________________________________ Rcpp-devel mailing list Rcpp-devel at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
Qiang Kou qkou at umail.iu.edu School of Informatics and Computing, Indiana University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20170220/b7855fe2/attachment.html>