Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-08 Thread Dirk Eddelbuettel
On 8 May 2019 at 09:43, Simon Urbanek wrote: | It fails for me on Linux as well: [...] | [Ubuntu 18.04.1 LTS; clang 7.0.0-3~ubuntu0.18.04.1] I can confirm that on Ubuntu 18.10 if I uncomment / reset these in ~/.R/Makevars: CXX=ccache clang++ CXX11=ccache clang++ CC=ccache clang SHLIB_C

Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-08 Thread Simon Urbanek
It fails for me on Linux as well: $ clang++-7 -I"/usr/local/R/3.5/include" -DNDEBUG -I"/usr/local/R/site-lib/3.5/Rcpp/include" -I"/data/users/su" -I/usr/local/include -fpic -g -O2 -c t.cpp -o t.o In file included from t.cpp:1: In file included from /usr/local/R/site-lib/3.5/Rcpp/include/R

Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-07 Thread Dirk Eddelbuettel
On 6 May 2019 at 11:45, Robin GIRARD wrote: | Dear all, I created a small example that reproduces my error below. It has to do with my use of module with .constructor() with Rcpp::NumericVector. I guess I’m not doing things the right way but since it is working on windows and used to work unti

Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-06 Thread Robin GIRARD
Dear all, I created a small example that reproduces my error below. It has to do with my use of module with .constructor() with Rcpp::NumericVector. I guess I’m not doing things the right way but since it is working on windows and used to work until now with my Mac … Thanks in advance for you

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Robin GIRARD
I found a way to solve my RcppArmadillo problem here https://stackoverflow.com/questions/51761599/cannot-find-stdio-h I don’t really understand what happened because I had the file. The other error is still here Regards Robin >

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Robin GIRARD
Dear Simon, **regarding RcppArmadillo build from source pb**  the config.log is attached and points the following error while checking something about cross  compilation.In file included from conftest.cpp:9:/usr/local/clang7/include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found#inclu

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Simon Urbanek
Robin, this is unlikely a Mac issue, merely newer compilers give you better error handling pointing to issues in the code that may not have been detected before. If you post the code we can have a look. Also check your tools - the RcppArmadillo error points out that your compiler setup is brok