On 12 February 2019 at 14:10, Ralf Stubner wrote: | Hi list, | | I run into run-time errors when using rhub::check_with_sanitizers(), | which can be reproduced like this: | | $ docker run -it --rm rhub/rocker-gcc-san bash | root@c56cfa20e903:/# RDscript -e "install.packages('Rcpp')" | [...] | root@c56cfa20e903:/# cat > foo.cpp | #include <Rcpp.h> | // [[Rcpp::depends(Matrix)]] | | // [[Rcpp::export]] | int foo() { return 0; } | | root@c56cfa20e903:/# RDscript -e "Rcpp::sourceCpp('foo.cpp')" | attributes.cpp:168:11: runtime error: load of value 104, which is not a | valid value for type 'bool' | attributes.cpp:168:11: runtime error: load of value 2, which is not a | valid value for type 'bool' | | There is no error if I omit Rcpp::depends: | | root@c56cfa20e903:/# cat > bar.cpp | #include <Rcpp.h> | | // [[Rcpp::export]] | int foo() { return 0; } | | root@c56cfa20e903:/# RDscript -e "Rcpp::sourceCpp('bar.cpp')" | root@c56cfa20e903:/# | | These errors do not occur in the tests run by CRAN (or they are filtered | out there). Does anyone have an idea where this might come from and how | it could be fixed?
I don't :-/ These tools are very helpful, but on occassion also very finicky. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel