probcomp / Venturecxx

Primary implementation of the Venture probabilistic programming system
http://probcomp.csail.mit.edu/venture/
GNU General Public License v3.0
28 stars 6 forks source link

Make Venture install cleanly on OSX for users #43

Open axch opened 9 years ago

axch commented 9 years ago

What does this take beyond Issue #42 ?

gregory-marton commented 9 years ago

There is a related bug for bayeslite: https://github.com/mit-probabilistic-computing-project/bayeslite/issues/3 It suggests auto-creating a .app file that can just be copied to someone's system.

axch commented 9 years ago

Seems reasonable to do #42 first, though not strictly required if someone wants to make a .app.

axch commented 9 years ago

Whatever build process we end up advertising, we should probably set up Jenkins to test it on an actual Mac, like Bayeslite.

gregory-marton commented 9 years ago

Hi Jamie,

Would you be able to order another Mac Mini for us, so we can test the Venture mac install separately from the BayesDB one? If we need to do it, can you give us some pointers?

Thanks! Grem

Gregory A. Marton Cell: 617-858-0775 Calendar: http://csail.mit.edu/~gremio/cal Plus: http://goo.gl/Ne09o Web: http://csail.mit.edu/~gremio

On Wed, Nov 11, 2015 at 10:31 AM, axch notifications@github.com wrote:

Whatever build process we end up advertising, we should probably set up Jenkins to test it on an actual Mac, like Bayeslite.

— Reply to this email directly or view it on GitHub https://github.com/probcomp/Venturecxx/issues/43#issuecomment-155817458.

gregory-marton commented 9 years ago

Hi Grem,

Yes, I can order another mac mini for the lab. I will put the order in today and let you know once it is delivered.

Thanks, Jamie

