On 3/1/13 10:07 PM, Peter Li wrote:
> Great. Thanks, but for some reason, when I try to run a test with something like:
>
> make CC=clang++ O=0 -j2 test/prob/distributions/univariate/continuous/normal
>
> nothing happens.
When you say "nothing happens", what does the shell print out?
Can you do a clean first and see what happens?
Are you on the master branch or in fvar?
Here's what I get working on the master branch.
~/stan(master)$ git pull
Already up-to-date.
~/stan(master)$ make clean-all
rm -f
rm -f
rm -f -r doc/api
cd src/docs/stan-reference; rm -f *.brf *.aux *.bbl *.blg *.log *.toc *.pdf *.out *.idx *.ilg *.ind *.cb *.cb2 *.upa
rm -f -r models src/stan/model/model_header.hpp.gch src/stan/model/model_header.hpp.pch src/stan/model/model_header.hpp.d
rm -f -r test bin doc
rm -f
rm -f src/test/gm/model_specs/compiled/*.cpp src/test/gm/model_specs/compiled/*.o
src/test/gm/model_specs/compiled/declarations src/test/gm/model_specs/compiled/dims
src/test/gm/model_specs/compiled/function_signatures1 src/test/gm/model_specs/compiled/function_signatures6
src/test/gm/model_specs/compiled/function_signatures7 src/test/gm/model_specs/compiled/function_signatures_bernoulli
src/test/gm/model_specs/compiled/function_signatures_beta
src/test/gm/model_specs/compiled/function_signatures_beta_binomial
src/test/gm/model_specs/compiled/function_signatures_binomial
src/test/gm/model_specs/compiled/function_signatures_categorical
src/test/gm/model_specs/compiled/function_signatures_cauchy
src/test/gm/model_specs/compiled/function_signatures_chi_square
src/test/gm/model_specs/compiled/function_signatures_dirichlet
src/test/gm/model_specs/compiled/function_signatures_double_exponential
src/test/gm/model_specs/compiled/function_signatures_exponential
src/test/gm/model_specs/compiled/function_signatures_gamma
src/test/gm/model_specs/compiled/function_signatures_hypergeometric
src/test/gm/model_specs/compiled/function_signatures_inv_chi_square
src/test/gm/model_specs/compiled/function_signatures_inv_gamma
src/test/gm/model_specs/compiled/function_signatures_logistic
src/test/gm/model_specs/compiled/function_signatures_lognormal
src/test/gm/model_specs/compiled/function_signatures_multinomial
src/test/gm/model_specs/compiled/function_signatures_neg_binomial
src/test/gm/model_specs/compiled/function_signatures_normal
src/test/gm/model_specs/compiled/function_signatures_ordered_logistic
src/test/gm/model_specs/compiled/function_signatures_pareto src/test/gm/model_specs/compiled/function_signatures_poisson
src/test/gm/model_specs/compiled/function_signatures_scaled_inv_chi_square
src/test/gm/model_specs/compiled/function_signatures_student_t_0
src/test/gm/model_specs/compiled/function_signatures_student_t_1
src/test/gm/model_specs/compiled/function_signatures_student_t_2
src/test/gm/model_specs/compiled/function_signatures_student_t_3
src/test/gm/model_specs/compiled/function_signatures_uniform
src/test/gm/model_specs/compiled/function_signatures_weibull
src/test/gm/model_specs/compiled/illegal_generated_quantities src/test/gm/model_specs/compiled/illegal_transformed_data
src/test/gm/model_specs/compiled/illegal_transformed_parameters src/test/gm/model_specs/compiled/mat_assign
src/test/gm/model_specs/compiled/print_chars
cd src/test/agrad/distributions/univariate/continuous; rm -f *_generated_test.cpp
cd src/test/agrad/distributions/univariate/discrete; rm -f *_generated_test.cpp
cd src/test/agrad/distributions/multivariate/continuous; rm -f *_generated_test.cpp
cd src/test/agrad/distributions/multivariate/discrete; rm -f *_generated_test.cpp
~/stan(master)$ make CC=clang++ O=0 -j4 test/prob/distributions/univariate/continuous/normal
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -Wc++11-extensions -I lib/gtest_1.6.0/include -I lib/gtest_1.6.0
lib/gtest_1.6.0/src/gtest-all.cc -o test/gtest.o
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/agrad/agrad.o src/stan/agrad/agrad.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/math/matrix.o src/stan/math/matrix.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/agrad/matrix.o src/stan/agrad/matrix.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/expression_grammar_inst.o
src/stan/gm/grammars/expression_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/program_grammar_inst.o
src/stan/gm/grammars/program_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/statement_2_grammar_inst.o
src/stan/gm/grammars/statement_2_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/statement_grammar_inst.o
src/stan/gm/grammars/statement_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/term_grammar_inst.o
src/stan/gm/grammars/term_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/var_decls_grammar_inst.o
src/stan/gm/grammars/var_decls_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/grammars/whitespace_grammar_inst.o
src/stan/gm/grammars/whitespace_grammar_inst.cpp
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -o bin/stan/gm/ast_def.o src/stan/gm/ast_def.cpp
ar rv test/libgtest.a test/gtest.o
ar: creating archive test/libgtest.a
a - test/gtest.o
ar -rs bin/libstan.a bin/stan/agrad/agrad.o bin/stan/math/matrix.o bin/stan/agrad/matrix.o
ar: creating archive bin/libstan.a
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -c -O0 -Wc++11-extensions -I lib/gtest_1.6.0/include -I lib/gtest_1.6.0
src/test/prob/distributions/univariate/continuous/normal_test.cpp -o test/prob/distributions/univariate/continuous/normal.o
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
clang++ -I src -I lib/eigen_3.1.2 -I lib/boost_1.53.0 -Wall -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE
-Wno-unused-function -Wno-tautological-compare -O0 lib/gtest_1.6.0/src/gtest_main.cc
test/prob/distributions/univariate/continuous/normal.o -Wc++11-extensions -I lib/gtest_1.6.0/include -I lib/gtest_1.6.0
-o test/prob/distributions/univariate/continuous/normal test/libgtest.a -Lbin -lstan -Lbin -lstanc
test/prob/distributions/univariate/continuous/normal
--gtest_output="xml:test/prob/distributions/univariate/continuous/normal.xml"
Running main() from gtest_main.cc
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from ProbDistributionsNormal
[ RUN ] ProbDistributionsNormal.random
[ OK ] ProbDistributionsNormal.random (0 ms)
[ RUN ] ProbDistributionsNormal.isnormal
[ OK ] ProbDistributionsNormal.isnormal (2 ms)
[----------] 2 tests from ProbDistributionsNormal (2 ms total)
[----------] Global test environment tear-down
[==========] 2 tests from 1 test case ran. (2 ms total)
[ PASSED ] 2 tests.
~/stan(master)$
- Bob
P.S. Daniel gave me some fancy shell stuff for my .profile
that prints out which branch I'm on if I'm in a git directory.
If you're interested, I can forward.