Skip to content
Prev 26708 / 29559 Next

rgdal with R > 3.5.x and GDAL > 2.3.x on macOS

See below inline:
On Mon, 6 Aug 2018, Patrick Schratz wrote:

            
Does anyone actually know that this is a solution or rather the problem? 
Check:

$ R CMD config CXX
## clang++ -std=gnu++11
## for me with an R-devel clang build on Fedora 28

Run this and/or ./configure in the unpacked rgdal source tarball and 
report the CXX value. Is the issue advice wrong, and CXX should be 
'clang++ -std=gnu++11'?

I have no access to OSX (and no wish to have access) - the OSX users need 
to do a full bisection and not guess what is happening.
No, that is coming from code in GDAL itself, as you can see. You need to 
establish which --std= is actually needed.
Searching the web only confirms that there is very little signal there - 
search the source code instead, and bisection (which settings worked for 
which versions, and which changes provoke the issue)? Is for example the 
CRAN R binary reporting a different R CMD config CXX from your 
homebrew-built R?