-
Notifications
You must be signed in to change notification settings - Fork 3
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 error #4
Comments
The build error seems to be related to the user defined reduction using OpenMP. I think this was first added in OpenMP 4.0 so perhaps you do not have a recent enough version of OpenMP? If this is true, then you can try to download the source and remove Lines 12 to 14 in 79f197d
which should remove the |
Thanks for the reply. unfortunately my hands are limited in installing a lot of stuff in the box I am given. I might have a chance to upgrade gcc. Which version of gcc is compatible with c++11 and this library? https://gcc.gnu.org/releases.html Alternatively I'd still think having a binary compiled version available is a good to have? |
I know that the package used to build with Rtools35.exe which seems to have been based on GCC 4.9.3 and Mingw-w64 v3. From https://gcc.gnu.org/wiki/openmp, it seems like GCC 4.9 supports OpenMP 4.0 which would explain the issues you are seeing with GCC 4.8.5 and why it used to work with the old Rtools.
To be honest, I have never tried to build and distribute the binary myself. I am not sure if I will have the time to do this anytime soon. |
Oh and I forgot to mention that I do not think it is C++11 which is the issue but rather OpenMP. |
Say I 'd be able to install the second version of GCC. Is there an easy way to point to a specific binary when installing |
You can use the
See https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Customizing-package-compilation for details. You can check that you have set this up correctly by running e.g. You can also have the Makevars file at some other location using the echo "CXX=some/path/g++" >> /tmp/Makevars
export R_MAKEVARS_USER=/tmp/Makevars
R CMD config CXX
#> some/path/g++ |
Hello
I get "make: *** [PF/dists.o] Error 1" error while trying to install the library
System info
Steps:
1- I installed Rcpp and RcppArmadillo
2- Try to install the library by both
install.packages("dynamichazard")
andremotes::install_github("boennecd/dynamichazard")
.Error log (I used
MYDIR
to mask the full address):Appreciate any words of wisdom that might help to tackle this.
Does the package have any binary version to avoid compilation?
The text was updated successfully, but these errors were encountered: