Today, I try to install rstan on FreeBSD, and got error like:
...
rstan.so: Undefined symbol "_ZN3tbb8internal26task_scheduler_observer_v37observeEb"
...
(please refer to rstan fails to be installed on FreeBSD)
After some struggle, we located the issue come from libtbb is not linked to rstan.so. And libtbb is assumed to be provided by RcppParallel. However, I inspected the libs installed by RcppParallel, and did not find tbb related libs. And LdFlags() return nothing.
I don't know how to configure RcppParallel during installation in order to make it to install the tbb libs. or tbb is not supported by FreeBSD? In fact, there is a package call tbb-2020.3 in the pkg system of FreeBSD.