Open Diamondy4 opened 7 months ago
That’s unsatisfying and maybe something we should have a regression test for.
Looks like this is https://github.com/haskell/cabal/issues/9375, an issue with cabal that's fixed in 3.10.3.0 (GHC 9.10). I don't know how we work around it. See also https://github.com/commercialhaskell/stack/issues/6251
@ncfavier There is this haskell/cabal#9384 PR that should fix it. haskell.nix seem to use it too input-output-hk/haskell.nix#2101
Adding an alternative Cabal
that doesn't exhibit this issue to setupHaskellDepends
should solve that issue. We can add that as a permanent workaround to `configuration-ghc-9.6.x.nix for affected packages.
It should be applied to GHC 9.6-9.9, only 9.10 got it fixed.
It's also a fix for GHC core library - can it be applied with configuration-ghc-9.x.x.nix
?
@Diamondy4 such patches would need to be applied to the respective GHC derivation. Core libs are bundled with GHC.
@Diamondy4 9.6 is fixed since it got a release with the new cabal library. 9.8.3 is also on the radar but afaiu 9.10.2 and 9.12.1 are higher priority
@MangoIV So our hope is, that 9.8.3 comes before stackage LTS switches to GHC 9.8?
I doubt that stackage is going to switch any time earlier as stack is affected by this as well.
But yeah, I think it would be problematic and we really need 9.8.3. I’ll comment under the issue.
Worst case is we have to patch our ghc, which is also not that bad?
Describe the bug
Build failure on
installPhase
on projects that use-fplugin=Some.Plugin.Module.Here
flag in library'sghc-options
.Appeared after recent haskellPackages update that bumped default GHC to 9.6.
cabal build
insideshellFor
shell still working.Failure log
```bash Running phase: buildPhase Preprocessing library for example-0.1.0.0.. Building library for example-0.1.0.0.. [1 of 1] Compiling Lib ( lib/Lib.hs, dist/build/Lib.o, dist/build/Lib.dyn_o ) @nix { "action": "setPhase", "phase": "checkPhase" } Running phase: checkPhase Package has no test suites. @nix { "action": "setPhase", "phase": "haddockPhase" } Running phase: haddockPhase @nix { "action": "setPhase", "phase": "installPhase" } Running phase: installPhase Installing library in /nix/store/qcmqhpfphzlc7ww25dgqv1rksi3dlgy6-example-0.1.0.0/lib/ghc-9.6.4/lib/x86_64-linux-ghc-9.6.4/exa> Error: Setup: '/nix/store/p64ngk1v9d63lnrnyq0cynjd8jdk5jfa-ghc-9.6.4/bin/ghc' exited with an error:Minimal failing example here. Same example but on pre-default GHC 9.6 nixpkgs commit builds successfully with default GHC 9.4.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build as it was before recent haskell-updates merge (before default GHC 9.6)
Additional context
Tested with effectful-plugin and ghc-typelits-natnormalise.
Notify maintainers
@NixOS/haskell @ncfavier @cdepillabout @expipiplus1 @maralorn @sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.