-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
cmdstan fails to build #770
Comments
Just to double check, is this on 2.21.0 or |
https://github.com/stan-dev/cmdstan/releases/download/v2.21.0/cmdstan-2.21.0.tar.gz but there's no urgency - the problem I am investigating is why pystan and rstan give different results for the same .stan file with the same seed - they both seem to be using 2.19.1 and I have just built cmdstan 2.19.1 successfully and will continue my investigations with that. I am assuming that cmdstan gives the "ground truth" - we shall see
|
What OS is this? You have issues with You could start to define |
|
This may be an extra data point
|
was this addressed by updating the submodules? |
if you put into your make/local CXXFLAGS+=-D__MINGW32__ then it should work. Can you please try? What is nixpkg? Darwin 17 is Mojave or Catalina? |
I am going to close this stale issue. Do reopen if it was not resolved. |
It is not resolved. |
@rok-cesnovar It is not resolved. Just got this on
|
You have to update your makeflags, we covered this earlier: https://discourse.mc-stan.org/t/stan-in-r-on-powerpc-g5-10-6-ppc-help-needed/25176/29 |
I will try passing it to tests now, thank you! |
@andrjohns By the way,
I.e. it needs |
Followed these posts to identify fixes to compilation errors: https://discourse.mc-stan.org/t/problems-linking-to-tbb-with-latest-stanheaders/15562/33 stan-dev/cmdstan#770 https://discourse.mc-stan.org/t/stan-in-r-on-powerpc-g5-10-6-ppc-help-needed/25176/29
Summary:
clang++ -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT -I stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.69.0 -I stan/lib/stan_math/lib/sundials_4.1.0/include -DBOOST_DISABLE_ASSERTS -c -o bin/cmdstan/stansummary.o src/cmdstan/stansummary.cpp
In file included from src/cmdstan/stansummary.cpp:5:
In file included from stan/src/stan/mcmc/chains.hpp:5:
In file included from stan/lib/stan_math/stan/math/prim/mat.hpp:142:
In file included from stan/lib/stan_math/stan/math/prim/mat/fun/lgamma.hpp:5:
stan/lib/stan_math/stan/math/prim/scal/fun/lgamma.hpp:65:12: error: no member named 'lgamma_r' in the global namespace
return ::lgamma_r(x, &sign);
~~^
stan/lib/stan_math/stan/math/prim/scal/fun/lgamma.hpp:84:12: error: no member named 'lgamma_r' in the global namespace
return ::lgamma_r(x, &sign);
~~^
2 errors generated.
make: *** [make/command:3: bin/cmdstan/stansummary.o] Error 1
Description:
Describe the issue as clearly as possible.
Reproducible Steps:
but I'll need to create a public branch for the modified
nixpkgs
.Current Output:
See above
Expected Output:
I'd expect it to install.
Additional Information:
Current Version:
v2.21.0
The text was updated successfully, but these errors were encountered: