Skip to content
Prev 15029 / 15075 Next

data.table does not find openmp support

Naresh,

as for the original problem, just re-install the package binary from CRAN (see [1], i.e., just run install.packages("data.table",repos="https://mac.r-project.org")).

As for your secondary problem (which should be irrelevant by now since you can get the right binary from CRAN), you have mismatching Xcode and OpenMP versions. I suspect you are using Xocde/CLT > 16.2 which is incompatible with the clang 17 run-time (see the note on the OpenMP page). So if you really want to compile it from sources, the two options you have are a) install Xcode/CLT 16.2 (which uses clang 17) or b) use OpenMP from clang 19. For the latter, however, you may need some work since that run-time is incompatible with the libomp shipped with R so you may need to modify the flags (see the note in the flags section of the OpenMP page), but I'm not 100% sure if data.table supports that (or you can replace the R run-time with the clang 19 run-time if you don't use any packages that link to it). Again, it's much easier to install the updated CRAN binary.

Cheers,
Simon

[1] - https://stat.ethz.ch/pipermail/r-sig-mac/2026-January/015314.html