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

make examples/bernoulli/bernoulli fails #771

Closed
idontgetoutmuch opened this issue Nov 21, 2019 · 5 comments
Closed

make examples/bernoulli/bernoulli fails #771

idontgetoutmuch opened this issue Nov 21, 2019 · 5 comments

Comments

@idontgetoutmuch
Copy link

Summary:

[nix-shell:~/cmdstan]$ make -n examples/bernoulli/bernoulli
make: *** No rule to make target 'examples/bernoulli/bernoulli'.  Stop.

Current Version:

[nix-shell:~/cmdstan]$ which -a stanc
/nix/store/mzaa2hrz8f7cqiqyj6djj9f2fpx3pbb5-cmdstan-2.19.1/bin/stanc

[nix-shell:~/cmdstan]$ stanc --version
stanc version 2.19.1
@wds15
Copy link
Contributor

wds15 commented Nov 21, 2019

make -n 4 the/model/you/want/tocompile

@idontgetoutmuch
Copy link
Author

idontgetoutmuch commented Nov 21, 2019

??? - I thought -n was the same as --dry-run.

[nix-shell:~/cmdstan]$ make -n 4 examples/bernoulli/bernoulli
make: *** No rule to make target '4'.  Stop.

@seantalts
Copy link
Member

seantalts commented Nov 21, 2019 via email

@mitzimorris
Copy link
Member

yes -n is the same as --dry-run.

perhaps make is not finding the right makefile?
try this:

make --debug=a | head -20

output on my machine:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `makefile'...
Reading makefile `/Users/mitzi/.config/stan/make.local' (search path) (don't care) (no ~ expansion)...
Reading makefile `make/local' (search path) (don't care) (no ~ expansion)...
Reading makefile `stan/lib/stan_math/make/compiler_flags' (search path) (don't care) (no ~ expansion)...
Reading makefile `stan/lib/stan_math/make/dependencies' (search path) (don't care) (no ~ expansion)...
Reading makefile `stan/lib/stan_math/make/libraries' (search path) (don't care) (no ~ expansion)...
Reading makefile `make/stanc' (search path) (no ~ expansion)...
Reading makefile `make/program' (search path) (no ~ expansion)...
Reading makefile `make/tests' (search path) (no ~ expansion)...
Reading makefile `make/command' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `make/command'.

@idontgetoutmuch
Copy link
Author

Thanks for the quick responses :) - I don't know why but it is now working. It might have been that I was trying to use a different C++ compiler or that the submodules hadn't populated when I thought they had - this seemed to do the trick

bash-3.2$ git submodule update --init --recursive
Cloning into '/Users/dom/cmdstan/stan/lib/stan_math'...
Submodule path 'stan/lib/stan_math': checked out '858dd450f1c30e252e45977a92e7148ee380bb72'

