!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

696 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/141 Servers

Load older messages


SenderMessageTime
2 Jun 2025
@sternenseemann:systemli.orgsterni (he/him)surely the ld.bfd bug that was plaguing haskell has been fixed by now?12:11:55
@teoc:matrix.orgTeo (he/him)I think the big issue with ld.bfd is that it is horribly slow12:12:16
@teoc:matrix.orgTeo (he/him)At least given the huge object files that GHC outputs12:12:51
@sternenseemann:systemli.orgsterni (he/him)that's true12:13:06
@sternenseemann:systemli.orgsterni (he/him)but are we sure that a mix of lld and ld.bfd across nixpkgs can play nice with C++ libs?12:13:27
@teoc:matrix.orgTeo (he/him)Yeah I'm not sure. Maybe the "correct" thing to do is just use lld consistently as the linker12:13:58
@teoc:matrix.orgTeo (he/him)I guess then you want to use clang as well? Otherwise you don't get LTO(?) I don't know how C/C++ linker stuff works12:15:02
@emilazy:matrix.orgemilymixing linkers is fine12:18:43
@emilazy:matrix.orgemilybut we probably won't want to use a different linker just for Haskell unless we need to12:18:56
@emilazy:matrix.orgemily OTOH both ld.gold and ld.bfd sort of suck for Linux to be on so maybe someone should make LLD happen system-wide :P 12:19:23
@emilazy:matrix.orgemily(then again, I'd say the same about GCC vs. LLVM)12:19:35
@teoc:matrix.orgTeo (he/him)The other thing is GHC supports using a different linker to what it was built with, but I'm not sure if it's worthwhile making use of that. You'd have to split it into a bindist derivation and an installed GHC derivation. It would save building GHC n times though12:21:31
@sternenseemann:systemli.orgsterni (he/him) emily: it's probably better to use lld over ld.gold longterm, but we'd have to check first how bad ld.bfd is nowadays 12:43:43
@sternenseemann:systemli.orgsterni (he/him)I wonder if GHC's configure script still rejects ld.bfd…12:44:12
@teoc:matrix.orgTeo (he/him)I'd be keen to just make it an opt-in thing for now, and then at some point in the future we can make it the default if we want12:49:44
@alex:tunstall.xyzAlex
In reply to @emilazy:matrix.org
OTOH both ld.gold and ld.bfd sort of suck for Linux to be on so maybe someone should make LLD happen system-wide :P
I've found mold to be even better than lld.
But it doesn't (didn't?) support the weird things GHC does. :(
18:24:42
@alexfmpe:matrix.orgalexfmpewth is going on with git-annex20:28:53
@alexfmpe:matrix.orgalexfmpeevery lts bump invalides its hash20:29:01
@maralorn:maralorn.demaralornWell, that’s on purpose. peti left an excellent comment there. πŸ˜„20:32:36
@maralorn:maralorn.demaralorn

The Hackage tarball is purposefully broken, because it's not intended to be, like, useful.

20:33:06
@maralorn:maralorn.demaralornMakes me smile everytime I read it. πŸ˜„20:33:15
@alexfmpe:matrix.orgalexfmpecan we, like, shame upstream into doing something different?20:54:44
@sternenseemann:systemli.orgsterni (he/him)hm did wolfgang talk to anyone before the warnIf change?21:28:42
@sternenseemann:systemli.orgsterni (he/him)the PR is pretty much what I wanted to do myself, but it's a pretty self merge in any case21:29:05
@sternenseemann:systemli.orgsterni (he/him)maybe he has telepathic abilities :)21:29:13
@maralorn:maralorn.demaralornI know of nothing. πŸ˜„21:41:40
@maralorn:maralorn.demaralornSooo … what would an empty queue roughly look like? I guess 50k builds waiting for staging-next is not it? πŸ˜„22:44:26
@sternenseemann:systemli.orgsterni (he/him)that's a question22:45:17
@sternenseemann:systemli.orgsterni (he/him)I mean we can probably eval, we share most GHCs with staging-next22:45:35
@sternenseemann:systemli.orgsterni (he/him)if it's a problem someone can always cancel an eval22:45:43

Show newer messages


Back to Room ListRoom Version: 6