{"action":"opened","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3425","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3425/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3425/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3425/events","html_url":"https://github.com/haskell/cabal/issues/3425","id":154590565,"number":3425,"title":"in-source `new-build`ing gtk2hs/gtk3","user":{"login":"lspitzner","id":7702390,"avatar_url":"https://avatars.githubusercontent.com/u/7702390?v=3","gravatar_id":"","url":"https://api.github.com/users/lspitzner","html_url":"https://github.com/lspitzner","followers_url":"https://api.github.com/users/lspitzner/followers","following_url":"https://api.github.com/users/lspitzner/following{/other_user}","gists_url":"https://api.github.com/users/lspitzner/gists{/gist_id}","starred_url":"https://api.github.com/users/lspitzner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lspitzner/subscriptions","organizations_url":"https://api.github.com/users/lspitzner/orgs","repos_url":"https://api.github.com/users/lspitzner/repos","events_url":"https://api.github.com/users/lspitzner/events{/privacy}","received_events_url":"https://api.github.com/users/lspitzner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-12T21:55:30Z","updated_at":"2016-05-12T21:55:30Z","closed_at":null,"body":"added a `cabal.project` to the project, try to new-build\r\n\r\n~~~~\r\n> git clone https://github.com/lspitzner/gtk2hs.git --depth=5 --branch=new-build\r\n> cd gtk2hs\r\n> cabal new-build gtk/\r\nResolving dependencies...\r\nIn order, the following will be built (use -v for more details):\r\ncairo-0.13.1.1\r\nglib-0.13.2.2\r\ngio-0.13.1.1\r\npango-0.13.1.1\r\ngtk3-0.14.2\r\nghc-pkg: cannot create: $PROJECT/dist-newstyle/packagedb/ghc-7.10.3 already exists\r\n~~~~\r\n\r\nfirst problem. [this might appear somewhat non-deterministically. or i messed up my testing once.] fixed by just trying again:\r\n\r\n~~~~\r\n> cabal new-build gtk/\r\n[tons of successful compilation, until:]\r\n$PROJECT/dist-newstyle/build/gtk3-0.14.2/setup/setup.hs:1:1:\r\n    Could not find module ‘Prelude’\r\n    It is a member of the hidden package ‘base-4.8.2.0’.\r\n    Perhaps you need to add ‘base’ to the build-depends in your .cabal file.\r\n    Use -v to see a list of the files searched for.\r\n~~~~\r\n\r\nThis seems to resemble #3320, but the cabal.project already adds `+build-demos`, i thought. well, next workaround: add `custom-setup`:\r\n\r\n(new clone because i delete the entire directory anyways to prevent any residual state between builds.)\r\n\r\n~~~~\r\n> git clone https://github.com/lspitzner/gtk2hs.git --depth=5 --branch=new-build-workaround\r\n> cd gtk2hs\r\n> cabal new-build gtk/\r\n[tons of successful compilation, until:]\r\nLinking $PROJECT/dist-newstyle/build/gtk3-0.14.2/setup/setup ...\r\n[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )\r\n[2 of 2] Compiling Main             ( SetupMain.hs, dist/setup-wrapper/Main.o )\r\nLinking dist/setup-wrapper/setup ...\r\nunrecognized 'configure' option `--profiling-detail=default'\r\n\r\nunrecognized 'configure' option `--library-profiling-detail=default'\r\n\r\nunrecognized 'configure' option `--ipid=gtk3-0.14.2-inplace'\r\n~~~~\r\n\r\nnot sure how to continue."}}