From: gr3mionis@gmail.com [mailto:gr3mionis@gmail.com] On Behalf Of Gregory Marton Sent: Wednesday, November 11, 2015 10:33 AM To: probcomp/Venturecxx reply@reply.github.com; Jamie Insel jinsel@mit.edu Cc: probcomp/Venturecxx Venturecxx@noreply.github.com Subject: Re: [Venturecxx] Make Venture install cleanly on OSX for users (#43)

Hi Jamie,

Would you be able to order another Mac Mini for us, so we can test the Venture mac install separately from the BayesDB one? If we need to do it, can you give us some pointers?

Thanks! Grem

Gregory A. Marton Cell: 617-858-0775 Calendar: http://csail.mit.edu/~gremio/cal Plus: http://goo.gl/Ne09o Web: http://csail.mit.edu/~gremio

On Wed, Nov 11, 2015 at 10:31 AM, axch notifications@github.com<mailto:notifications@github.com> wrote:

Whatever build process we end up advertising, we should probably set up Jenkins to test it on an actual Mac, like Bayeslite.

— Reply to this email directly or view it on GitHubhttps://github.com/probcomp/Venturecxx/issues/43#issuecomment-155817458.

axch commented 8 years ago

There are enough options (a .app, a Dockerfile) that don't involve installation into a bare uncontrolled environment that this should not be viewed as blocked on #42. However, I don't have the Mac-fu to do it.

gregory-marton commented 8 years ago

FYI I tried to run ./check.sh today, with the following failure:

running build
running build_py
generating python/lib/parser/church_prime/grammar.y ->  python/lib/parser/church_prime/grammar.py
/usr/bin/env PYTHONPATH=/Users/probcomp/GoogleDrive/ProbComp/venturecxx/external/lemonade/dist /Users/probcomp/GoogleDrive/ProbComp/venturecxx/external/lemonade/dist/bin/lemonade -s python/lib/parserrParser statistics: 27 terminals, 15 nonterminals, 55 rules
                       102 states, 0 parser tabsgenerating python/lib/parser/venture_script/grammar.y -> python/lib/parser/venture_script/grammar.py
/usr/bin/env PYTHONPATH=/Users/probcomp/GoogleDrive/ProbComp/venturecxx/external/lemonade/dist /Users/probcomp/GoogleDrive/ProbComp/venturecxx/external/lemonade/dist/bin/lemonade -s python/lib/parser/venture_script/grammar.y
Parser statistics: 59 terminals, 34 nonterminals, 90 rules
                   171 states, 0 parser table entries, 0 conflicts
creating build
creating build/lib.macosx-10.6-intel-2.7
creating build/lib.macosx-10.6-intel-2.7/venture
copying python/lib/__init__.py -> build/lib.macosx-10.6-intel-2.7/venture
[copying and creating a bunch of stuff apparently as usual.]
creating build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/args.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/args.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/builtin.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/builtin.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/concrete_trace.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/concrete_trace.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/consistency.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/consistency.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/db.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/db.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/detach.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/detach.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/env.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/env.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/expressions.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/expressions.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernel.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernel.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/indexer.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/indexer.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/lkernel.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/lkernel.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/mixmh.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/mixmh.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/node.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/node.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/particle.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/particle.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/psp.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/psp.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/pytrace.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/pytrace.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/pyutils.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/pyutils.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/regen.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/regen.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/scaffold.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/scaffold.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/serialize.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/serialize.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sp.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sp.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sprecord.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sprecord.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/stop_and_copy.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/stop_and_copy.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/trace.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/trace.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/utils.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/utils.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/value.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/value.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/values.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/values.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/func_mh.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/func_mh.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/mh.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/mh.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/rejection.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/rejection.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/pgibbs.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/pgibbs.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/egibbs.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/egibbs.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/slice.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/slice.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/gkernels/hmc.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/hmc.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/betabernoulli.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/betabernoulli.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/conditional.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/conditional.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
backend/new_cxx/src/values.cxx:37:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  while (p = dynamic_pointer_cast<VenturePair>(rest))
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
backend/new_cxx/src/values.cxx:37:12: note: place parentheses around the assignment to silence this warning
  while (p = dynamic_pointer_cast<VenturePair>(rest))
           ^
         (                                          )
backend/new_cxx/src/values.cxx:37:12: note: use '==' to turn this assignment into an equality comparison
  while (p = dynamic_pointer_cast<VenturePair>(rest))
           ^
           ==
backend/new_cxx/src/values.cxx:162:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
  while (p = dynamic_pointer_cast<VenturePair>(rest))
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
backend/new_cxx/src/values.cxx:162:12: note: place parentheses around the assignment to silence this warning
  while (p = dynamic_pointer_cast<VenturePair>(rest))
           ^
         (                                          )
backend/new_cxx/src/values.cxx:162:12: note: use '==' to turn this assignment into an equality comparison
  while (p = dynamic_pointer_cast<VenturePair>(rest))
           ^
           ==
2 warnings generated.
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/continuous.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/continuous.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/crp.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/crp.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/csp.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/csp.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/deterministic.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/deterministic.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
backend/new_cxx/src/stop_and_copy.cxx:230:7: warning: 'typename' occurs outside of a template [-Wc++11-extensions]
  for(typename vector<pair<VentureValuePtr,set<Node*> > >::const_iterator itr = m.a.begin();
      ^~~~~~~~~
backend/new_cxx/src/stop_and_copy.cxx:236:7: warning: 'typename' occurs outside of a template [-Wc++11-extensions]
  for(typename MapVVPtrInt::const_iterator itr = m.d.begin();
      ^~~~~~~~~
backend/new_cxx/src/stop_and_copy.cxx:247:3: warning: 'typename' occurs outside of a template [-Wc++11-extensions]
  typename ScopesMap::const_iterator itr;
  ^~~~~~~~~
3 warnings generated.
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/dir_mult.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/dir_mult.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/discrete.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/discrete.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/dstructure.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/dstructure.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/eval.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/eval.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/hmm.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/hmm.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/lite.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/lite.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/matrix.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/matrix.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/misc.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/misc.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/msp.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/msp.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/mvn.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/mvn.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/silva_mvn.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/silva_mvn.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/numerical_helpers.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/numerical_helpers.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -DMAJOR_VERSION=0 -DMINOR_VERSION=1 -DREVISION=1 -Ibackend/new_cxx/inc/ -Ibackend/new_cxx/inc/sps/ -Ibackend/new_cxx/inc/infer/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c backend/new_cxx/src/sps/scope.cxx -o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/scope.o -Wall -g -O2 -fPIC -fno-omit-frame-pointer
ccache gcc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g -std=c++11 -stdlib=libc++ build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/args.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/builtin.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/concrete_trace.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/consistency.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/db.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/detach.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/env.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/expressions.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernel.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/indexer.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/lkernel.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/mixmh.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/node.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/particle.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/psp.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/pytrace.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/pyutils.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/regen.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/scaffold.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/serialize.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sp.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sprecord.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/stop_and_copy.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/trace.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/utils.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/value.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/values.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/func_mh.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/mh.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/rejection.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/pgibbs.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/egibbs.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/slice.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/gkernels/hmc.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/betabernoulli.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/conditional.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/continuous.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/crp.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/csp.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/deterministic.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/dir_mult.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/discrete.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/dstructure.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/eval.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/hmm.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/lite.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/matrix.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/misc.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/msp.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/mvn.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/silva_mvn.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/numerical_helpers.o build/temp.macosx-10.6-intel-2.7/backend/new_cxx/src/sps/scope.o -lgsl -lgslcblas -lboost_python-mt -lboost_system-mt -lboost_thread-mt -o build/lib.macosx-10.6-intel-2.7/venture/puma/libpumatrace.so
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
error: command 'ccache' failed with exit status 1

Please note also that my osx is up to date:

venturecxx(master)$ uname -a
Darwin dhcp-18-111-6-48.dyn.MIT.EDU 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
gregory-marton commented 8 years ago

Stackoverflow as usual has a candidate solution, and I'm working on getting Venture to use it:

Whilst you got OS X 10.8 clang will try to build it so that it can be run on other older OS X versions too. Now since -stdlib=libc++ requires a minimum version of 10.7 it won't compile it unless you explicitly tell it that you'll use 10.7 (or higher) as the deployment target by specifying

'MACOSX_DEPLOYMENT_TARGET': '10.7' inside the xcode_settings.

In your case the complete settings should look like:

{
  "targets": [
    {
      "target_name": "package_name",

      'type': 'executable',

      'xcode_settings': {
       'MACOSX_DEPLOYMENT_TARGET': '10.7',

        'OTHER_CFLAGS': [
          "-std=c++11",
          "-stdlib=libc++"
        ],
      },

      "sources": [ "package_src.cpp" ],
    }
  ]
}
riastradh-probcomp commented 8 years ago

From my background understanding of Venture, I suspect we really want -std=c++03, not -std=c++11, and -stdlib=libc++ should be unnecessary -- unless we have decided after all to transition to C++11.

gregory-marton commented 8 years ago

osx issue fixed in 0cfc003.

Related to the original question, we now have pcg-osx-test2.mit.edu all up and running and feeling kind of bored, and we have a working jenkins-driven packaging and test for bayeslite, so this seems unblocked:

axch commented 8 years ago

Program management decision: Do we are about this? If so, who is going to do it and when?

fsaad commented 8 years ago

If so, who is going to do it

There is only one candidate.

gregory-marton commented 8 years ago

@fsaad, I can't imagine who you might mean. :-?

raxraxraxraxrax commented 8 years ago

In theory I could learn how to do it, although that seems less likely to happen. :) This is something I would like as a user, but I don't think is crucial to our research efforts right now. While it's a pet issue for me, I'm not doing research with Venture, so unless/until we have research users who need this, I don't think it's high priority.

axch commented 8 years ago

OK. Status: still theoretically desirable, but punted until there is demand and competence to meet it.