-
Notifications
You must be signed in to change notification settings - Fork 77
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
rJava/jri compilation fails with parallel make (-j) #1
Comments
Parallel make is in general not supported, so by changing |
Up to now I did not have any problems installing contributed R packages using parallel make, I only recognized that I am "entirely on my own" when installing rJava. Thanks for pointing me to It might be an idea to set
Telling make that way that the makefile infrastructure of rJava's jri is incompatible with parallelization works on my system (Ubuntu Linux, GNU make). I'm not an expert, but it seems to me that this is no portable solution since the -j argument is not declared in POSIX make. So I have no idea what happens in other implementations of make... |
I'm running R-3.0.2 on Ubuntu x86_64, configured with --enable-R-shlib (not sure if this is important).
I just found out that my use of parallel make (via the setting
MAKE=make -j2
in my ~/.R/config) was the cause of the following compilation error:when trying to
install.packages("rJava")
.To reproduce this:
This fails with the above error, but using make -j1 works.
To be able to use install.packages("rJava") in R, I temporarily set
MAKE=make -j1
in my ~/.R/Makevars.Since it took quiet some time to track down the error, I thought I should write about it here as a reference for other affected users. Maybe it would also be worth mentioning this potential error in the installation notes on http://www.rforge.net/rJava/.
The text was updated successfully, but these errors were encountered: