{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/cmdstan/issues/610","repository_url":"https://api.github.com/repos/stan-dev/cmdstan","labels_url":"https://api.github.com/repos/stan-dev/cmdstan/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/cmdstan/issues/610/comments","events_url":"https://api.github.com/repos/stan-dev/cmdstan/issues/610/events","html_url":"https://github.com/stan-dev/cmdstan/issues/610","id":314319118,"number":610,"title":"error: unable to open output file 'stan/src/stan/model/model_header.hpp.gch': 'Permission denied'","user":{"login":"idontgetoutmuch","id":1550265,"avatar_url":"https://avatars0.githubusercontent.com/u/1550265?v=4","gravatar_id":"","url":"https://api.github.com/users/idontgetoutmuch","html_url":"https://github.com/idontgetoutmuch","followers_url":"https://api.github.com/users/idontgetoutmuch/followers","following_url":"https://api.github.com/users/idontgetoutmuch/following{/other_user}","gists_url":"https://api.github.com/users/idontgetoutmuch/gists{/gist_id}","starred_url":"https://api.github.com/users/idontgetoutmuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idontgetoutmuch/subscriptions","organizations_url":"https://api.github.com/users/idontgetoutmuch/orgs","repos_url":"https://api.github.com/users/idontgetoutmuch/repos","events_url":"https://api.github.com/users/idontgetoutmuch/events{/privacy}","received_events_url":"https://api.github.com/users/idontgetoutmuch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-04-14T10:42:57Z","updated_at":"2018-04-16T18:18:15Z","closed_at":null,"author_association":"NONE","body":"#### Summary:\r\n`cmdstan` tries to create a file where it is installed but on my computer that is read only.\r\n\r\n#### Description:\r\n\r\n```\r\nbin/stanc  /var/folders/h1/bkwn2ct12hvb6__dzrk5gwx80000gn/T/stanhs/s3849448837379259560.stan --o=/var/folders/h1/bkwn2ct12hvb6__dzrk5gwx80000gn/T/stanhs/s3849448837379259560.hpp\r\nModel name=s3849448837379259560_model\r\nInput file=/var/folders/h1/bkwn2ct12hvb6__dzrk5gwx80000gn/T/stanhs/s3849448837379259560.stan\r\nOutput file=/var/folders/h1/bkwn2ct12hvb6__dzrk5gwx80000gn/T/stanhs/s3849448837379259560.hpp\r\nCompiling pre-compiled header\r\nc++ -Wall -I . -isystem stan/lib/stan_math/lib/eigen_3.3.3 -isystem stan/lib/stan_math/lib/boost_1.64.0 -isystem stan/lib/stan_math/lib/cvodes_2.9.0/include -std=c++1y -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -Wno-unused-function -Wno-uninitialized -I src -isystem stan/src -isystem stan/lib/stan_math/ -DFUSION_MAX_VECTOR_SIZE=12 -Wno-unused-local-typedefs -DEIGEN_NO_DEBUG -DNO_FPRINTF_OUTPUT -pipe  -c -O3 stan/src/stan/model/model_header.hpp -o stan/src/stan/model/model_header.hpp.gch\r\nerror: unable to open output file 'stan/src/stan/model/model_header.hpp.gch': 'Permission denied'\r\n1 error generated.\r\n```\r\n\r\n#### Reproducible Steps:\r\n\r\nInstall stan as another user and then try to use the installation.\r\n\r\n#### Current Output:\r\n\r\nSee above.\r\n\r\n#### Expected Output:\r\n\r\nAny stan should compile.\r\n\r\n#### Additional Information:\r\n\r\nrStan does not exhibit this problem so maybe cmdstan can copy this?\r\n\r\n#### Current Version:\r\nv2.17.1"},"comment":{"url":"https://api.github.com/repos/stan-dev/cmdstan/issues/comments/381700528","html_url":"https://github.com/stan-dev/cmdstan/issues/610#issuecomment-381700528","issue_url":"https://api.github.com/repos/stan-dev/cmdstan/issues/610","id":381700528,"user":{"login":"seantalts","id":805356,"avatar_url":"https://avatars1.githubusercontent.com/u/805356?v=4","gravatar_id":"","url":"https://api.github.com/users/seantalts","html_url":"https://github.com/seantalts","followers_url":"https://api.github.com/users/seantalts/followers","following_url":"https://api.github.com/users/seantalts/following{/other_user}","gists_url":"https://api.github.com/users/seantalts/gists{/gist_id}","starred_url":"https://api.github.com/users/seantalts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seantalts/subscriptions","organizations_url":"https://api.github.com/users/seantalts/orgs","repos_url":"https://api.github.com/users/seantalts/repos","events_url":"https://api.github.com/users/seantalts/events{/privacy}","received_events_url":"https://api.github.com/users/seantalts/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T18:18:15Z","updated_at":"2018-04-16T18:18:15Z","author_association":"OWNER","body":"Sweet, it'd be great to have a nix package! I don't think it's unreasonable to say that CmdStan has a compile step that produces binaries, as do most of their packages. I suspect we should be able to deal with CmdStan in the same way, though we could the pre-compiled header to the `build` target so it's easier to build all at once."}}
{"actor":{"display_login":"seantalts"}}