{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1633","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1633/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1633/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1633/events","html_url":"https://github.com/commercialhaskell/stack/issues/1633","id":125788747,"number":1633,"title":"Stack setup error","user":{"login":"ShobhitMaheshwari","id":3895860,"avatar_url":"https://avatars.githubusercontent.com/u/3895860?v=3","gravatar_id":"","url":"https://api.github.com/users/ShobhitMaheshwari","html_url":"https://github.com/ShobhitMaheshwari","followers_url":"https://api.github.com/users/ShobhitMaheshwari/followers","following_url":"https://api.github.com/users/ShobhitMaheshwari/following{/other_user}","gists_url":"https://api.github.com/users/ShobhitMaheshwari/gists{/gist_id}","starred_url":"https://api.github.com/users/ShobhitMaheshwari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShobhitMaheshwari/subscriptions","organizations_url":"https://api.github.com/users/ShobhitMaheshwari/orgs","repos_url":"https://api.github.com/users/ShobhitMaheshwari/repos","events_url":"https://api.github.com/users/ShobhitMaheshwari/events{/privacy}","received_events_url":"https://api.github.com/users/ShobhitMaheshwari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T23:44:12Z","updated_at":"2016-01-10T00:13:55Z","closed_at":null,"body":"When I run stack setup, I get following error. The system is Ubuntu 14.04.3 LTS\r\n\r\n2d [shobhit:~/IdeaProjects/HaskellTutorial] $ stack setup                                                                                      \r\nPreparing to install GHC to an isolated location.\r\nThis will not interfere with any system-level installation.\r\nAlready downloaded.                 \r\nRunning /tmp/stack-setup12713/ghc-7.10.3/configure --prefix=/home/shobhit/.stack/programs/x86_64-linux/ghc-7.10.3/ exited with ExitFailure 77\r\nchecking for path to top of build tree... /tmp/stack-setup12713/ghc-7.10.3\r\nBuild platform inferred as: x86_64-unknown-linux\r\nHost platform inferred as: x86_64-unknown-linux\r\nTarget platform inferred as: x86_64-unknown-linux\r\nGHC build  : x86_64-unknown-linux\r\nGHC host   : x86_64-unknown-linux\r\nGHC target : x86_64-unknown-linux\r\nchecking for perl... /usr/bin/perl\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether ln -s works... yes\r\nchecking for gsed... sed\r\nchecking for gcc... /usr/bin/gcc\r\nchecking for llc-3.5... no\r\nchecking for llc... no\r\nchecking  is version 3.5... no\r\nchecking for opt-3.5... no\r\nchecking for opt... no\r\nchecking  is version 3.5... no\r\nchecking for ld... /usr/bin/ld\r\nchecking for gcc... /usr/bin/gcc\r\nchecking whether the C compiler works... no\r\n\r\n/tmp/stack-setup12713/ghc-7.10.3/configure: line 3866: --version: command not found\r\n/tmp/stack-setup12713/ghc-7.10.3/configure: line 4113: --version: command not found\r\nconfigure: error: in `/tmp/stack-setup12713/ghc-7.10.3':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n\r\nConfiguring GHC ...2d [shobhit:~/IdeaProjects/HaskellTutorial] 12s 1 $ "},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/170295937","html_url":"https://github.com/commercialhaskell/stack/issues/1633#issuecomment-170295937","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1633","id":170295937,"user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T00:13:55Z","updated_at":"2016-01-10T00:13:55Z","body":"Looks like your system gcc is broken.  What happens if you just run `gcc`?  Perhaps try reinstalling gcc, or installing a newer version?"}}