Skip to content
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

ERROR: compilation failed for package 'data.table' #2875

Closed
sengoku93 opened this issue May 14, 2018 · 3 comments
Closed

ERROR: compilation failed for package 'data.table' #2875

sengoku93 opened this issue May 14, 2018 · 3 comments
Labels

Comments

@sengoku93
Copy link

Hi,

I am having difficulty installing data.table in R 3.4.3. The error I get below:
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fopenmp -fPIC -Wall -g -O2 -c assign.c -o assign.o
clang: error: unsupported option '-fopenmp'
make: *** [assign.o] Error 1
ERROR: compilation failed for package ‘data.table’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/data.table’
    Warning in install.packages :
    installation of package ‘data.table’ had non-zero exit status

Any suggestions would be appreciated. Thank you!

@mattdowle
Copy link
Member

Unfortunately the binary package on MacOS for oldrel still hasn't built on CRAN (it's been 2 weeks now). Otherwise you could use the package Mac binary from CRAN.

I searched issues for the text unsupported option '-fopenmp' and found this closed (i.e. solved) issue : #2406

data.table installation from source instructions for Mac are here : https://github.com/Rdatatable/data.table/wiki/Installation#openmp-enabled-compiler-for-mac

Hope that helps. Please close if resolved.

@jangorecki
Copy link
Member

jangorecki commented May 30, 2018

Issue is known, and solved. The only problem now is that recent binaries are not shipped on CRAN for R oldrel. This is also duplicate of #2406. Closing.

@mattdowle
Copy link
Member

mattdowle commented May 31, 2018

I sent an email to cran@r-project.org about this earlier today. For others finding this in future, CRAN checks page for data.table shows that r-oldrel-osx-x86_64 is a month stale. old-rel means R 3.4.* MacOS binary are usually the slowest, taking a week or two. But 1 month is much more than usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants