<div dir="ltr">Hi, Charles, I think this is a known problem in Microsoft R Open.<div><br></div><div>You can try to add following lines into your ~/.R/Makevars file:</div><div><br></div><div>CXX1X=gcc -std=c++0x</div><div>CXX1XSTD=-std=c++0x</div><div><br></div><div>Best,</div><div><br></div><div>KK</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 11:29 AM, Charles Determan <span dir="ltr"><<a href="mailto:cdetermanjr@gmail.com" target="_blank">cdetermanjr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>lib64/R/include -DNDEBUG -I../inst/include -DCL_HPP_MINIMUM_OPENCL_<wbr>VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_<wbr>2_APIS -DCL_HPP_TARGET_OPENCL_<wbr>VERSION=120 -I'/usr/include/' -I. -pthread -DU_STATIC_IMPLEMENTATION -I"/usr/lib64/microsoft-r/3.3/<wbr>lib64/R/library/Rcpp/include" -I"/usr/lib64/microsoft-r/3.3/<wbr>lib64/R/library/RcppEigen/<wbr>include" -I"/usr/lib64/microsoft-r/3.3/<wbr>lib64/R/library/RViennaCL/<wbr>include" -I"/usr/lib64/microsoft-r/3.3/<wbr>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/<wbr>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" target="_blank">https://github.com/cdeterman/<wbr>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_<wbr>VERSION=110 -DCL_USE_DEPRECATED_OPENCL_1_<wbr>2_APIS -DCL_HPP_TARGET_OPENCL_<wbr>VERSION=120 -I'/usr/include/' -I. -pthread</div><div>PKG_CXXFLAGS=</div><div>PKG_LIBS=-L../inst/include/<wbr>loader -lOpenCL -pthread</div><div>BUILD_LIB=../inst/include/<wbr>loader/libOpenCL.a</div><div><br></div><div>$(SHLIB): $(BUILD_LIB)</div><div><br></div><div>../inst/include/loader/<wbr>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>
<br>______________________________<wbr>_________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-<wbr>project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/rcpp-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Qiang Kou<div><a href="mailto:qkou@umail.iu.edu" target="_blank">qkou@umail.iu.edu</a><br><div>School of Informatics and Computing, Indiana University</div><div><br></div></div></div></div>
</div>