** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/tmp/Rtmp9XgAUX/Rinst40966385420f/rstan/libs/rstan.so':
/tmp/Rtmp9XgAUX/Rinst40966385420f/rstan/libs/rstan.so: undefined symbol: _ZN4stan4lang15indexes_grammarIN5boost6spirit17line_pos_iteratorINSt3__111__wrap_iterIPKcEEEEEC1ERNS0_12variable_mapERNS5_18basic_stringstreamIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS0_18expression_grammarISA_EE
Error: loading failed
clang++-3.8 -std=c++11 -stdlib=libc++ -I/usr/share/R/include -DNDEBUG -I"../inst/include" -I"../inst/include/boost_not_in_BH" -I"`"/usr/lib/R/bin/Rscript" --vanilla -e "cat(system.file('include', 'src', package = 'StanHeaders'))"`" -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppEigen/include" -I"/usr/local/lib/R/site-library/BH/include" -I"/usr/local/lib/R/site-library/StanHeaders/include" -fpic -O2 -D_FORTIFY_SOURCE=2 -Wno-unused-variable -Wno-unused-function -Wno-unused-local-typedefs -c lang__grammars__expression07_grammar_inst.cpp -o lang__grammars__expression07_grammar_inst.o
In file included from chains.cpp:19:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/mean.hpp:4:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4:
In file included from /usr/local/lib/R/site-library/RcppEigen/include/Eigen/Dense:1:
In file included from /usr/local/lib/R/site-library/RcppEigen/include/Eigen/Core:28:
In file included from /usr/include/c++/v1/complex:247:
In file included from /usr/include/c++/v1/sstream:174:
In file included from /usr/include/c++/v1/ostream:138:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
^
/usr/include/c++/v1/string:1326:40: note: previous declaration is here
_LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
^
In file included from lang__ast_def.cpp:18:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/lang/ast_def.cpp:5:
In file included from /usr/local/lib/R/site-library/BH/include/boost/variant/recursive_variant.hpp:36:
In file included from /usr/local/lib/R/site-library/BH/include/boost/variant/variant.hpp:21:
In file included from /usr/local/lib/R/site-library/BH/include/boost/type_index.hpp:29:
In file included from /usr/local/lib/R/site-library/BH/include/boost/type_index/stl_type_index.hpp:22:
In file included from /usr/local/lib/R/site-library/BH/include/boost/type_index/type_index_facade.hpp:14:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
^
/usr/include/c++/v1/string:1326:40: note: previous declaration is here
_LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
^
In file included from lang__grammars__expression07_grammar_inst.cpp:18:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/lang/grammars/expression07_grammar_inst.cpp:1:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/lang/grammars/expression07_grammar_def.hpp:4:
In file included from /usr/local/lib/R/site-library/BH/include/boost/lexical_cast.hpp:32:
In file included from /usr/local/lib/R/site-library/BH/include/boost/lexical_cast/try_lexical_convert.hpp:26:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
^
/usr/include/c++/v1/string:1326:40: note: previous declaration is here
_LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
^
In file included from lang__grammars__bare_type_grammar_inst.cpp:18:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/lang/grammars/bare_type_grammar_inst.cpp:1:
In file included from /usr/local/lib/R/site-library/StanHeaders/include/src/stan/lang/grammars/bare_type_grammar_def.hpp:4:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/include/qi.hpp:16:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/home/qi.hpp:14:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/home/qi/action.hpp:14:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/home/qi/action/action.hpp:14:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/home/qi/meta_compiler.hpp:14:
In file included from /usr/local/lib/R/site-library/BH/include/boost/spirit/home/support/meta_compiler.hpp:19:
In file included from /usr/local/lib/R/site-library/BH/include/boost/proto/proto.hpp:13:
In file included from /usr/local/lib/R/site-library/BH/include/boost/proto/debug.hpp:12:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
/usr/include/c++/v1/string:1938:44: error: 'basic_string<_CharT, _Traits, _Allocator>' is missing exception specification 'noexcept(is_nothrow_copy_constructible<allocator_type>::value)'
basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
^
/usr/include/c++/v1/string:1326:40: note: previous declaration is here
_LIBCPP_INLINE_VISIBILITY explicit basic_string(const allocator_type& __a)
^
1 error generated.
/usr/lib/R/etc/Makeconf:143: recipe for target 'lang__ast_def.o' failed
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This looks like the same error Allen has been patiently tracking down. My guess is that it's with Bob's indexing. How do I recreate this locally?
How do I change compilers for the build? It's working fine with the current version of clang++ for Mac.
What version of g++ doesn't work?Do older versions of g++, say 4.6, 4.7, 4.8, work?
On Mon, Nov 30, 2015 at 5:20 PM, Ben Goodrich <goodri...@gmail.com> wrote:
On Monday, November 30, 2015 at 5:18:31 PM UTC-5, Daniel Lee wrote:How do I change compilers for the build? It's working fine with the current version of clang++ for Mac.
Specify CXX as something other than clang++ in the Makevars file described at
https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuration
Ben
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
I fixed the problem with https://github.com/stan-dev/rstan/commit/d2b24a9113894b7d4c4148bd13c9bb9ef9e180cd so now stanc in rstan can be built.But still the package cannot be built due to the refactor in writer. @syclik, is there more refactor after your initial pull request?
Jiqiang
On Nov 30, 2015, at 5:59 PM, Ben Goodrich <goodri...@gmail.com> wrote:
On Monday, November 30, 2015 at 5:38:36 PM UTC-5, Daniel Lee wrote:What version of g++ doesn't work?Do older versions of g++, say 4.6, 4.7, 4.8, work?
For me it fails with all versions of g++, but only if I use the binary version of R. For my self-compiled R, I can build rstan. So, it may be a Debian bug.
Ben
On Mon, Nov 30, 2015 at 5:20 PM, Ben Goodrich <goodri...@gmail.com> wrote:
On Monday, November 30, 2015 at 5:18:31 PM UTC-5, Daniel Lee wrote:How do I change compilers for the build? It's working fine with the current version of clang++ for Mac.
Specify CXX as something other than clang++ in the Makevars file described at
https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started#configuration
Ben
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm going to bed now. I'll try to have it done in the morning before the meeting.
Ben, I got it working! But I had to comment out the advi stuff. I had to pull it out cause there's a new argument and I'm not quite sure how to do it easily.Hopefully the pull request gets us close: https://github.com/stan-dev/rstan/pull/213
Or... this one could be because the StanHeaders package is out of date.