r-lib / later

Schedule an R function or formula to run after a specified period of time.
https://r-lib.github.io/later
Other
138 stars 27 forks source link

ld: library not found for -latomic #128

Closed akhst7 closed 4 years ago

akhst7 commented 4 years ago

Hi,

Installation fails with a following error message;

ld: library not found for -latomic
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [later.so] Error 1
ERROR: compilation failed for package ‘later’

I was looking for -latomic but don't see any library corresponds to it.

sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin18.7.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /usr/local/Cellar/openblas/0.3.9/lib/libopenblasp-r0.3.9.dylib

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] remotes_2.1.1

loaded via a namespace (and not attached):
[1] compiler_4.0.0 tools_4.0.0    curl_4.3  
clang -v
clang version 10.0.0
Target: x86_64-apple-darwin18.7.0

sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G4032
wch commented 4 years ago

Since you're on a Mac, you should be able to install the binary package, and not have to compile it.

akhst7 commented 4 years ago

That works. Thanks.