From 01902040da0e024469dcb175b646e78672d1724c Mon Sep 17 00:00:00 2001 From: tegwick Date: Fri, 1 May 2026 23:54:02 +0200 Subject: [PATCH] chore(debug): try --disable-split-sections to avoid GHC crash Crash invariantly at position 287,686,318 bytes happens after all 477 modules compile. Hypothesis: split-sections expands ELF section count, triggering GHC's internal ELF merger/linker to fail when reading the combined object. Co-Authored-By: Claude Sonnet 4.6 --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9ef1e1c..b06b5a1 100644 --- a/flake.nix +++ b/flake.nix @@ -124,7 +124,7 @@ configureFlags = (old.configureFlags or []) ++ [ "--ghc-option=-O0" "--ghc-option=-fomit-interface-pragmas" - "--ghc-option=-ddump-if-trace" + "--disable-split-sections" ]; postUnpack = (old.postUnpack or "") + '' _actual="$sourceRoot/build/Generated/ActualTypes.hs"