[R-pkg-team] Bug#1012219: Please adjust StanHeaders to new version of (one)tbb

Andreas Tille andreas at an3as.eu
Fri Aug 12 15:45:20 BST 2022


Ping?  Is there any place where I can open an issue about this?
I've found
   https://github.com/cran/StanHeaders
but this is readonly and has no option to report issues.

Kind regards
     Andreas.

Am Mon, Jul 18, 2022 at 10:45:14AM +0200 schrieb Andreas Tille:
> Control: tags -1 upstream
> Control: forwarded -1 Ben Goodrich <benjamin.goodrich at columbia.edu>
> 
> Hi Ben,
> 
> Debian is migrating from old tbb to onetbb (currently version 2021.5.0).  When
> trying to build rstan version 2.21.5 which includes StanHeaders we get the error
> you can find here in our CI:
> 
>    https://salsa.debian.org/r-pkg-team/r-cran-rstan/-/jobs/3011219
> 
> In file included from /usr/lib/R/site-library/StanHeaders/include/stan/math/prim/core.hpp:4,
>                  from /usr/lib/R/site-library/StanHeaders/include/stan/math/prim/mat.hpp:6,
>                  from /usr/lib/R/site-library/StanHeaders/include/stan/math/rev/mat.hpp:12,
>                  from ./stan/model/log_prob_grad.hpp:4,
>                  from ./stan/model/test_gradients.hpp:7,
>                  from ./stan/services/diagnose/diagnose.hpp:10,
>                  from stan_fit.cpp:33:
> /usr/lib/R/site-library/StanHeaders/include/stan/math/prim/core/init_threadpool_tbb.hpp:9:10: fatal error: tbb/task_scheduler_init.h: No such file or directory
>     9 | #include <tbb/task_scheduler_init.h>
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> 
> It seems StanHeaders need to be adapted to onetbb.
> 
> There is a tbb -> onetbb transition guide:
> https://oneapi-src.github.io/oneTBB/main/tbb_userguide/Migration_Guide.html
> 
> Hope this helps
> 
>       Andreas.
> 
> -- 
> http://fam-tille.de
> 
> 

-- 
http://fam-tille.de



More information about the R-pkg-team mailing list