Logs: liberachat/#haskell
| 2021-06-12 20:36:55 | <dminuoso> | aerkenemesis: This error looks suspiciously familiar. |
| 2021-06-12 20:37:13 | <drdo> | xb |
| 2021-06-12 20:37:14 | <drdo> | oops |
| 2021-06-12 20:37:17 | → | phma joins (~phma@host-67-44-209-1.hnremote.net) |
| 2021-06-12 20:37:38 | <DigitalKiwi> | safinaskar: man not every project needs to be useful to everyone |
| 2021-06-12 20:37:46 | <aerkenemesis> | dminuoso https://github.com/input-output-hk/cardano-sl/blob/develop/docs/profiling.md |
| 2021-06-12 20:37:47 | <DigitalKiwi> | or even anyone |
| 2021-06-12 20:38:04 | <aerkenemesis> | that's very similar and it also mentions profiling |
| 2021-06-12 20:38:09 | → | chexum joins (~chexum@gateway/tor-sasl/chexum) |
| 2021-06-12 20:38:36 | <dminuoso> | aerkenemesis: Is your project available on gitlab any time soon? |
| 2021-06-12 20:38:45 | <dminuoso> | Im tempted to reproduce this locally |
| 2021-06-12 20:39:03 | <janus> | aerkenemesis: it is a bug in the cabal library: https://stackoverflow.com/a/67882095/309483 |
| 2021-06-12 20:39:03 | <aerkenemesis> | if you want to look at it I can open it up, I just shut it down because I got some discouraging comments about its usefulness |
| 2021-06-12 20:39:15 | <janus> | aerkenemesis: just had that problem last week, can't believe people are not talking more about it... |
| 2021-06-12 20:39:34 | <safinaskar> | aerkenemesis: i will not open this link anymore, feel free to open project |
| 2021-06-12 20:39:38 | <aerkenemesis> | it's open again |
| 2021-06-12 20:39:47 | → | alex3 joins (~alex3@BSN-77-82-41.static.siol.net) |
| 2021-06-12 20:39:47 | <janus> | i also asked in here, and monochrom suggested that it was an old problem... then i asked that SO question |
| 2021-06-12 20:39:50 | <aerkenemesis> | https://gitlab.com/leash-lang/leash |
| 2021-06-12 20:40:04 | <janus> | dminuoso: my SO question has a minimal project that you can use to reproduce it |
| 2021-06-12 20:40:28 | ← | safinaskar parts (~safinaska@109.252.90.89) () |
| 2021-06-12 20:40:53 | <aerkenemesis> | my CI minutes were up on gitlab for a few weeks so I don't know what change I did to introduce this |
| 2021-06-12 20:41:26 | <aerkenemesis> | I could possibly backtrack but the builds are slow and there are hundreds of commits :S |
| 2021-06-12 20:41:37 | <exarkun> | log2 hundreds = few |
| 2021-06-12 20:41:59 | <dminuoso> | aerkenemesis: Curious, in that shell command, what's the meaning of `.#leash`? |
| 2021-06-12 20:42:03 | <aerkenemesis> | true, but gitlab CI minutes are pricy :D |
| 2021-06-12 20:42:32 | <aerkenemesis> | dminuoso it means "build the flake here (.) and the package inside of it called leash" |
| 2021-06-12 20:42:39 | <dminuoso> | Ah, flakes |
| 2021-06-12 20:42:44 | <aerkenemesis> | <path>#<pkg> |
| 2021-06-12 20:42:53 | <dminuoso> | Mmm, which nix version is that on? |
| 2021-06-12 20:43:09 | <aerkenemesis> | I can give you a derivation to reproduce without flakes if you want |
| 2021-06-12 20:43:19 | <dminuoso> | That'd be helpful |
| 2021-06-12 20:43:25 | <aerkenemesis> | give me 5 minutes |
| 2021-06-12 20:43:52 | <aerkenemesis> | dminuoso you on nixos-unstable? |
| 2021-06-12 20:43:57 | <dminuoso> | I can be on anything you want |
| 2021-06-12 20:44:13 | <aerkenemesis> | ok I'll pin to the same nixpkgs version I'm using then |
| 2021-06-12 20:45:27 | → | wonko joins (~wjc@62.115.229.50) |
| 2021-06-12 20:48:52 | <aerkenemesis> | dminuoso https://pastebin.com/Tv9PRDWz |
| 2021-06-12 20:50:03 | × | notzmv quits (~zmv@user/notzmv) (Ping timeout: 268 seconds) |
| 2021-06-12 20:51:26 | <dminuoso> | Okay could reproduce |
| 2021-06-12 20:51:41 | → | dhil joins (~dhil@195.213.192.47) |
| 2021-06-12 20:51:58 | → | raehik1 joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) |
| 2021-06-12 20:52:44 | <aerkenemesis> | I tried bumping to ghc9.0 but that didn't help either |
| 2021-06-12 20:58:04 | <dminuoso> | Let's see if this is nix related. Im going to try building it with cabal v2- |
| 2021-06-12 20:58:32 | <dminuoso> | Yeah, builds fine outside nix |
| 2021-06-12 20:59:01 | <dminuoso> | With ghc 8.8.4, anyhow |
| 2021-06-12 20:59:57 | <dminuoso> | aerkenemesis: Maybe there's something awfully broken with the interaction between nix, alex and the linker. |
| 2021-06-12 20:59:58 | <aerkenemesis> | it will also build if you nix-shell and run cabal from there |
| 2021-06-12 21:01:18 | <aerkenemesis> | dminuoso what makes you think alex is involved in the error?L |
| 2021-06-12 21:02:17 | → | beka joins (~beka@104-244-27-23.static.monkeybrains.net) |
| 2021-06-12 21:02:22 | <dminuoso> | aerkenemesis: well this triggers on Leash.hs, no? |
| 2021-06-12 21:02:54 | <dminuoso> | Ohh |
| 2021-06-12 21:02:58 | <aerkenemesis> | I'm not seeing that |
| 2021-06-12 21:02:59 | <dminuoso> | Im being silly, dont mind my comment |
| 2021-06-12 21:03:00 | × | mikoto-c1 quits (~mikoto-ch@ip-213-49-189-31.dsl.scarlet.be) (Ping timeout: 268 seconds) |
| 2021-06-12 21:03:03 | <dminuoso> | It's all compiled, linker. |
| 2021-06-12 21:03:45 | × | fizbin_ quits (~fizbin@2601:8a:4080:1280:d58e:2782:3061:3fa3) (Remote host closed the connection) |
| 2021-06-12 21:04:02 | → | fizbin joins (~fizbin@2601:8a:4080:1280:d58e:2782:3061:3fa3) |
| 2021-06-12 21:04:20 | <aerkenemesis> | I'm having a hard time parsing out any useful info from these error messages |
| 2021-06-12 21:04:46 | <aerkenemesis> | except it seems to have something to do with the TH usage in recursion schemes |
| 2021-06-12 21:04:55 | <janus> | am i on you guys ignore lists or what? |
| 2021-06-12 21:05:36 | <aerkenemesis> | janus haha nope, but I haven't seen you type anything since you mentioned SO |
| 2021-06-12 21:05:53 | × | fizbin quits (~fizbin@2601:8a:4080:1280:d58e:2782:3061:3fa3) (Remote host closed the connection) |
| 2021-06-12 21:06:06 | <janus> | aerkenemesis: but have you considered trying out the proposal in the SO answer? to determine if it is that problem? |
| 2021-06-12 21:06:35 | <aerkenemesis> | janus I couldn't find it and then I forgot about it, could you paste the link please? |
| 2021-06-12 21:06:50 | <janus> | aerkenemesis: https://stackoverflow.com/a/67882095/309483 |
| 2021-06-12 21:06:55 | <aerkenemesis> | never mind, found it |
| 2021-06-12 21:07:02 | <aerkenemesis> | ah thx |
| 2021-06-12 21:07:10 | → | fizbin joins (~fizbin@2601:8a:4080:1280:d58e:2782:3061:3fa3) |
| 2021-06-12 21:08:12 | <dminuoso> | janus: Mmm, the error message appears wildly different, and they already have TemplateHaskell in default-extensions |
| 2021-06-12 21:08:40 | × | chexum quits (~chexum@gateway/tor-sasl/chexum) (Remote host closed the connection) |
| 2021-06-12 21:08:54 | → | chexum joins (~chexum@gateway/tor-sasl/chexum) |
| 2021-06-12 21:10:10 | × | wallymathieu quits (~wallymath@81-234-151-21-no94.tbcn.telia.com) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2021-06-12 21:10:15 | <dminuoso> | but indeed, I could reproduce locally with cabal and --enable-library-profiling |
| 2021-06-12 21:10:30 | <aerkenemesis> | I'm not getting `other-extensions: TemplateHaskell` to work |
| 2021-06-12 21:10:44 | <dminuoso> | So geekosaur was completely spot on |
| 2021-06-12 21:10:46 | → | wallymathieu joins (~wallymath@81-234-151-21-no94.tbcn.telia.com) |
| 2021-06-12 21:11:22 | <dminuoso> | However, since I can reproduce this with `cabal`, this does not appear to be a nix bug |
| 2021-06-12 21:11:38 | × | fizbin quits (~fizbin@2601:8a:4080:1280:d58e:2782:3061:3fa3) (Ping timeout: 268 seconds) |
| 2021-06-12 21:12:15 | × | waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 268 seconds) |
| 2021-06-12 21:12:23 | <aerkenemesis> | I don't even care about profiling at this point so for the sake of my CI I'd be happy to just turn it off for the nix build |
| 2021-06-12 21:12:24 | × | teaSlurper quits (~chris@81.96.113.213) (Read error: Connection reset by peer) |
| 2021-06-12 21:12:25 | <dminuoso> | aerkenemesis: https://github.com/llvm-hs/llvm-hs/issues/86 |
| 2021-06-12 21:12:53 | × | wallymathieu quits (~wallymath@81-234-151-21-no94.tbcn.telia.com) (Client Quit) |
| 2021-06-12 21:13:22 | <janus> | dminuoso: i dunno if the error is really wildly different, one difference is that the leash error is using ghci. i don't know how different the errors from ghci and non-gchi are. i cut off a lot of it in my SO question |
| 2021-06-12 21:13:42 | × | gehmehgeh_ quits (~user@user/gehmehgeh) (Quit: Leaving) |
| 2021-06-12 21:14:15 | → | waleee joins (~waleee@h-98-128-228-119.NA.cust.bahnhof.se) |
| 2021-06-12 21:14:58 | <janus> | aerkenemesis: ok, thanks for trying. sorry for wasting your time then |
| 2021-06-12 21:15:26 | <aerkenemesis> | janus no man, A for effort. thanks for that :) |
| 2021-06-12 21:15:30 | <dminuoso> | aerkenemesis: and your link to cardano seems to match exactly too |
| 2021-06-12 21:15:54 | <aerkenemesis> | yep, it's the same |
| 2021-06-12 21:18:34 | <aerkenemesis> | is is possibly related to the `-RTS` flag ghc seems to get with the nix build?= |
| 2021-06-12 21:18:43 | → | teaSlurper joins (~chris@81.96.113.213) |
| 2021-06-12 21:19:17 | <aerkenemesis> | I'm guessing here, I'm pretty ignorant about the technicalities of GHC |
| 2021-06-12 21:19:33 | × | pdxleif quits (~leif@75.164.44.108) (Ping timeout: 252 seconds) |
| 2021-06-12 21:20:31 | → | pdxleif joins (~leif@75.164.44.108) |
| 2021-06-12 21:20:44 | <aerkenemesis> | it spits out the flags passed to ghc when you run the nix build `setupCompileFlags: -package-db=/build/setup-package.conf.d -j12 +RTS -A64M -RTS -threaded -rtsopts` |
| 2021-06-12 21:21:08 | <dminuoso> | aerkenemesis: Like I said, when you build with `cabal build --enable-library-profiling` it breaks too |
| 2021-06-12 21:21:20 | <aerkenemesis> | yes, I did verify that too |
| 2021-06-12 21:22:51 | × | waleee quits (~waleee@h-98-128-228-119.NA.cust.bahnhof.se) (Ping timeout: 272 seconds) |
All times are in UTC.