!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

717 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org143 Servers

Load older messages


SenderMessageTime
6 May 2025
@alex:tunstall.xyzAlex
In reply to @m1-s:matrix.org

Hello, does anyone have experience with building haskell on macOS? This project compiles fine on linux where nix uses gcc by default. it fails on darwin however as the default compiler there is clang.

> /nix/store/q7lf35kha4z40zkmhf3cyipaf7kkk6if-cctools-binutils-darwin-wrapper-1010.6/bin/ld: line 268:  5770 Segmentation fault: 11  /nix/store/qib1l5hjzaycqyw9slc2j127wma1ayix-cctools-binutils-darwin-1010.6/bin/ld "@$responseFile"
       > clang-16: error: linker command failed with exit code 139 (use -v to see invocation)
       > ghc-9.6.6: `cc' failed in phase `Linker'. (Exit code: 1)

The system has a linux builder vm with nix-darwin enabled but I dont think its related to this error.

You need to use a newer Nixpkgs, because this was fixed a few months ago.
I can't recall what the exact commit with the fix was, but one of the maintainers here likely knows.
21:30:22
@alexfmpe:matrix.orgalexfmpe
In reply to @alexfmpe:matrix.org
https://github.com/NixOS/nixpkgs/issues/149692
Fixed by https://github.com/NixOS/nixpkgs/pull/307880
22:24:53
@alexfmpe:matrix.orgalexfmpeI'd just bump to recent master and get 9.8.3 as default. It took like 5s off my reloads on mac22:26:27
@alexfmpe:matrix.orgalexfmpeThis here: https://gitlab.haskell.org/ghc/ghc/-/issues/2341522:27:07
7 May 2025
@aerden:matrix.orgAerden joined the room.08:03:34
@sternenseemann:systemli.orgsterni (he/him)There is some kind of race condition in the install of cross compiled riscv64 ghc948 which is bizarre since I don't think we have the issue with the regular ghc09:30:23
@alex:tunstall.xyzAlex How frequently does it occur?
What does the error(?) look like?
10:44:43
@maralorn:maralorn.demaralornThe Data.Text.show business is definitely aggravating.11:14:15
@maralorn:maralorn.demaralornI have no clue how many ours of work and how many delays this will cost us …11:16:49
@maralorn:maralorn.demaralornsrsly, hackage needs a validator which plain forbids implict imports on packages without tight bounds.11:17:42
@maralorn:maralorn.demaralornAlthough that wouldn’t help us much either …11:17:57
@teoc:matrix.orgTeo (he/him)Are the broken packages on stackage? Or is it stuff in nixpkgs that's not on stackage? At some point I want to put some effort into improving our ecosystem testing code in head.hackage and making sure we test as much as possible before we cut a release of GHC11:32:06
@maralorn:maralorn.demaralornYes: https://hackage.haskell.org/package/http-link-header which was affected is on stackage apparently.11:36:20
@maralorn:maralorn.demaralornAlthough they already fixed it in their newest release.11:36:47
@maralorn:maralorn.demaralornBesides that I only encountered problems in more or less local code.11:37:08
@maralorn:maralorn.demaralornSo maybe its not going to be as bad as I am fearing.11:37:22
@b:chreekat.netchreekathttps://github.com/commercialhaskell/stackage/issues/7743 is the Stackage coordination point11:39:18
@b:chreekat.netchreekatI count 48 packages dropped, and Jens said at least 18 of them are direct dependents of text11:41:54
@b:chreekat.netchreekatLuckily it was "just" nightly, so snapshots continue to be released. Just with fewer packages11:42:34
@teoc:matrix.orgTeo (he/him)Thanks! We have a draft PR to run head.hackage against stackage snapshosts somewhere. I want to tidy that up and merge that at some point. And then we could run that before a every release and have a better understanding of these things11:44:34
@teoc:matrix.orgTeo (he/him)Btw I'll be at Zurihac this year and I'd be keen to have a chat about how we can improve GHC/head.hackage processes to make things like this less painful in the future11:49:33
@sternenseemann:systemli.orgsterni (he/him) i would guess more than 1/10; IIRC it is something like install: could not create file …: no such file or directory. Happens on Hydra, so you probably need a reasonable high -j (is marked big-parallel) and a busy machine 11:52:58
@maralorn:maralorn.demaralornI’ll be there, too. Let’s do that!12:33:02
@b:chreekat.netchreekat I'm also in! 12:53:01
@hellwolf:matrix.orghellwolfnice, I will be there too :)13:54:00
@brendonakay:matrix.orgBrendon A Kay joined the room.15:00:46
@bodzioney:matrix.orgEthan Bodzioney joined the room.16:02:37
@maralorn:maralorn.demaralornDoes hydra kill jobs which need to much memory?21:15:38
@maralorn:maralorn.demaralornBecause the build I am currently trying is roughly at 100G RAM right now, so even if it succeeds, which seems unlikely, it doesn’t seem like a viable solution. 😄21:16:51
@alex:tunstall.xyzAlexThe kernel can if the overall system is low on memory (OoM killer).21:40:09

Show newer messages


Back to Room ListRoom Version: 6