Closed jonathanlking closed 1 month ago
Unfortunately the GHC 9.6 releases with enableShared = false
, which is set through useArchiveFilesForTemplateHaskell = true
, are still broken.
I think this could be the same issue as https://github.com/NixOS/nixpkgs/issues/208959#issuecomment-1646098256?
$ nix build --impure --expr '(import ./survey { compiler = "ghc963"; useArchiveFilesForTemplateHaskell = true; }).haskellPackages.ghc'
...
/---------------------------------------------------------\
| Successfully built program 'hp2ps' (Stage1). |
| Executable: _build/stage1/bin/hp2ps |
| Program synopsis: Heap Profile to PostScript converter. |
\---------------------------------------------------------/
| Run Ghc CompileHs Stage1: libraries/ghc-bignum/src/GHC/Num/Backend/Native.hs => _build/stage1/libraries/ghc-bignum/build/GHC/Num/Backend/Native.p_o
| Copy package 'ghc-prim'
# cabal-copy (for _build/stage1/lib/package.conf.d/ghc-prim-0.10.0.conf)
inished in 8m29s^GError, rule finished running but did not produce file:
_build/stage1/lib/x86_64-linux-ghc-9.6.3/libHSrts-1.0.2-ghc9.6.3.so
Build failed.
GHC 9.8.1 does seem to work though, i.e. nix build --impure --expr '(import ./survey { compiler = "ghc981"; useArchiveFilesForTemplateHaskell = true; }).haskellPackages.ghc'
.
cc @nh2
Relating to https://github.com/nh2/static-haskell-nix/pull/125#issuecomment-1873539559
This still fails on NixOS 24.05 with ghc965
:
... -A haskellPackages.hello --arg useArchiveFilesForTemplateHaskell true
fails with:
ghc-musl> Finished in 7m31sError, rule finished running but did not produce file:
ghc-musl> _build/stage1/lib/x86_64-linux-ghc-9.6.5/libHSrts-1.0.2-ghc9.6.5.so
This still fails on NixOS 24.05 with
ghc965
:
Fixed by @NorfairKing's patch in https://github.com/NixOS/nixpkgs/pull/317175
We cherry-picked it onto the nixos-24.05
branch
Updates nixpkgs to 23.11.
nix build --impure --expr '(import ./survey { useArchiveFilesForTemplateHaskell = true; }).working'
nix build --impure --expr '(import ./survey { }).working'
Completely succeed.
nix build --impure --expr '(import ./survey { compiler = "ghc963"; }).working'
succeeds except for:ShellCheck
andstack
(transitively) fail to build due tomtl < 2.3
.darcs
fails due tounix <2.8
.