Closed john-bodley closed 2 years ago
The error mentions x86_64-linux-gnu-gcc, which sounds like something installed via conda or something other than apt. If you run x86_64-linux-gnu-gcc —version
I suspect it will be 7.
I believe this is controlled by the CC environment variable, so you may have success with CC=gcc pip …
PyStan 2 is no longer in development, so I am closing this issue. If you need further assistance you can use the Stan forums or slack channel
You can also see errors like: internal compiler error: Killed (program cc1plus)
when you have insufficient RAM available in the system. So keep an eye on the memory usage while installing and if it's hitting at/near 100%, then that might be your issue
Summary:
Build error when trying to install
pystan
using Python 3.9 on Ubuntu 18.04.Description:
I'm running into a very similar issue to this when trying to install
pystan
using Python 3.9 on Ubuntu 18.04 (non-supported). Note using the same build environment previously worked when using Python 3.8.I initially thought the error (see below) might be because I wasn't using a C++14 compatible C++ compiler, though even after installing
gcc-9
—which is listed as a compatible compiler—the problem persisted and thus I'm somewhat at a loss as to how to resolve the issue.Reproducible Steps:
Current Output:
Note I'm somewhat perplex why the URL mentions
gcc-7
where clearlygcc-9
is the manually set defaultgcc
compiler.Expected Output:
The build of the
stan
library should complete successfully.Additional Information:
N/A.
Current Version:
v2.29.2