From ec8aa611b86a3000c5658e17828d2f7e230676fd Mon Sep 17 00:00:00 2001 From: tegwick Date: Sat, 2 May 2026 00:49:14 +0200 Subject: [PATCH] chore(build): swap -fexternal-interpreter for --disable-shared on models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -fexternal-interpreter had no effect: crash invariant at 287,686,318. System ar reads libHSghc-9.10.3-5702.a (287,768,576 bytes) fine, but GHC's internal readAr fails on the last entry — a bug in GHC's AR parser when reading content near end-of-file. The call site is mergeObjectFiles during .so creation, not TH evaluation. --disable-shared skips the shared library build for inter-hub-models, preventing GHC from ever calling readAr on libHSghc.a. 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 cc634c3..eabd9e7 100644 --- a/flake.nix +++ b/flake.nix @@ -126,7 +126,7 @@ "--ghc-option=-fomit-interface-pragmas" "--disable-split-sections" "--ghc-option=-j1" - "--ghc-option=-fexternal-interpreter" + "--disable-shared" ]; postUnpack = (old.postUnpack or "") + '' _actual="$sourceRoot/build/Generated/ActualTypes.hs"