You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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$
The text was updated successfully, but these errors were encountered:
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?
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$
The text was updated successfully, but these errors were encountered: