{"action":"opened","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/2842","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2842/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2842/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2842/events","html_url":"https://github.com/commercialhaskell/stack/issues/2842","id":195217898,"number":2842,"title":"Stack 1.3.0 no longer notices system-installed ghc","user":{"login":"unhammer","id":56868,"avatar_url":"https://avatars.githubusercontent.com/u/56868?v=3","gravatar_id":"","url":"https://api.github.com/users/unhammer","html_url":"https://github.com/unhammer","followers_url":"https://api.github.com/users/unhammer/followers","following_url":"https://api.github.com/users/unhammer/following{/other_user}","gists_url":"https://api.github.com/users/unhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/unhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unhammer/subscriptions","organizations_url":"https://api.github.com/users/unhammer/orgs","repos_url":"https://api.github.com/users/unhammer/repos","events_url":"https://api.github.com/users/unhammer/events{/privacy}","received_events_url":"https://api.github.com/users/unhammer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T10:40:49Z","updated_at":"2016-12-13T10:40:49Z","closed_at":null,"body":"### General summary/comments (optional)\r\nStack 1.3.0 on Ubuntu no longer notices system-installed ghc (worked fine on 1.2.0)\r\n\r\n### Steps to reproduce\r\nOn Ubuntu 16.04,\r\n* Install ghc-7.8.4 happy-1.19.5 alex-3.1.4 from http://ppa.launchpad.net/hvr/ghc/ubuntu \r\n* `export PATH=\"/opt/ghc/7.8.4/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH\"`\r\n* Put `resolver: lts-2.22` in stack.yaml\r\n* stack build\r\n\r\n\r\n### Expected\r\n\r\nbuild using system ghc\r\n\r\n### Actual\r\n\r\nstack complains \r\n\r\n```\r\n$ stack build\r\nNo compiler found, expected minor version match with ghc-7.8.4 (x86_64) (based on resolver setting in /home/kiwibird/src/lettlest/stack.yaml).\r\nTo install the correct GHC into /home/kiwibird/.stack/programs/x86_64-linux/, try running \"stack setup\" or use the \"--install-ghc\" flag. To use your system GHC installation, run \"stack config set system-ghc --global true\", or use the \"--system-ghc\" flag.\r\n\r\n```\r\n\r\nThe verbose version also says\r\n```\r\n@(Data/Store/VersionTagged.hs:72:13)\r\n2016-12-13 11:38:24.242953: [debug] Run process: /sbin/ldconfig -p\r\n@(System/Process/Read.hs:306:3)\r\n2016-12-13 11:38:24.261096: [debug] Process finished in 17ms: /sbin/ldconfig -p\r\n@(System/Process/Read.hs:306:3)\r\n2016-12-13 11:38:24.263701: [debug] Run process: /usr/bin/gcc -v\r\n@(System/Process/Read.hs:306:3)\r\n2016-12-13 11:38:24.267995: [debug] Process finished in 3ms: /usr/bin/gcc -v\r\n@(System/Process/Read.hs:306:3)\r\n2016-12-13 11:38:24.269052: [debug] PIE enabled\r\n@(Stack/Setup.hs:574:17)\r\n2016-12-13 11:38:24.271102: [debug] Found shared library libtinfo.so.5 in 'ldconfig -p' output\r\n@(Stack/Setup.hs:550:29)\r\n2016-12-13 11:38:24.272860: [debug] Did not find shared library libtinfo.so.6\r\n@(Stack/Setup.hs:564:38)\r\n2016-12-13 11:38:24.273324: [debug] Did not find shared library libncursesw.so.6\r\n@(Stack/Setup.hs:564:38)\r\n2016-12-13 11:38:24.273635: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output\r\n@(Stack/Setup.hs:550:29)\r\n2016-12-13 11:38:24.273980: [debug] Did not find shared library libgmp.so.3\r\n@(Stack/Setup.hs:564:38)\r\n2016-12-13 11:38:24.274057: [debug] Using standard GHC build\r\n@(Stack/Setup.hs:597:9)\r\n2016-12-13 11:38:24.274848: [debug] Run process: /opt/ghc/7.8.4/bin/ghc --info\r\n@(System/Process/Read.hs:306:3)\r\n2016-12-13 11:38:24.330140: [debug] Process finished in 55ms: /opt/ghc/7.8.4/bin/ghc --info\r\n```\r\nfirst.\r\n\r\n### Stack version\r\n\r\n```\r\n$ stack --version\r\nVersion 1.3.0, Git revision 99b910d3c8e183aa376cb1e6f0341d86aed6d00e (4372 commits) x86_64 hpack-0.15.0\r\n```\r\n\r\n### Method of installation\r\n\r\n* Official binary from fpcomplete's apt repo"}}
{"actor":{"display_login":"unhammer"}}