[Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Dear Rcpp development list members, I am trying to use OpenMP with Rcpp. The code (placed in omp_experiment.cpp file) is pretty basic: #include #include //[[Rcpp::plugins(openmp)]] //[[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; // [[Rcpp::export]] int timesTwo(int x) { return x

Re: [Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread Balamuta, James Joseph
Greetings and Salutations, OS X does not currently support OpenMP under the default compiler (clang). Hence, you are receiving an error as it relates to the header file not being found. For more details, see: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#OpenMP-support

Re: [Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread Kevin Thornton
One may also use clang-omp from Homebrew if you wish to still use clang on OS X, but have OpenMP. --Kevin On Mon, Mar 14, 2016 at 9:31 AM Balamuta, James Joseph < balam...@illinois.edu> wrote: > Greetings and Salutations, > > > > OS X does not currently support OpenMP under the default compiler

Re: [Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Hi James and Kevin, Thank you very much for the advices (I'll try James' directions shortly). But I have already installed clang-omp via $ brew install clang-omp The compiler is available at /usr/local/Library/Formula/clang-omp.rb Can I ask you for some directions as to ho

[Rcpp-devel] Fwd: fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Sorry, I guess James' e-mail contains some directions, albeit not for RStudio specifically. I'll try them. Thanks. Anguel -Original Message- From: aakremena To: krthornt ; rcpp-devel Sent: Mon, Mar 14, 2016 11:45 am Subject: Re: [Rcpp-devel] fatal error: 'omp.h' file not fou

Re: [Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread Kevin Thornton
You should (read: I've not tested this myself...) be able to assign clang-omp and clang-omp++ to CC and CXX, respectively, in your ~/.R/Makevars file. On Mon, Mar 14, 2016 at 9:31 AM Balamuta, James Joseph < balam...@illinois.edu> wrote: > Greetings and Salutations, > > > > OS X does not currently

Re: [Rcpp-devel] Fwd: fatal error: 'omp.h' file not found

2016-03-14 Thread Dirk Eddelbuettel
On 14 March 2016 at 12:55, aakrem...@aol.com wrote: | Sorry, | | I guess James' e-mail contains some directions, albeit not for RStudio | specifically. I'll try them. This is getting off topic as it has nothing to do with Rcpp -- Rcpp works with OpenMP if and when OpenMP is configured. You hav

[Rcpp-devel] Fwd: fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Hi everyone and thank you for your advice. Seems like a possible solution for the problem on OS X Mavericks is as follows: 1. Install clang-omp, If you use homebrew as a package management system, insert in terminal brew install clang-omp 2. Change the content o

[Rcpp-devel] version GLIBCXX not found

2016-03-14 Thread Peter Carr
I am getting an error installing Rcpp from source with R-2.15.3 and Rcpp 0.10.5: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found I am working in a non-standard environment; running R on a compute cluster, similar to this thread: https://github.com/molpopgen/devnotes/wiki/Rcpp-a

Re: [Rcpp-devel] version GLIBCXX not found

2016-03-14 Thread Dirk Eddelbuettel
On 14 March 2016 at 20:07, Peter Carr wrote: | I am getting an error installing Rcpp from source with R-2.15.3 and Rcpp | 0.10.5: |     /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found That almost always means that you have mixed g++ compilers. C++ can be picky. In short, you need t

Re: [Rcpp-devel] version GLIBCXX not found

2016-03-14 Thread Peter Carr
I did a little more investigating about the 'mixed g++' compilers. It appears as if R-2.15 was built with a different version of GCC than is available on my system. strings -a /pkgs/r_2.15.3/bin/Rscript | grep GCC GCC: (GNU) 4.4.6 20120305 (Red Hat 4.4.6-4) GCC: (GNU) 4.4.7 20120313 (Red Hat 4.4