Comments (6)
Oh and I forgot to mention that I do not think it is C++11 which is the issue but rather OpenMP.
from dynamichazard.
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 $(SHLIB_OPENMP_CXXFLAGS)
from these lines:
Lines 12 to 14 in 79f197d
which should remove the -fopenmp
flag. The downside is that you cannot do computation in parallel. Alternatively, do you have a more recent compiler you can use?
from dynamichazard.
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?
from dynamichazard.
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
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.
Alternatively I'd still think having a binary compiled version available is a good to have?
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.
from dynamichazard.
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 dynamichazard
?
from dynamichazard.
You can use the CC
, CXX
, CXX11
, and FC
flags in your ~/.R/Makevars
file. E.g., I have
CC=gcc-10
CXX=g++-10
CXX11=g++-10
FC=gfortran-10
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. R CMD config CXX11
which gives me g++-10
.
You can also have the Makevars file at some other location using the R_MAKEVARS_USER
environment variable. For instance,
echo "CXX=some/path/g++" >> /tmp/Makevars
export R_MAKEVARS_USER=/tmp/Makevars
R CMD config CXX
#> some/path/g++
from dynamichazard.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamichazard.