Skip to content

Package using GHC2024 language fails to build #2399

Closed
@janvogt

Description

@janvogt

Describe the bug

Can't compile a haskell package using GHC2024 as default-language.

  • Tested on system aarch64-linux (don't think it's relevant as cabal build works fine).
  • GHC 9.10.2 (which builds sucessfully)
  • Haskell.nix commit f7bea9839be61422bf73b07c64a7eacbb9568f7e used.

Steps To Reproduce

git clone https://github.com/janvogt/haskell-nix-doesnt-support-GHC2024
cd haskell-nix-doesnt-support-GHC2024
nix develop
# cabal works:
cabal run hello:exe:hello
# haskell.nix fails:
nix run .#hello:exe:hello

Expected behavior

Expected both cabal run and nix run to work and output Hello, GHC2024

Actual behaviour

cabal run works and nix run fails with:

nix run .#hello:exe:hello
error: builder for '/nix/store/6pm6s20b08ca011n7awb8dniy5qik1mw-hello-exe-hello-1.0.0.2.drv' failed with exit code 1;
       last 13 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/lkm31v85cr32jw9yp1gsmq7qy04hdkq9-r2ff0rjisbq86knpvz5rdr0f4di8sf3m-source
       > source root is r2ff0rjisbq86knpvz5rdr0f4di8sf3m-source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Configure flags:
       > --prefix=/nix/store/qkmmsfmcahnzd69b0z2k3552w2znnvsl-hello-exe-hello-1.0.0.2 exe:hello --package-db=clear --package-db=/build/tmp.6mOObf2evy/lib/ghc-9.10.2/lib/package.conf.d --flags=-threaded --exact-configuration --dependency=base=base-4.20.1.0-inplace --dependency=ghc-bignum=ghc-bignum-1.3-inplace --dependency=ghc-internal=ghc-internal-9.1002.0-inplace --dependency=ghc-prim=ghc-prim-0.12.0-inplace --dependency=integer-gmp=integer-gmp-1.1-inplace --dependency=rts=rts-1.0.2 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ar=ar --with-strip=strip --with-ld=ld --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-profiling --enable-static --enable-shared --disable-executable-dynamic --disable-coverage --enable-library-for-ghci --datadir=/nix/store/lvyxp0r6caghpz1sw3v0c20c6x8bdsd7-hello-exe-hello-1.0.0.2-data/share/ghc-9.10.2 --enable-split-sections
       > Configuring executable 'hello' for hello-1.0.0.2..
       > Warning: Unknown languages: GHC2024
       > Error: default-setup: The package hello-1.0.0.2 requires the following
       > languages which are not supported by ghc-9.10.2: GHC2024
       >
       For full logs, run:
         nix log /nix/store/6pm6s20b08ca011n7awb8dniy5qik1mw-hello-exe-hello-1.0.0.2.drv

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions