{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2793","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2793/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2793/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2793/events","html_url":"https://github.com/haskell/cabal/issues/2793","id":103067507,"number":2793,"title":"Package installation error","user":{"login":"MagisDing","id":3329122,"avatar_url":"https://avatars.githubusercontent.com/u/3329122?v=3","gravatar_id":"","url":"https://api.github.com/users/MagisDing","html_url":"https://github.com/MagisDing","followers_url":"https://api.github.com/users/MagisDing/followers","following_url":"https://api.github.com/users/MagisDing/following{/other_user}","gists_url":"https://api.github.com/users/MagisDing/gists{/gist_id}","starred_url":"https://api.github.com/users/MagisDing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MagisDing/subscriptions","organizations_url":"https://api.github.com/users/MagisDing/orgs","repos_url":"https://api.github.com/users/MagisDing/repos","events_url":"https://api.github.com/users/MagisDing/events{/privacy}","received_events_url":"https://api.github.com/users/MagisDing/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T16:35:37Z","updated_at":"2015-08-26T12:18:10Z","closed_at":null,"body":"Maybe this issue is not really about \"cabal\", but I was trying to install package \"network\", and met the error like this:\r\n>○ cabal install network\r\nResolving dependencies...\r\nConfiguring network-2.6.2.1...\r\nFailed to install network-2.6.2.1\r\nBuild log ( /Users/Yuzhe_Ding/.cabal/logs/network-2.6.2.1.log ):\r\nConfiguring network-2.6.2.1...\r\nconfigure: WARNING: unrecognized options: --with-compiler, --with-gcc\r\nchecking build system type... x86_64-apple-darwin14.5.0\r\nchecking host system type... x86_64-apple-darwin14.5.0\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables...\r\nchecking whether we are cross compiling... configure: error: in `/private/var/folders/pp/76z_j1x56xn2t3g08k0jrvm80000gn/T/cabal-tmp-48042/network-2.6.2.1':\r\nconfigure: error: cannot run C compiled programs.\r\nIf you meant to cross compile, use `--host'.\r\nSee `config.log' for more details\r\ncabal: Error: some packages failed to install:\r\nnetwork-2.6.2.1 failed during the configure step. The exception was:\r\n>ExitFailure 1\r\n\r\nWhere and how can I get the \"config.log\"? I tried \r\n>Yuzhe_Ding at Yuzhe-Ding-MacBook-Pro in ~/.cabal\r\n○ ./configure\r\nzsh: no such file or directory: ./configure\r\n\r\nand here is my $PATH:\r\n>○ echo $PATH\r\nusr/local/bin\r\n:/Users/Yuzhe_Ding/.pyenv/shims\r\n:/usr/local/Cellar\r\n:/Users/Yuzhe_Ding/.local/bin\r\n:/Users/Yuzhe_Ding/.cabal/bin\r\n:/Applications/ghc-.10.2.app/Contents/bin\r\n:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/134980304","html_url":"https://github.com/haskell/cabal/issues/2793#issuecomment-134980304","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2793","id":134980304,"user":{"login":"23Skidoo","id":47439,"avatar_url":"https://avatars.githubusercontent.com/u/47439?v=3","gravatar_id":"","url":"https://api.github.com/users/23Skidoo","html_url":"https://github.com/23Skidoo","followers_url":"https://api.github.com/users/23Skidoo/followers","following_url":"https://api.github.com/users/23Skidoo/following{/other_user}","gists_url":"https://api.github.com/users/23Skidoo/gists{/gist_id}","starred_url":"https://api.github.com/users/23Skidoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/23Skidoo/subscriptions","organizations_url":"https://api.github.com/users/23Skidoo/orgs","repos_url":"https://api.github.com/users/23Skidoo/repos","events_url":"https://api.github.com/users/23Skidoo/events{/privacy}","received_events_url":"https://api.github.com/users/23Skidoo/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T12:18:10Z","updated_at":"2015-08-26T12:18:10Z","body":"So it looks like your problems are caused by `clang` not perfectly mimicking `gcc`. I don't know that much about GHC on OS X, maybe @cartazio can help?"}}