OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
362 stars 111 forks source link

rgdal: `Symbol not found: ___addtf3` #1390

Closed pat-s closed 4 years ago

pat-s commented 4 years ago

When installing R package rgdal from source, I get the following with osgeo-gdal and osgeo-proj linked.

Might be related to #301

Everything is fine when using homerew-core gdal and proj.

** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Users/pjs/Library/R/4.1/library/00LOCK-rgdal/00new/rgdal/libs/rgdal.so':
  dlopen(/Users/pjs/Library/R/4.1/library/00LOCK-rgdal/00new/rgdal/libs/rgdal.so, 6): Symbol not found: ___addtf3
  Referenced from: /usr/local/opt/gcc/lib/gcc/10/libquadmath.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/opt/gcc/lib/gcc/10/libquadmath.0.dylib
Error: loading failed
Backtrace:
1: stop("loading failed", call. = FALSE)
2: tools:::.test_load_package("rgdal", "/Users/pjs/Library/R/4.1/library/00LOCK-rgdal/00new")
ERROR: loading failed
* removing ‘/Users/pjs/Library/R/4.1/library/rgdal’
* restoring previous ‘/Users/pjs/Library/R/4.1/library/rgdal’
alazarolop commented 4 years ago

From a previous post, I assume you've already got rgdal compiled from source in R 4.0 and you are trying to do it again in 4.1, right?

Have you tried to recompile GDAL from source as it's suggested in the issue you linked? Have you set a Makevars file to define compilation and flags? https://stackoverflow.com/questions/61103104/ld-unknown-option-platform-version-when-building-r-packages-from-source

stale[bot] commented 4 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want to keep the issue open, please comment or update the info here. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue or pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.