fstpackage / fst

Lightning Fast Serialization of Data Frames for R
http://www.fstpackage.org/fst/
GNU Affero General Public License v3.0
619 stars 42 forks source link

install failure, reinstall of R and fst #258

Closed iwelch closed 2 years ago

iwelch commented 3 years ago

latest R 4.0.5:

Error: package or namespace load failed for ‘fst’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/local/lib/R/4.0/site-library/fst/libs/fst.so':
  dlopen(/usr/local/lib/R/4.0/site-library/fst/libs/fst.so, 6): Symbol not found: _XXH32
  Referenced from: /usr/local/lib/R/4.0/site-library/fst/libs/fst.so
  Expected in: flat namespace
 in /usr/local/lib/R/4.0/site-library/fst/libs/fst.so
Error: loading failed
use traceback() to see the error line
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/usr/local/lib/R/4.0/site-library/fst/libs/fst.so':
  dlopen(/usr/local/lib/R/4.0/site-library/fst/libs/fst.so, 6): Symbol not found: _XXH32
  Referenced from: /usr/local/lib/R/4.0/site-library/fst/libs/fst.so
  Expected in: flat namespace
 in /usr/local/lib/R/4.0/site-library/fst/libs/fst.so
Calls: <Anonymous> ... <Anonymous> -> loadNamespace -> library.dynam -> dyn.load
rodonn commented 3 years ago

I'm running into the same error on R 4.1.0

I'm using OSX 11.3.1 (20E241)

I tried install.packages('fst') as well as devtools::install_github("fstPackage/fst", ref = "develop")

rodonn commented 3 years ago

Duplicate of #250

MarcusKlik commented 2 years ago

Hi @iwelch, the macOS linking problems should be solved with the latest release. The problem was that both LZ4 and ZSTD contain code for xxhash, but the implementation versions were not identical! I believe Makevars is now configured correctly to avoid these linking problems (also see the github workflow)

thanks for reporting!