Error when installing new version of stan

37 views
Skip to first unread message

Yuanjun Gao

unread,
Dec 29, 2012, 8:47:38 PM12/29/12
to stan-...@googlegroups.com
Hi! Hope you have a great holiday.

Maybe this is a silly question because I haven't tried to install stan for long... But today after I used the command-line access to get the newest version


I cannot successfully make the library using the command

make bin/libstan.a

 (I am supposed to make the library and the model parser and code generator before proceeding to compile models, right?)

the error is as follows:

i686-apple-darwin11-llvm-g++-4.2: src/stan/model/model_header.hpp: linker input file unused because linking not done
g++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.52.0 -O3 -Wall -Wextra -pedantic -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -Wno-unused-function   -c -o bin/stan/agrad/agrad.o src/stan/agrad/agrad.cpp
In file included from src/stan/agrad/agrad.cpp:4:
src/stan/agrad/agrad.hpp:348: error: ISO C++ does not support ‘long long’
src/stan/agrad/agrad.hpp:358: error: ISO C++ does not support ‘long long’
src/stan/agrad/agrad.hpp: In constructor ‘stan::agrad::<unnamed>::op_vector_vari::op_vector_vari(double, const std::vector<stan::agrad::var, std::allocator<stan::agrad::var> >&)’:
src/stan/agrad/agrad.hpp:757: error: ISO C++ forbids variable-size array
src/stan/agrad/agrad.hpp: At global scope:
src/stan/agrad/agrad.hpp:1665: warning: unused parameter ‘dummy’
src/stan/agrad/agrad.hpp:1702: warning: unused parameter ‘dummy’
make: *** [bin/stan/agrad/agrad.o] Error 1

Without making the library, I cannot run the basic model with "make src/models/basic_estimators/bernoulli" and the error is very long...

Could you help me figure out what's wrong with the installation. Thank you very much.

Jiqiang Guo

unread,
Dec 29, 2012, 8:57:51 PM12/29/12
to stan-...@googlegroups.com
It is just that -pedantic was added to the makefile.  I push a change to leave that out.  Please do 'git pull' to get that change, you should be fine to go. 

--
Jiqiang 

--
 
 

Yuanjun Gao

unread,
Dec 29, 2012, 9:06:29 PM12/29/12
to stan-...@googlegroups.com
Thanks. I do succeed although there are a lot of warnings when making the library.

btw, what do you mean by "-pedantic"?

Best,
Yuanjun

--
 
 

Jiqiang Guo

unread,
Dec 29, 2012, 9:28:25 PM12/29/12
to stan-...@googlegroups.com
It is a compiler flag: for example, it is in the output you have posted.
g++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.52.0 -O3 -Wall -Wextra -pedantic -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -Wno-unused-function   -c -o bin/stan/agrad/agrad.o src/stan/agrad/agrad.cpp
--
Jiqiang


--
 
 

Yuanjun Gao

unread,
Dec 29, 2012, 10:44:03 PM12/29/12
to stan-...@googlegroups.com
OK, I see. Thank you very much for your help.

Best.
Yuanjun
--
 
 

Reply all
Reply to author
Forward
0 new messages