-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
El Capitan R 3.4.0 osx binary build broken on CRAN #327
Comments
Just notes from looking at the rgdal El Capitan binary package archive (I don't have access to OSX) - the proj-datumgrid files are missing from proj/. The rgdal.so in libs/ is only 127KB, the dSYM only 489KB, they look very small for a static build. As you wrote elsewhere, the Mavericks binary has very much larger files in libs/ (possibly too large if CFLAGS=-O2 and CXXFLAGS=.O2 not imposed to drop the -g flag). The proj-datumgrid files are present. The libs/ sizes for sf Mavericks maybe suggests a similar problem on the GDAL side. For El Capitan, rgeos/libs/ is 2.2MB for the *.so and 14MB for the dSYM, but I guess we know that it was the missing -lgeos and -lm (dropped earlier because geos-config gave the -m breaking value). For Mavericks and rgeos/libs/, *.so is 2.1MB, dSYM is 20MB. So something broke in building the GDAL libraries for El Capitan, maybe, and they just didn't make it through but appear to be there for rgdal, and sf failed because of -lgeos, but would have been stranded on GDAL like rgdal? |
Yes, that was what I was thinking too. |
Do we have any insight into Simon's build scripts? |
Build command is
Working El Capitan binaries for OSX appeared again on CRAN, however both lack the conus etc. files; the Maverick binaries (at least for sf) contain conus. |
Work-around is to copy the Mavericks proj/ folder over the one for El Capitan. |
@rsbivand the scripts are in https://svn.r-project.org/R-dev-web/trunk/QA/Simon/packages in particular |
Thanks very much, useful for future reference. Would you like me to post on the gdal-dev list to see if they might document this finding - they are at RC-1 for GDAL 2.2.0 now? |
I was sending the details to Edzer and I was using GDAL 2.1.3 - I'll send all the details to you so you can raise that with the GDAL team. |
I can confirm the the 2.2.0-RC1 has fixed the problem, so let's wait for the 2.2.0 release. |
Thanks a lot for trying this out, Simon! |
I've posted on this thread, so that what Simon established is on the record for GDAL developers. Maybe this is line 54 in 2.2.0/NEWS:
but there is so much going on that it is hard to tell. We'll see whether they comment, or care about static builds. |
For the record, Simon compiles gdal on max osx with configure --with-pic --disable-shared --enable-static --with-static-proj4=/usr/local/lib/libproj.a --with-liblzma |
Issue resolved with release 0.4-3. |
See also ropensci/rerddap#56
Seems that also rgdal binaries are there, but won't work.
The text was updated successfully, but these errors were encountered: