ezyang 2017-03-02 19:45:24
              ongy: Post error?      
 lpaste_ 2017-03-02 19:46:42
              ongy pasted "cabal new-build doing nothing" at http://lpaste.net/4545204614789595136     
 ezyang 2017-03-02 19:47:04
              it hung?      
 ongy 2017-03-02 19:47:10
              not at all     
 ongy 2017-03-02 19:47:23
              just ended itself, but no shell error     
 ezyang 2017-03-02 19:47:29
              this is 1.24?      
 ezyang 2017-03-02 19:47:41
              If you pass -j0 I bet you'll get an error      
 ongy 2017-03-02 19:47:43
              1.24.0.0     
 ezyang 2017-03-02 19:47:46
              this is a dumb bug and we fixed it in HEAD      
 ongy 2017-03-02 19:48:08
              I get an error I don't really understand     
 ezyang 2017-03-02 19:48:14
              paste it?      
 ongy 2017-03-02 19:48:49
              error, called at libraries/Cabal/Cabal/Distribution/ReadE.hs:44:24 in Cabal-1.24.0.0:Distribution.ReadE     
 ongy 2017-03-02 19:49:01
              oh when it's in one line I see it's just 'error' called -.-     
 ongy 2017-03-02 19:49:05
              still, not that helpful for a user     
 ezyang 2017-03-02 19:50:04
              that's unusuuuual      
 ezyang 2017-03-02 19:51:22
              uhh, can you post -v3 logs      
 ezyang 2017-03-02 19:51:27
              with -j0      
 lpaste_ 2017-03-02 19:53:12
              ongy pasted "cabal new-build -j0 -v3  >/tmp/log 2>&1" at http://lpaste.net/353167     
 ongy 2017-03-02 19:53:29
              this looks useful. and I just checked, the redirections don't void anything     
 ezyang 2017-03-02 19:54:12
              ok......      
 ezyang 2017-03-02 19:54:26
              well, I think the easiest thing to try next is to grab a cabal-install HEAD and see if the problem arises there      
 ezyang 2017-03-02 19:54:41
              you want to use HEAD anyway. Ubuntu? You can get one off of hvr's PPA      
 ongy 2017-03-02 19:54:55
              arch     
 ongy 2017-03-02 19:55:07
              but we probably have a cabal-install-git in aur, let me check     
 ongy 2017-03-02 19:55:15
              also I'm not sure if I want to run HEAD :)     
 ezyang 2017-03-02 19:55:20
              it's not too hard to build yourself either      
 ezyang 2017-03-02 19:55:31
              I know HEAD is bootstrapping off of 1.24 new-build :)      
 ongy 2017-03-02 19:55:51
              we don't -.- anything to worry about when building from HEAD? Also where is that     
 ezyang 2017-03-02 19:56:27
              get it off of https://github.com/haskell/cabal      
 ezyang 2017-03-02 19:56:34
              just run cabal new-build cabal      
 ezyang 2017-03-02 19:56:49
              I don't believe there are any known problems      
 ongy 2017-03-02 19:58:38
              oh, I ran the bootstrap.sh in cabal-install inside there     
 ongy 2017-03-02 19:58:44
              I should wait for answers when I ask something...     
 ezyang 2017-03-02 20:00:10
              oh bootstrap.sh is ok too      
 ezyang 2017-03-02 20:00:19
              we test that too :)      
 ezyang 2017-03-02 20:00:37
              but it's mostly intended for when you don't have any working cabal at all      
 ongy 2017-03-02 20:01:11
              ohh, well I did it in an tmpfs, so it shouldn't litter     
 ongy 2017-03-02 20:04:20
              oh we are having fun today     
 lpaste_ 2017-03-02 20:04:51
              ongy pasted "./bootstrap.sh" at http://lpaste.net/8695420333114523648     
 ongy 2017-03-02 20:05:04
              should I just try the new-build?     
 ezyang 2017-03-02 20:05:18
              bootstrap is supposed to work. Let's see      
 ezyang 2017-03-02 20:05:48
              TBC, you've got both Cabal and cabal-install dirs in tmpfs?      
 ezyang 2017-03-02 20:06:27
              but yes, maybe try new-build      
 ezyang 2017-03-02 20:07:03
              let me see if I can repro      
 ongy 2017-03-02 20:07:31
              ah maybe I ran it in the wrong directory? I cd'ed into cabal-install inside the repo     
 ongy 2017-03-02 20:08:16
              I ran my git clone inside /tmp/ so /tmp/cabal is the root of the repo     
 ezyang 2017-03-02 20:08:23
              no that's fine      
 ezyang 2017-03-02 20:08:55
              is your new-build humming? Do you want to help debug bootstrap?      
 ongy 2017-03-02 20:09:51
              new-build is running, but the bootstrap ran for a good while aswell     
 ongy 2017-03-02 20:10:51
              sure I can help debug bootstrap     
 ezyang 2017-03-02 20:12:32
              first, did you pass any arguments to bootstrap.sh?      
 ongy 2017-03-02 20:12:39
              no     
 ezyang 2017-03-02 20:12:59
              ok, is there a ./Setup exec in cabal-install dir?      
 ezyang 2017-03-02 20:13:18
              if so, tell me what ./Setup --version says      
 ongy 2017-03-02 20:14:49
              I'll run this on a different machine, to not interrupt the new-build going on     
 ongy 2017-03-02 20:15:00
              this one has a bit more power aswell, so it shouldn't take too long     
 ezyang 2017-03-02 20:15:45
              oh, I was assuming you had kept the intermediate products around      
 ongy 2017-03-02 20:16:03
              I did the new-build in the same git checkout, not sure if that keeps things around     
 ezyang 2017-03-02 20:16:07
              it will      
 ongy 2017-03-02 20:16:43
              ./Setup --version: Cabal library version 1.24.0.0     
 ezyang 2017-03-02 20:17:28
              :O      
 ezyang 2017-03-02 20:17:33
              that's not supposed to happen haha      
 ongy 2017-03-02 20:17:55
              git log --oneline | head -n 1                                                                    :(     
 ongy 2017-03-02 20:17:57
              cef856fc9 Merge pull request #4363 from ezyang/pr/hs-libraries-indefinite     
 ezyang 2017-03-02 20:19:31
              well      
 ezyang 2017-03-02 20:19:41
              I see the bug, looking at bootstrap.sh      
 ezyang 2017-03-02 20:19:46
              thanks, we'll try and fix this. new-build should still work      
 ongy 2017-03-02 20:20:28
              still running, but I ran into oom on my laptop so it got interrupted     
 ezyang 2017-03-02 20:23:28
              https://github.com/haskell/cabal/issues/4365      
 ongy 2017-03-02 20:23:32
              so what does new-build do with the binary? install them into ~/.cabal/bin ?     
 ongy 2017-03-02 20:24:05
              feel free to highlight me when you mention me on github, I'm ongy there aswell     
 ezyang 2017-03-02 20:25:13
              ongy: No, it gets put in dist-newstyle      
 ezyang 2017-03-02 20:25:16
              look for the "Linking" line      
 ezyang 2017-03-02 20:25:23
              I symlinked something to that path      
 ongy 2017-03-02 20:26:37
              this is in /tmp/ so I'd rather not :). Do I need to copy anything out but the cabal binary? hackage-security?     
 ezyang 2017-03-02 20:28:11
              I think it's statically linked by default so the binary is good enough      
 ezyang 2017-03-02 20:28:31
              ldd it to be sure :o)      
 ongy 2017-03-02 20:28:50
              static against haskell libs, dynamic against external dependencies     
 ongy 2017-03-02 20:28:54
              I really like that default     
 ongy 2017-03-02 20:29:47
              now I'll see if I can get my first aur PKGBUILD done     
 ezyang 2017-03-02 20:30:24
              haha, back to the original problem      
 ezyang 2017-03-02 20:30:54
              but, actually, I kind of wonder if the problem that caused bootstrap to not work is also the same problem that caused your package not to build originally      
 ongy 2017-03-02 20:33:11
              ah no, I want to have cabal-install-git or aur. I don't like to install things as user that I haven't written myself     
 ezyang 2017-03-02 20:33:20
              :)      
 ongy 2017-03-02 20:34:25
              how long until cabal new-run? Or does it exist on HEAD?     
 ezyang 2017-03-02 20:35:09
              ongy: https://github.com/haskell/cabal/pull/4304      
 ezyang 2017-03-02 20:35:26
              it's not green on CI so we haven't merged yet      
 ezyang 2017-03-02 20:37:21
              but you could give it a try if you were so inclined      
 ezyang 2017-03-02 20:37:24
              testing = good :)      
 ongy 2017-03-02 20:37:52
              that's not `cabal run` is it? looks more like it would be useful to run ghc-mod and such     
 ongy 2017-03-02 20:38:20
              I'm not at home over the weekend, not sure how much time and internet I will have     
 ezyang 2017-03-02 20:39:34
              I think cabal new-exec knows how to find executables you built      
 ezyang 2017-03-02 20:39:39
              I haven't used it so I'm not sure      
 ongy 2017-03-02 20:39:53
              dmwit should know :)     
 