yizhang-yiz pushed a commit to metrumresearchgroup/cmdstan that referenced this issue Apr 19, 2021
cf466ae5d2 Merge branch 'master' into torsten-develop
defd4a9904 fix coupled ode solver signature
c02120b132 Merge pull request stan-dev#778 from nhuurre/lupdf-inlining
2c18a32595 add transformed param test
8188136658 Merge pull request stan-dev#777 from stan-dev/stancjs_no_prints
2b953204c3 cleanup logging in tests
485efc55ea wrapped remaining warning prints in JSON.stringify
b1d953bd51 wrap warning prints in stringify
853f98ffb5 Jenkins node version prefers long lines in the test output for some reason
0ef87308d9 change language
a7d27448eb expand the warnings test
a16b8006ac fix inlining of unnormalized functions
30ba3c7f1a Fix format
1f060f8bf7 Don't include empty strings for no warnings.
dc5de70719 Fix tests and format
b85f4413fe Refactor warnings and try to make no phases print
f019614d66 Refactor warnings-related stuff out into a new Warnings module
f61d726999 Capture Parsing syntax error exceptions.
df595ebfe6 Have deprecation analysis return errors and show how to print them
3c72a3e788 Add js tests from Rok
9df5448124 Merge pull request stan-dev#773 from spinkney/patch-1
6960226eca minor fixes dune runtest & promote
c6eefc7c3c Added stan code
82a27baa91 Merge pull request stan-dev#771 from nhuurre/parser-error-location
e88fefa4f0 Add genearlized inverse
fe35f127a9 move parsing error location
d01ecd3ffb Merge pull request stan-dev#767 from nhuurre/transformed-params-lp
2fb0000fe6 Merge pull request stan-dev#768 from nhuurre/cleanup-indexed-typecheck
8d0142fc44 disallow _lupdf calls in in _lp functions
10991999ca Merge pull request stan-dev#761 from SteveBronder/feature/reader-access-impls
ccfa4cb7b2 simplify indexed expression type inference
d4d99d8efe Merge pull request stan-dev#766 from nhuurre/vector-builder-comma-init
d21cb69a37 allow lp functions in transformed parameters
45e41ef01e avoid copy in FnMakeRowVec
914583e089 update templates
b11d68cdd9 fix spacing
142bf0263a set final for transform_inits
355e7dd0b6 remove final from non-virtual functions
122aebab27 fix formatting
3fbb042710 fix using and update to upstream master
188afd5301 Merge remote-tracking branch 'upstream/master' into feature/reader-access-impls
df9375a553 Merge pull request stan-dev#760 from stan-dev/fix_install_instructions
969756c1d4 adds impl functions for virtual methods which use reader type so that eigen matrices can be passed through
ec9bbd0afc fix install instructions
4c78900a64 Merge pull request stan-dev#726 from adamhaber/add-function-deprectation-warning
2862f02805 added tests
11a4243e02 refactor emit_warnings
6c905789bf renamed functions
16d90cee3b update ode warning, small refactor
dcb6192810 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
f593bcd0e4 merge master
b6150b7cdf removed duplicate logic
4431bc8177 refactor deprecated_userdefined
7f3556aa22 make format
da0f36857e update expected
752914c9a0 emit warning using fold instead of map
bc5e971880 more consistent punctuation
02110ff43d updated expected
2d68bc449f changed warnings to one-liners
4eff2327f9 additional deprecated functions
dac37429f5 removed dup replace_suffix
57ed5afc07 better use of let open String in
0f0d00607f use untyped_statement in mli
c8dfbd4359 removed sexp
87994a49e0 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
abcff23ba2 Updated expected files
57dfd27ecd Merge branch 'cleanup_deprecated_in_distribution_tests' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
649fe3c0fb Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
3ca74030d2 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
db81978577 removed copied comments
0349a8c13d add dep. analysis module

