<div dir="ltr">Greetings,<div><br></div><div>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:</div><div><br></div><div><div>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</div></div><div><br></div><div>sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory<br></div><div><br></div><div>You can find the full issue here (<a href="https://github.com/cdeterman/gpuR/issues/66">https://github.com/cdeterman/gpuR/issues/66</a>).</div><div><br></div><div>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:</div><div><br></div><div><div>CXX_STD=CXX11</div><div>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</div><div>PKG_CXXFLAGS=</div><div>PKG_LIBS=-L../inst/include/loader -lOpenCL -pthread</div><div>BUILD_LIB=../inst/include/loader/libOpenCL.a</div><div><br></div><div>$(SHLIB): $(BUILD_LIB)</div><div><br></div><div>../inst/include/loader/libOpenCL.a:</div><div>        cd ../inst/include/loader/ && $(MAKE) libOpenCL.a \</div><div>        CC="$(CC)" CFLAGS="$(ALL_CFLAGS)" AR="$(AR)" RM="$(RM)" \</div><div>        ICD_OS=icd_linux</div></div><div><br></div><div>Have I mistakenly set something here that is causing this problem?</div><div><br></div><div>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.</div><div><br></div><div>Regards,</div><div>Charles</div><div><br></div></div>