<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Simon. I’ll do that. Thanks. Paul<br><br><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">Paul Fishwick, PhD<br>Distinguished University Chair of Arts, Technology, and Emerging Communication<br>Professor of Computer Science<br>Director, Creative Automata Laboratory<br>The University of Texas at Dallas<br>Arts & Technology<br><a href="x-apple-data-detectors://1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="1" style="text-decoration-color: rgba(127, 127, 127, 0.380392);">800 West Campbell Road</a>, AT10<br><a href="x-apple-data-detectors://2" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="2" style="text-decoration-color: rgba(127, 127, 127, 0.380392);">Richardson, TX 75080-3021</a><br>Home: <a href="http://utdallas.edu/atec/fishwick" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">utdallas.edu/atec/fishwick</a><br>Media: <a href="http://medium.com/@metaphorz" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">medium.com/@metaphorz</a><br>Modeling: <a href="http://digest.sigsim.org/" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">digest.sigsim.org</a><br>Twitter: @PaulFishwick</span></div><div dir="ltr"><br><blockquote type="cite">On May 4, 2020, at 2:39 AM, Simon Urbanek <simon.urbanek@r-project.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Paul,</span><br><span></span><br><span>as Kevin pointed out you have a big mess in /usr/local - I'd recommend renaming /usr/local/include and /usr//local/lib -- then you shouldn't need to set any custom flags at all (at least in R 4.0.0).</span><br><span></span><br><span>Cheers,</span><br><span>Simon</span><br><span></span><br><span></span><br><blockquote type="cite"><span>On 4/05/2020, at 9:34 AM, Paul Fishwick <metaphorz@gmail.com> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>@Kevin: This worked great. Thanks. I deleted the line in ~/.R/Makevars and inserted the line</span><br></blockquote><blockquote type="cite"><span>defining CPPFLAGS as you suggested. Rcpp now works in R! I have not yet tried to compile</span><br></blockquote><blockquote type="cite"><span>a package from source in R but I am guessing (or hoping) that should now work.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>In the mean time, I will read up on the R.framework.......Makeconf file to understand it.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I suppose since /usr/local/include is the offending set of headers, I could just delete</span><br></blockquote><blockquote type="cite"><span>everything from that directory too (after making a backup). I am not doing any other</span><br></blockquote><blockquote type="cite"><span>development work except for R/Rcpp, so perhaps it will not make a difference.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>However, since your suggested line does work, I'll leave it at this, and see if I can</span><br></blockquote><blockquote type="cite"><span>build up my knowledge on conflicting include files.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Thanks again!</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>-paul</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>On 5/3/20, 2:51 PM, "Kevin Ushey" <kevinushey@gmail.com> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /usr/local/include/math.h:8:</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   The problem here is you have a bunch of headers in /usr/local/include</span><br></blockquote><blockquote type="cite"><span>   that are shadowing / overriding the "normal" system header files;</span><br></blockquote><blockquote type="cite"><span>   /usr/local/include/math.h being one of these (but I imagine there's</span><br></blockquote><blockquote type="cite"><span>   more).</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   To work around this, you'll have to explicitly remove the</span><br></blockquote><blockquote type="cite"><span>   -I/usr/local/include bit that's part of CPPFLAGS (normally set by</span><br></blockquote><blockquote type="cite"><span>   default by an R installation), or clean up your /usr/local/include</span><br></blockquote><blockquote type="cite"><span>   directory. For example, in ~/.R/Makevars, you could set:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>       CPPFLAGS = -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   See the Makeconf file at:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>       /Library/Frameworks/R.framework/Resources/etc/Makeconf</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   for more information on where the default values for compilation flags</span><br></blockquote><blockquote type="cite"><span>   come from.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   Note that setting the above will probably break compilation for other</span><br></blockquote><blockquote type="cite"><span>   packages that depend on headers being located in /usr/local/include;</span><br></blockquote><blockquote type="cite"><span>   if that is indeed the case your main recourse would be to clean up</span><br></blockquote><blockquote type="cite"><span>   /usr/local/include, or find a way to explicitly include your system</span><br></blockquote><blockquote type="cite"><span>   headers before /usr/local/include.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   As an aside, the Makevars variables prefixed with PKG_ are normally</span><br></blockquote><blockquote type="cite"><span>   reserved for use by package authors (in their own src/Makevars); you</span><br></blockquote><blockquote type="cite"><span>   normally shouldn't try to set or override those. See in R-exts:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-Makevars</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   for more details.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   Best,</span><br></blockquote><blockquote type="cite"><span>   Kevin</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>   On Sun, May 3, 2020 at 10:17 AM Paul Fishwick <metaphorz@gmail.com> wrote:</span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>It was a good suggestion. I went back to installing R 4.0 as you suggested. In Rstudio, which I think</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>uses whatever R happens to be currently installed, I get into</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>a similar rcpp issue whenever I say “y” to compiling packages from source. There seems</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>to be consistent disconnect of R finding certain files when compilation with</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>clang is required.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>…………</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include  -I/usr/local/include   -fPIC  -Wall -g -O2  -c capture.c -o capture.o</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from capture.c:1:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Resources/include/Rinternals.h:44:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Resources/include/R_ext/Arith.h:41:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /usr/local/include/math.h:8:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /usr/local/include/features.h:10:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/usr/local/include/forwards.h:10:10: fatal error: 'config.h' file not found</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>#include "config.h"</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>        ^~~~~~~~~~</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>1 error generated.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>make: *** [capture.o] Error 1</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>ERROR: compilation failed for package ‘rlang’</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>………………….</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>From: Carl Ganz <carlganz@gmail.com></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Date: Sunday, May 3, 2020 at 12:04 PM</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>To: Paul Fishwick <metaphorz@gmail.com></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Cc: <rcpp-devel@lists.r-forge.r-project.org></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Subject: Re: [Rcpp-devel] Cannot run rcpp due to missing include file(s)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>This is probably beyond my understanding at this point, but the solution I offered worked for me with R 4.0 and it looks like this example is R 3.6</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I vaguely remember some issues with interaction between older R version and newer Xcode 11.4.1 so moving to R 4 might help</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Sun, May 3, 2020 at 9:25 AM Paul Fishwick <metaphorz@gmail.com> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Carl</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>First, thank you for this quick tip! I had no ~/.R directory and Makevars didn’t exist when I searched</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>for it in Finder. So, I made the directdory ~/.R and then added a new file “Makevars” to that directory.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I edited this file to add your PKG_CPPFLAGS:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>(base) <hostname>-5:.R paul$ more Makevars</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>PKG_CPPFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Now I get another sequence of compiler errors. I’ll include only the first several lines:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>……….</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from fileb6e52d3a23c3.cpp:1:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp.h:27:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/RcppCommon.h:29:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/r/headers.h:67:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>using ::signbit;</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>     ~~^</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>using ::fpclassify;</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>     ~~^</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>using ::isfinite;</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>     ~~^</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: 'finite' declared here</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>extern int finite(double)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>          ^</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>From: Carl Ganz <carlganz@gmail.com></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Date: Sunday, May 3, 2020 at 11:02 AM</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>To: Paul Fishwick <metaphorz@gmail.com></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Cc: <rcpp-devel@lists.r-forge.r-project.org></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Subject: Re: [Rcpp-devel] Cannot run rcpp due to missing include file(s)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I experienced similar issues on Mac and was able to fix by adding PKG_CPPFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include to my .R/Makevars</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>My understanding is that Mac no longer uses the /usr/local/include so you need to point it to the usr/include in the Developer SDK folder</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Sun, May 3, 2020 at 8:59 AM Paul Fishwick <metaphorz@gmail.com> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>System: Mac OSX 11 (Catalina), Rstudio with R version 3.6.3 (but have also tried 4.0 and 3.3),</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Xcode version 11.4.1</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Went to:  http://adv-r.had.co.nz/Rcpp.html#rcpp-intro</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>and tried library(rcpp) which worked fine because I previously had installed the rcpp package.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>The following yields an error in finding config.h. I did a "find" on config.h and sure enough it is not</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>in the clang++ -I directory references. Here is what I have tried:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Installing Xcode's command line tools (which were installed using xcode-select --install)</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Also, downloaded and installed the version of clang8 and gfortran6.1 from:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>https://cran.r-project.org/bin/macosx/tools/</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>The following error occurs when I try this rcpp example from Hadley but it also happens whenever</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I try to install an R package from source. The compile fails due to not finding some include file.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>I would have thought that installing clang8 would have also included the proper include (.h) file directories</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>with their contents needed by R.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Is there something I am missing below? Thank you.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>library(Rcpp)</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>cppFunction('int add(int x, int y, int z) {</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>+   int sum = x + y + z;</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>+   return sum;</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>+ }')</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from fileb6e52d3a23c3.cpp:1:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp.h:27:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/RcppCommon.h:29:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/r/headers.h:67:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:304:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /usr/local/include/math.h:8:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>In file included from /usr/local/include/features.h:10:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>/usr/local/include/forwards.h:10:10: fatal error: 'config.h' file not found</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>#include "config.h"</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>        ^~~~~~~~~~</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>1 error generated.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>make: *** [fileb6e52d3a23c3.o] Error 1</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I"/private/var/folders/bt/1gd00p5s6n19m_bgh9b04gxc0000gp/T/RtmpRRyaky/sourceCpp-x86_64-apple-darwin15.6.0-1.0.4" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include  -fPIC  -Wall -g -O2  -c fileb6e52d3a23c3.cpp -o fileb6e52d3a23c3.o</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Error in sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir,  :</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span> Error 1 occurred building shared library.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Rcpp-devel mailing list</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Rcpp-devel@lists.r-forge.r-project.org</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>_______________________________________________</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Rcpp-devel mailing list</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Rcpp-devel@lists.r-forge.r-project.org</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>Rcpp-devel mailing list</span><br></blockquote><blockquote type="cite"><span>Rcpp-devel@lists.r-forge.r-project.org</span><br></blockquote><blockquote type="cite"><span>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</span><br></blockquote><span></span><br></div></blockquote></body></html>