git-subtree-dir: stanc3
git-subtree-split: cf466ae5d210b5604d88dd7cb3947ad44822290a
yizhang-yiz pushed a commit to metrumresearchgroup/cmdstan that referenced this issue Apr 19, 2021
REVERT: cf466ae5d2 Merge branch 'master' into torsten-develop
REVERT: c02120b132 Merge pull request stan-dev#778 from nhuurre/lupdf-inlining
REVERT: 2c18a32595 add transformed param test
REVERT: 8188136658 Merge pull request stan-dev#777 from stan-dev/stancjs_no_prints
REVERT: 2b953204c3 cleanup logging in tests
REVERT: 485efc55ea wrapped remaining warning prints in JSON.stringify
REVERT: b1d953bd51 wrap warning prints in stringify
REVERT: 853f98ffb5 Jenkins node version prefers long lines in the test output for some reason
REVERT: 0ef87308d9 change language
REVERT: a7d27448eb expand the warnings test
REVERT: a16b8006ac fix inlining of unnormalized functions
REVERT: 30ba3c7f1a Fix format
REVERT: 1f060f8bf7 Don't include empty strings for no warnings.
REVERT: dc5de70719 Fix tests and format
REVERT: b85f4413fe Refactor warnings and try to make no phases print
REVERT: f019614d66 Refactor warnings-related stuff out into a new Warnings module
REVERT: f61d726999 Capture Parsing syntax error exceptions.
REVERT: df595ebfe6 Have deprecation analysis return errors and show how to print them
REVERT: 3c72a3e788 Add js tests from Rok
REVERT: 9df5448124 Merge pull request stan-dev#773 from spinkney/patch-1
REVERT: 6960226eca minor fixes dune runtest & promote
REVERT: c6eefc7c3c Added stan code
REVERT: 82a27baa91 Merge pull request stan-dev#771 from nhuurre/parser-error-location
REVERT: e88fefa4f0 Add genearlized inverse
REVERT: fe35f127a9 move parsing error location
REVERT: d01ecd3ffb Merge pull request stan-dev#767 from nhuurre/transformed-params-lp
REVERT: 2fb0000fe6 Merge pull request stan-dev#768 from nhuurre/cleanup-indexed-typecheck
REVERT: 8d0142fc44 disallow _lupdf calls in in _lp functions
REVERT: 10991999ca Merge pull request stan-dev#761 from SteveBronder/feature/reader-access-impls
REVERT: ccfa4cb7b2 simplify indexed expression type inference
REVERT: d4d99d8efe Merge pull request stan-dev#766 from nhuurre/vector-builder-comma-init
REVERT: d21cb69a37 allow lp functions in transformed parameters
REVERT: 45e41ef01e avoid copy in FnMakeRowVec
REVERT: 914583e089 update templates
REVERT: b11d68cdd9 fix spacing
REVERT: 142bf0263a set final for transform_inits
REVERT: 355e7dd0b6 remove final from non-virtual functions
REVERT: 122aebab27 fix formatting
REVERT: 3fbb042710 fix using and update to upstream master
REVERT: 188afd5301 Merge remote-tracking branch 'upstream/master' into feature/reader-access-impls
REVERT: df9375a553 Merge pull request stan-dev#760 from stan-dev/fix_install_instructions
REVERT: 969756c1d4 adds impl functions for virtual methods which use reader type so that eigen matrices can be passed through
REVERT: ec9bbd0afc fix install instructions
REVERT: 4c78900a64 Merge pull request stan-dev#726 from adamhaber/add-function-deprectation-warning
REVERT: 2862f02805 added tests
REVERT: 11a4243e02 refactor emit_warnings
REVERT: 6c905789bf renamed functions
REVERT: 16d90cee3b update ode warning, small refactor
REVERT: dcb6192810 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
REVERT: f593bcd0e4 merge master
REVERT: b6150b7cdf removed duplicate logic
REVERT: 4431bc8177 refactor deprecated_userdefined
REVERT: 7f3556aa22 make format
REVERT: da0f36857e update expected
REVERT: 752914c9a0 emit warning using fold instead of map
REVERT: bc5e971880 more consistent punctuation
REVERT: 02110ff43d updated expected
REVERT: 2d68bc449f changed warnings to one-liners
REVERT: 4eff2327f9 additional deprecated functions
REVERT: dac37429f5 removed dup replace_suffix
REVERT: 57ed5afc07 better use of let open String in
REVERT: 0f0d00607f use untyped_statement in mli
REVERT: c8dfbd4359 removed sexp
REVERT: 87994a49e0 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
REVERT: abcff23ba2 Updated expected files
REVERT: 57dfd27ecd Merge branch 'cleanup_deprecated_in_distribution_tests' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
REVERT: 649fe3c0fb Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
REVERT: 3ca74030d2 Merge branch 'master' of https://github.com/stan-dev/stanc3 into add-function-deprectation-warning
REVERT: db81978577 removed copied comments
REVERT: 0349a8c13d add dep. analysis module

git-subtree-dir: stanc3
git-subtree-split: defd4a99040c99792ebfb340435b2f8064229cbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants