-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stanheaders seems to rely on outdated tbb header file task_scheduler_init.h #1101
Comments
Stan can be compiled against oneTBB by defining TBB_INTERFACE_NEW during compilation (I am not 100% certain that this is available in the current stanheaders, but it was starting in version 2.26 other places) |
Well, to "compile" StanHeaders we have added
Any idea what might be wrong here? Kind regards, Andreas. |
Thanks to Nilesh Patra this was solved in this patch |
Thanks @tillea I think we should add that patch to stan math I'll open up a PR for that |
It’s already in Stan math, it was a backport |
Am Thu, Oct 26, 2023 at 07:21:26AM -0700 schrieb Brian Ward:
It’s already in Stan math, it was a backport
It would be great if it would somehow endup in the tarball that can be downloaded from
https://cran.r-project.org/package=StanHeaders
Kind regards, Andreas.
|
My understanding is that the next version of stanheaders uploaded to cran is intended to be 2.32, which would include this fix |
Summary:
This report is about stanheaders. Actually the issue occures on the Debian packaged source that is available at CRAN. It is using a header file that was available in the Debian packaged TBB library of version 2020.3 but droped in 2021.4.0 (together with the rename to
onetbb
which has broken the oldtbb
interface).My attempt to build
rstanarm
ended up insince the header file
task_scheduler_init.h
does not exist any more inonetbb
since 2021.Description:
The issue becomes visible in different ways when StanHeaders is used. There is a complete build log when trying to build rstanarm (which reproduces the code cited above). You can also have a look at the complete build log od rstan in the CI of the
rstan
Debian package.The following bug reports in Debian seems to be closely related to the outdated tbb interface:
Reproducible Steps:
You should be able to reproduce the issue when creating a Debian
unstable
(==sid
) container / chroot and build the packagesr-cran-rstan
orr-cran-rstanarm
.RStan Version:
StanHeaders
: Version: 2.26.28rstanarm
: 2.21.4 (This has built before for whatever reason. For the moment I can't build it due to the requirement of higher version ofrstan
which does not build)rstan
: 2.32.3R Version:
Debian package of version 4.3.1
Operating System:
Debian unstable
The text was updated successfully, but these errors were encountered: