Hi all,
I am developing an R package using Stan called rater, which can be found here. While I was developing it today I started to get failures on my CI builds (I am currently using Travis). I tracked this back to recent update to StanHeaders on CRAN. (2.21.0-3).
Originally I got errors of the form:
tbb/task_scheduler_observer.h: No such file or directory
#include <tbb/task_scheduler_observer.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
but I was able to fix these by updating my MakeVars with rstantools 2.1.0 and adding RcppParallel to both Imports and the description.
However I now get the following error:
/usr/bin/ld: cannot find -ltbb
/usr/bin/ld: cannot find -ltbbmalloc
collect2: error: ld returned 1 exit status
(The full log including the linker invocation which causes the error can be found here
I had a read of what the different linker flags could mean, but honestly I’m well over my head at this point.
I also tried to build to the package locally on my Macbook Air running High Sierra 10.13.6.
Any help or suggestions would be greatly appreciated! Thanks for Stan - it’s an amazing tool.