nh2 / static-haskell-nix

easily build most Haskell programs into fully static Linux executables
388 stars 36 forks source link

Update packages from 23.05 to 23.11 #125

Closed jonathanlking closed 1 month ago

jonathanlking commented 7 months ago

Updates nixpkgs to 23.11.

Completely succeed.

jonathanlking commented 7 months 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'.

domenkozar commented 6 months ago

cc @nh2

nh2 commented 1 month ago

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
nh2 commented 1 month ago

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