Skip to content
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

rstan will not build #5

Open
sellorm opened this issue Feb 6, 2023 · 4 comments
Open

rstan will not build #5

sellorm opened this issue Feb 6, 2023 · 4 comments

Comments

@sellorm
Copy link
Contributor

sellorm commented Feb 6, 2023

This has resulted in several packages being temporarily removed from the r4pi repo.

This includes rstan itself as well as some packages that depend on it:

  • brms
  • prophet
  • rstanarm
  • shinystan

These packages have been moved to the [bench] section of packages.cfg until the build issue is resolved.

@andresrcs
Copy link
Contributor

Have you tried adding swap memory? Recently I tried to compile rstan on Posit Cloud and compilation runed out of RAM even with 8GB, I didn't found out the minimum requiered because I got frustrated and simply maxed out the project to 16GB and compilation worked

@sellorm
Copy link
Contributor Author

sellorm commented Feb 7, 2023

That is most likely the problem, yes. I've just not had chance to do anything about it yet.
It's useful that you've seen similar behaviour elsewhere though. Hopefully it'll be a simple fix.

@remlapmot
Copy link

Thanks for this amazing project.

The problem building rstan on armhf/armv7l might not be solved by using a swap file because it's failing on all the Debian 32 bit builds.

There is a tracking issue in the rstan repo at stan-dev/rstan#1032.

It seems that one of the cpp files in the package now takes alot of memory to compile (I don't know if there is some 32 bit limitation it exceeds).

You can see the failed 32 bit Debian builds here https://packages.debian.org/sid/r-cran-rstan (screenshot of table at the bottom of that page)
2023-03-04 21_27_55-Debian -- Details of package r-cran-rstan in sid

In the issue the rstan maintainers seem to suggest they are hoping to remove the offending file in a future version, so maybe it will build on 32 bit again then.

(And I tried on my Pi with 8GB RAM but it also failed.)

@andresrcs
Copy link
Contributor

It turns out, at least on RPi OS 32-bit, no single process can use more than 3GB of RAM so most likely that is the limiting factor considering that it takes >8GB on 64-bit systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants