Data.table: ERROR: compilation failed for package 'data.table'

Created on 14 May 2018  ·  3Comments  ·  Source: Rdatatable/data.table

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!

openmp

Most helpful comment

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 : https://github.com/Rdatatable/data.table/issues/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.

All 3 comments

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 : https://github.com/Rdatatable/data.table/issues/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.

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.

I sent an email to [email protected] 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.

Was this page helpful?
0 / 5 - 0 ratings