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

Fix documentation for building a Stan program #45

Closed
syclik opened this issue Aug 1, 2014 · 2 comments
Closed

Fix documentation for building a Stan program #45

syclik opened this issue Aug 1, 2014 · 2 comments

Comments

@syclik
Copy link
Member

syclik commented Aug 1, 2014

Jarrett Barber on stan-users reported:

Hi All,

I built cmdstan 2.4.0 on Mac OS X 10.9.4 today seemingly without a hitch (as described in cmdstan-guide-2.4.0.pdf Appdendix B.7.).  As a quick check to see if things are working, I tried to compile the bernoulli file as described in Section 2.4 of the guide.  But, a symbol is not found; see error below.  Note that my installation of cmdstan 2.1.0 still works fine.  It appears that some of the directory structure of the Stan distribution has changed since 2.1.0.  Perhaps the makefile needs updated flag variables to point in the right location of libraries?  Just a guess.  Anyway, your help is appreciated.

Best,

Jarrett

bash-3.2$ pwd
/Applications/cmdstan/stan
bash-3.2$ make src/models/basic_estimators/bernoulli

--- Linking C++ model ---
g++ -I src -isystem lib/eigen_3.2.0 -isystem lib/boost_1.54.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -pipe -DEIGEN_NO_DEBUG -Wno-unused-function -ftemplate-depth-256    -O3 -o src/models/basic_estimators/bernoulli src/models/basic_estimators/bernoulli.o -Lbin -lstan
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/models/basic_estimators/bernoulli] Error 1
bash-3.2$ 

@syclik syclik added this to the v2.4.0++ milestone Aug 1, 2014
@syclik syclik added bug labels Aug 1, 2014
@bob-carpenter
Copy link
Contributor

From Joshua Pritikin:

  • rename bin/stanc inside stan-dev/stan if possible (should be a Stan issue, but I'm dropping it here) to make it clear it's not the same as the one generated by cmdstan

From Soga Shota:

  • could you update the cmdstan manual because it said we should move to stan to build a model?

@syclik
Copy link
Member Author

syclik commented Oct 20, 2014

Fixed with #22.

@syclik syclik closed this as completed Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants