-
Notifications
You must be signed in to change notification settings - Fork 988
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
compilation failed for package ‘data.table’ on travis-ci #3938
Comments
Thanks for the detailed info.
That looks familiar on MacOS. But we're more used to seeing it on user machines rather than Travis. Please see: https://github.com/Rdatatable/data.table/wiki/Installation#openmp-enabled-compiler-for-mac This one is Travis specific: #3331. See the sentence at the top "In order to compile data.table on Travis OSX, an OpenMP enabled compiler is required, so ..." I've turned it back on here: #3941 |
Thanks Matt, that worked for me. To other people stumbling across the same issue and in need for a quick fix: Informed by Matt's reply above and #3331 I added the following lines to my own travis.yml file:
As a result my R package (that imports data.table) builds again on Travis for both linux and osx. |
Great. Thanks for the update. Thanks @MarcusKlik for the solution. |
…e failing to install, from upstream: Rdatatable/data.table#3938
Here is a solution that does not require custom compilers. Put this e.g. in your sed -i.bak 's/-fopenmp//g' $(R RHOME)/etc/Makeconf This modifies your R config to opt-out of OpenMP, so you can use standard xcode compilers. |
@jeroen but that's not a solution if it disables openmp. Rather than the word 'custom' which implies something a little bit bad, I'd lean towards the words 'basic', 'limited' or even 'deficient' (in the sense of something missing) to descibe xcode compilers which lack openmp support by default, unlike windows and linux which support standard openmp built-in by default. |
Hi, I got an error on Travis-CI build when I use 'data.table' as one of the dependency packages in my R package.
Almost the same code/configuration below passed the Travis build 3 days ago, however, I did some minor changes today in the documentation of my package and this data.table related error appeared in travis-ci build. I also notice you have a new release of data.table two days ago, so I was wondering if these two things are related.
Here is some information probably helpful:
data.table is listed on my DESCRIPTION file under Imports part.
my travis build config file .travis.yml. :
Any advice or suggestions on how to solve this problem?
The text was updated successfully, but these errors were encountered: