When I build Stan using Xcode 5 on a fresh install of Mavericks, I get
the following warnings
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
-Wno-unused-function -ftemplate-depth-256 -c -O3 -o
bin/stan/agrad/rev/var_stack.o src/stan/agrad/rev/var_stack.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O3 -o
bin/stan/math/matrix.o src/stan/math/matrix.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O3 -o
bin/stan/agrad/matrix.o src/stan/agrad/matrix.cpp
ar -rs bin/libstan.a bin/stan/agrad/rev/var_stack.o
bin/stan/math/matrix.o bin/stan/agrad/matrix.o
ar: creating archive bin/libstan.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: bin/libstan.a(matrix.o) has no symbols
scotts-air:stan_home sab48$ sudo make bin/stanc
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
-Wno-unused-function -ftemplate-depth-256 -c -O3 -o
bin/stan/command/stanc.o src/stan/command/stanc.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/expression_grammar_inst.o
src/stan/gm/grammars/expression_grammar_inst.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/program_grammar_inst.o
src/stan/gm/grammars/program_grammar_inst.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/statement_2_grammar_inst.o
src/stan/gm/grammars/statement_2_grammar_inst.cpp
In file included from src/stan/gm/grammars/statement_2_grammar_inst.cpp:1:
src/stan/gm/grammars/statement_2_grammar_def.hpp:120:18: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = add_conditional_condition_f(_val,_1,
^
1 warning generated.
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/statement_grammar_inst.o
src/stan/gm/grammars/statement_grammar_inst.cpp
In file included from src/stan/gm/grammars/statement_grammar_inst.cpp:1:
src/stan/gm/grammars/statement_grammar_def.hpp:549:16: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = validate_int_expr2_f(_1,boost::phoenix::ref(error_msgs_))]
^
src/stan/gm/grammars/statement_grammar_def.hpp:588:18: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = validate_allow_sample_f(_r1,
^
2 warnings generated.
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/term_grammar_inst.o
src/stan/gm/grammars/term_grammar_inst.cpp
In file included from src/stan/gm/grammars/term_grammar_inst.cpp:1:
src/stan/gm/grammars/term_grammar_def.hpp:456:38: warning: multiple unsequenced
modifications to '_val' [-Wunsequenced]
[_val = multiplication(_val,_1,
^
src/stan/gm/grammars/term_grammar_def.hpp:476:29: warning: multiple unsequenced
modifications to '_val' [-Wunsequenced]
[_val = negate_expr_f(_1,boost::phoenix::ref(error...
^
src/stan/gm/grammars/term_grammar_def.hpp:488:22: warning: multiple unsequenced
modifications to '_val' [-Wunsequenced]
[_val = add_expression_dimss_f(_val, _1, _pass,
^
src/stan/gm/grammars/term_grammar_def.hpp:501:37: warning: multiple unsequenced
modifications to '_val' [-Wunsequenced]
| fun_r(_r1) [_val = set_fun_type_named_f(_1,_r1,_pass,...
^
4 warnings generated.
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/var_decls_grammar_inst.o
src/stan/gm/grammars/var_decls_grammar_inst.cpp
In file included from src/stan/gm/grammars/var_decls_grammar_inst.cpp:1:
src/stan/gm/grammars/var_decls_grammar_def.hpp:636:19: warning: multiple
unsequenced modifications to '_val' [-Wunsequenced]
[_val = add_var_f(_1,boost::phoenix::ref(var_map_),_a,_r2,
^
src/stan/gm/grammars/var_decls_grammar_def.hpp:727:18: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = validate_int_expr_f(_1,boost::phoenix::ref(error_msgs_))]
^
src/stan/gm/grammars/var_decls_grammar_def.hpp:785:18: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = validate_int_expr_f(_1,boost::phoenix::ref(error_msgs_))]
^
src/stan/gm/grammars/var_decls_grammar_def.hpp:841:23: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[ _pass = set_int_range_lower_f(_val,_1,
^
src/stan/gm/grammars/var_decls_grammar_def.hpp:865:23: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[ _pass = set_double_range_lower_f(_val,_1,
^
src/stan/gm/grammars/var_decls_grammar_def.hpp:898:16: warning: multiple
unsequenced modifications to '_pass' [-Wunsequenced]
[_pass = validate_int_expr_f(_1,boost::phoenix::ref(error_msgs_))]
^
6 warnings generated.
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/grammars/whitespace_grammar_inst.o
src/stan/gm/grammars/whitespace_grammar_inst.cpp
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
-Wno-unused-function -ftemplate-depth-256 -c -O0 -o
bin/stan/gm/ast_def.o src/stan/gm/ast_def.cpp
ar -rs bin/libstanc.a bin/stan/gm/grammars/expression_grammar_inst.o
bin/stan/gm/grammars/program_grammar_inst.o
bin/stan/gm/grammars/statement_2_grammar_inst.o
bin/stan/gm/grammars/statement_grammar_inst.o
bin/stan/gm/grammars/term_grammar_inst.o
bin/stan/gm/grammars/var_decls_grammar_inst.o
bin/stan/gm/grammars/whitespace_grammar_inst.o bin/stan/gm/ast_def.o
ar: creating archive bin/libstanc.a
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
-Wno-unused-function -ftemplate-depth-256 -c -O3 -o
bin/stan/command/print.o src/stan/command/print.cpp
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
-Wno-unused-function -ftemplate-depth-256 -O0 -o bin/print
bin/stan/command/print.o -Lbin -lstan
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
-Wno-unused-function -ftemplate-depth-256 -O0 -o bin/stanc
bin/stan/command/stanc.o -Lbin -lstanc: