{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/rstan/issues/211","labels_url":"https://api.github.com/repos/stan-dev/rstan/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/rstan/issues/211/comments","events_url":"https://api.github.com/repos/stan-dev/rstan/issues/211/events","html_url":"https://github.com/stan-dev/rstan/issues/211","id":107246703,"number":211,"title":"Compilation error","user":{"login":"diengadji","id":9307625,"avatar_url":"https://avatars.githubusercontent.com/u/9307625?v=3","gravatar_id":"","url":"https://api.github.com/users/diengadji","html_url":"https://github.com/diengadji","followers_url":"https://api.github.com/users/diengadji/followers","following_url":"https://api.github.com/users/diengadji/following{/other_user}","gists_url":"https://api.github.com/users/diengadji/gists{/gist_id}","starred_url":"https://api.github.com/users/diengadji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diengadji/subscriptions","organizations_url":"https://api.github.com/users/diengadji/orgs","repos_url":"https://api.github.com/users/diengadji/repos","events_url":"https://api.github.com/users/diengadji/events{/privacy}","received_events_url":"https://api.github.com/users/diengadji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T17:46:51Z","updated_at":"2015-09-18T17:54:52Z","closed_at":null,"body":"Hi,\r\n\r\nOperating System: OS X Yosemite 10.10.5\r\nStanHeaders version: 2.8.0\r\nrstan version: 2.7.0.1\r\n\r\nWhen I run stan(arguments), I get the following compilation error:\r\n\r\nError in compileCode(f, code, language = language, verbose = verbose) : \r\n  Compilation ERROR, function(s)/method(s) not created! clang: warning: optimization flag '-ffat-lto-objects' is not supported\r\nclang: warning: argument unused during compilation: '-ffat-lto-objects'\r\nIn file included from file91515d85a54.cpp:316:\r\nIn file included from /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/rstaninc.hpp:3:\r\nIn file included from /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/stan_fit.hpp:80:\r\n/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/io/rlist_ref_var_context_factory.hpp:4:10: fatal error: 'stan/interface/var_context_factory/dump_factory.hpp' file not found\r\n#include <stan/interface/var_context_factory/dump_factory.hpp>\r\n         ^\r\n1 error generated.\r\nmake: *** [file91515d85a54.o] Error 1\r\nIn addition: Warning message:\r\nrunning command '/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file91515d85a54.cpp 2> file91515d85a54.cpp.err.txt' had status 1 \r\n\r\n\r\nI think there is one header file that is not being linked properly. \r\n\r\nThank you for any help on this!"},"comment":{"url":"https://api.github.com/repos/stan-dev/rstan/issues/comments/141519556","html_url":"https://github.com/stan-dev/rstan/issues/211#issuecomment-141519556","issue_url":"https://api.github.com/repos/stan-dev/rstan/issues/211","id":141519556,"user":{"login":"jgabry","id":7796803,"avatar_url":"https://avatars.githubusercontent.com/u/7796803?v=3","gravatar_id":"","url":"https://api.github.com/users/jgabry","html_url":"https://github.com/jgabry","followers_url":"https://api.github.com/users/jgabry/followers","following_url":"https://api.github.com/users/jgabry/following{/other_user}","gists_url":"https://api.github.com/users/jgabry/gists{/gist_id}","starred_url":"https://api.github.com/users/jgabry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgabry/subscriptions","organizations_url":"https://api.github.com/users/jgabry/orgs","repos_url":"https://api.github.com/users/jgabry/repos","events_url":"https://api.github.com/users/jgabry/events{/privacy}","received_events_url":"https://api.github.com/users/jgabry/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T17:54:52Z","updated_at":"2015-09-18T17:54:52Z","body":"StanHeaders 2.8.0 isn't compatible with RStan < 2.8.0. I believe RStan\n2.8.0 will be submitted to CRAN today, which should solve this problem.\nUntil then you could try installing the previous StanHeaders:\n\ndevtools::install_url(\"https://cran.rproject.org/src/contrib/Archive/StanHeaders/StanHeaders_2.7.0.tar.gz\")\ninstall.packages(\"rstan\", dependencies = TRUE) # from CRAN\n\n Alternatively, you could keep the new StanHeaders and try installing RStan\nfrom GitHub:\n\ninstall.packages(\"StanHeaders\") # from CRAN\ndevtools::install_github(\"stan-dev/rstan\", subdir = \"rstan/rstan\", ref\n= \"develop\")\n\n\nOn Fri, Sep 18, 2015 at 1:46 PM, diengadji <notifications@github.com> wrote:\n\n> Hi,\n>\n> Operating System: OS X Yosemite 10.10.5\n> StanHeaders version: 2.8.0\n> rstan version: 2.7.0.1\n>\n> When I run stan(arguments), I get the following compilation error:\n>\n> Error in compileCode(f, code, language = language, verbose = verbose) :\n> Compilation ERROR, function(s)/method(s) not created! clang: warning:\n> optimization flag '-ffat-lto-objects' is not supported\n> clang: warning: argument unused during compilation: '-ffat-lto-objects'\n> In file included from file91515d85a54.cpp:316:\n> In file included from\n> /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/rstaninc.hpp:3:\n> In file included from\n> /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/stan_fit.hpp:80:\n> /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rstan/include/rstan/io/rlist_ref_var_context_factory.hpp:4:10:\n> fatal error: 'stan/interface/var_context_factory/dump_factory.hpp' file not\n> found\n> #include\n> ^\n> 1 error generated.\n> make: *** [file91515d85a54.o] Error 1\n> In addition: Warning message:\n> running command '/Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB\n> file91515d85a54.cpp 2> file91515d85a54.cpp.err.txt' had status 1\n>\n> I think there is one header file that is not being linked properly.\n>\n> Thank you for any help on this!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/stan-dev/rstan/issues/211>.\n>\n"}}