{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/4635","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/4635/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/4635/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/4635/events","html_url":"https://github.com/haskell/cabal/issues/4635","id":246110295,"number":4635,"title":"build failure for cabal 2.1 with cabal 2.0","user":{"login":"cartazio","id":4290,"avatar_url":"https://avatars2.githubusercontent.com/u/4290?v=4","gravatar_id":"","url":"https://api.github.com/users/cartazio","html_url":"https://github.com/cartazio","followers_url":"https://api.github.com/users/cartazio/followers","following_url":"https://api.github.com/users/cartazio/following{/other_user}","gists_url":"https://api.github.com/users/cartazio/gists{/gist_id}","starred_url":"https://api.github.com/users/cartazio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartazio/subscriptions","organizations_url":"https://api.github.com/users/cartazio/orgs","repos_url":"https://api.github.com/users/cartazio/repos","events_url":"https://api.github.com/users/cartazio/events{/privacy}","received_events_url":"https://api.github.com/users/cartazio/received_events","type":"User","site_admin":false},"labels":[{"id":300616617,"url":"https://api.github.com/repos/haskell/cabal/labels/cabal-install:%20nix-local-build","name":"cabal-install: nix-local-build","color":"d93f0b","default":false},{"id":1389140,"url":"https://api.github.com/repos/haskell/cabal/labels/type:%20enhancement","name":"type: enhancement","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-27T17:17:21Z","updated_at":"2017-10-25T14:07:43Z","closed_at":null,"author_association":"MEMBER","body":"**Summary (from @hvr's [comment](https://github.com/haskell/cabal/issues/4635#issuecomment-318812048)):** This is actually a GHC bug. We could try to workaround this in new-build though; all we need to do is to delete e.g. the .o files for which the `.dyn*` files are missing or out of date before invoking `ghc -dynamic-too --make`.\r\n\r\n---\r\n\r\n```\r\n\r\n3:15:57 ~/D/r/cabal-2.0-install-rc (master|✔) $ cabal install ./Cabal ./cabal-install --program-suffix=2.1\r\nResolving dependencies...\r\nIn order, the following will be installed:\r\nCabal-2.1.0.0 (via: cabal-install-2.1.0.0 cabal-install-2.1.0.0\r\nhackage-security-0.5.2.2) (new version)\r\nhackage-security-0.5.2.2 (via: cabal-install-2.1.0.0) (reinstall) (changes:\r\nCabal-2.0.0.2 removed)\r\ncabal-install-2.1.0.0 (new package)\r\nWarning: Note that reinstalls are always dangerous. Continuing anyway...\r\nConfiguring Cabal-2.1.0.0...\r\nBuilding Cabal-2.1.0.0...\r\nFailed to install Cabal-2.1.0.0\r\nBuild log ( /Users/carter/.cabal/logs/ghc-8.2.1/Cabal-2.1.0.0-8dmO4pupuJQ40XZZ67hKid.log ):\r\ncabal: Entering directory './Cabal'\r\nConfiguring Cabal-2.1.0.0...\r\nPreprocessing library for Cabal-2.1.0.0..\r\nBuilding library for Cabal-2.1.0.0..\r\ngcc-7: error: dist/build/Distribution/Simple/CCompiler.dyn_o: No such file or directory\r\n`gcc' failed in phase `Linker'. (Exit code: 1)\r\ncabal: Leaving directory './Cabal'\r\ncabal: Error: some packages failed to install:\r\nCabal-2.1.0.0-8dmO4pupuJQ40XZZ67hKid failed during the building phase. The\r\nexception was:\r\nExitFailure 1\r\ncabal-install-2.1.0.0-2MTVJEMTXQr6xOpZFe4JiL depends on cabal-install-2.1.0.0\r\nwhich failed to install.\r\nhackage-security-0.5.2.2-DQYPdO72PWA799IGz0LWXZ depends on\r\nhackage-security-0.5.2.2 which failed to install.\r\n```"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/339341715","html_url":"https://github.com/haskell/cabal/issues/4635#issuecomment-339341715","issue_url":"https://api.github.com/repos/haskell/cabal/issues/4635","id":339341715,"user":{"login":"cartazio","id":4290,"avatar_url":"https://avatars2.githubusercontent.com/u/4290?v=4","gravatar_id":"","url":"https://api.github.com/users/cartazio","html_url":"https://github.com/cartazio","followers_url":"https://api.github.com/users/cartazio/followers","following_url":"https://api.github.com/users/cartazio/following{/other_user}","gists_url":"https://api.github.com/users/cartazio/gists{/gist_id}","starred_url":"https://api.github.com/users/cartazio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartazio/subscriptions","organizations_url":"https://api.github.com/users/cartazio/orgs","repos_url":"https://api.github.com/users/cartazio/repos","events_url":"https://api.github.com/users/cartazio/events{/privacy}","received_events_url":"https://api.github.com/users/cartazio/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T14:07:43Z","updated_at":"2017-10-25T14:07:43Z","author_association":"MEMBER","body":"I agree with hvr and ttuegel.  We don’t even expose a clean / mark the same\nconfig as new so regenerate everything interface ... AND this is an issue\nfor new and power users both!\n\nOn Wed, Oct 25, 2017 at 1:56 AM Herbert Valerio Riedel <\nnotifications@github.com> wrote:\n\n> The most important thing we can do on our side is educate our users that\n> it is never safe to interrupt cabal-install\n>\n> From a UX POV that's a problem though IMO. I frequently interrupt cabal\n> myself (even from within Emacs), when I notice something in it's output\n> that renders the rest of the compilation (which could easily drag on for\n> several minutes otherwise) useless while developing. I think it's a common\n> expectation from users, i.e. that they can interrupt their build process,\n> rather than have to wait it out to its bitter end. I'd be fine though if\n> interrupting results in Cabal results in automatically cleaning the\n> components it was working on while getting interrupted. Or even better,\n> since we cannot guarantee cabal's cleanup-actions to be executed: keep\n> track on the filesystem whether work on a component has been terminated\n> \"normally\" (i.e. not via ctrl-c, or the GHC process exiting with a weird\n> exit-code), and the next cabal invocation will delete/wipe a component's\n> artifacts unless a normal termination has been recorded.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/haskell/cabal/issues/4635#issuecomment-339222914>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAAQwoBJXUasCibHrXHXVMHGvgC5Fd_Vks5svs2AgaJpZM4Ollhd>\n> .\n>\n"}}
{"actor":{"display_login":"cartazio"}}