[Rcpp-devel] C++ compiler being omitted during compilation
Charles Determan
cdetermanjr at gmail.com
Mon Feb 20 17:29:11 CET 2017
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>
More information about the Rcpp-devel
mailing list