-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: build failureA package fails to buildA package fails to build6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language
Description
Steps To Reproduce
Steps to reproduce the behavior:
git checkout ca74eaf94773fafb553d91de54af1391ac34801dnix-build -A pkgs.haskell.packages.ghc912.jailbreak-cabal
Build log
Build Log
this derivation will be built:
/nix/store/i5v45zn6yii5ry04sv51qpy1xzqr7xba-jailbreak-cabal-1.4.drv
building '/nix/store/i5v45zn6yii5ry04sv51qpy1xzqr7xba-jailbreak-cabal-1.4.drv'...
Running phase: setupCompilerEnvironmentPhase
Build with /nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1.
Running phase: unpackPhase
unpacking source archive /nix/store/nb6bdgdcla3c7sbxn84mzs8k5q0ib5ys-jailbreak-cabal-1.4.tar.gz
source root is jailbreak-cabal-1.4
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file jailbreak-cabal-1.4/Setup.hs
Running phase: patchPhase
Running phase: compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.nemVhMs1s4/setup-package.conf.d -threaded
[1 of 2] Compiling Main ( Setup.hs, /build/tmp.nemVhMs1s4/Main.o )
[2 of 2] Linking Setup
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
configureFlags: --verbose --prefix=/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/rfcy0292nk8i7bq49l6ps9373rn416cm-jailbreak-cabal-1.4-doc/share/doc/jailbreak-cabal-1.4 --with-gcc=gcc --package-db=/build/tmp.nemVhMs1s4/package.conf.d --ghc-option=-j12 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --extra-lib-dirs=/nix/store/wm1qn5jqrxpcjkc640gq8a90ns5gw3cn-ncurses-6.4.20221231/lib --extra-lib-dirs=/nix/store/r04wysx6yl7ys1rdv1b1lih6in1810r0-libffi-3.4.6/lib --extra-lib-dirs=/nix/store/wkysiv0sxqs6wn44nb46bbyig4plzsy4-elfutils-0.192/lib --extra-lib-dirs=/nix/store/ghb61mqc90qf1nx6kyahhhagicyxvcyg-gmp-with-cxx-6.3.0/lib
Using Parsec parser
Configuring jailbreak-cabal-1.4...
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.14.1.0 supports
'ghc' version < 9.12):
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/ghc is version
9.12.1
Flags chosen: cabal-syntax=True
Dependency Cabal >=3.7: using Cabal-3.14.1.0
Dependency Cabal-syntax >=3.7: using Cabal-syntax-3.14.1.0
Dependency base <5: using base-4.21.0.0
Source component graph: component exe:jailbreak-cabal
Configured component graph:
component jailbreak-cabal-1.4-FOV5pVdsQUhBfHh4mFzR5M-jailbreak-cabal
include Cabal-3.14.1.0-inplace
include Cabal-syntax-3.14.1.0-inplace
include base-4.21.0.0-inplace
Linked component graph:
unit jailbreak-cabal-1.4-FOV5pVdsQUhBfHh4mFzR5M-jailbreak-cabal
include Cabal-3.14.1.0-inplace
include Cabal-syntax-3.14.1.0-inplace
include base-4.21.0.0-inplace
Ready component graph:
definite jailbreak-cabal-1.4-FOV5pVdsQUhBfHh4mFzR5M-jailbreak-cabal
depends Cabal-3.14.1.0-inplace
depends Cabal-syntax-3.14.1.0-inplace
depends base-4.21.0.0-inplace
Using Cabal-3.14.1.0 compiled by ghc-9.12
Using compiler: ghc-9.12.1
Using install prefix:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4
Executables installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/bin
Libraries installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/lib/ghc-9.12.1/lib/x86_64-linux-ghc-9.12.1-inplace/jailbreak-cabal-1.4
Dynamic Libraries installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/lib/ghc-9.12.1/lib/x86_64-linux-ghc-9.12.1-inplace
Private executables installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/libexec/x86_64-linux-ghc-9.12.1-inplace/jailbreak-cabal-1.4
Data files installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/share/x86_64-linux-ghc-9.12.1-inplace/jailbreak-cabal-1.4
Documentation installed in:
/nix/store/rfcy0292nk8i7bq49l6ps9373rn416cm-jailbreak-cabal-1.4-doc/share/doc/jailbreak-cabal-1.4
Configuration files installed in:
/nix/store/pwpnck8drgc5962648qqaszxgrrrizpm-jailbreak-cabal-1.4/etc
No alex found
Using ar found on system at:
/nix/store/srcmmqi8kxjfygd0hyy42c8hv6cws83b-binutils-wrapper-2.43.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 14.2.1 given by user at:
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/gcc
Using ghc version 9.12.1 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/ghc
Using ghc-pkg version 9.12.1 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/ghc-pkg-9.12.1
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.30.0 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/haddock-ghc-9.12.1
No happy found
No haskell-suite found
No haskell-suite-pkg found
No hmake found
Using hpc version 0.69 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/hpc-ghc-9.12.1
Using hsc2hs version 0.68.10 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/hsc2hs-ghc-9.12.1
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/ld
No pkg-config found
Using runghc version 9.12.1 found on system at:
/nix/store/bhaymnzw8vr9w3hhf2zihklagffn0z0w-ghc-9.12.1/bin/runghc-9.12.1
Using strip version 2.43 found on system at:
/nix/store/xcn9p4xxfbvlkpah7pwchpav4ab9d135-gcc-wrapper-14-20241116/bin/strip
Using tar found on system at:
/nix/store/9cwwj1c9csmc85l2cqzs3h9hbf1vwl6c-gnutar-1.35/bin/tar
No uhc found
Running phase: buildPhase
Preprocessing executable 'jailbreak-cabal' for jailbreak-cabal-1.4...
Building executable 'jailbreak-cabal' for jailbreak-cabal-1.4...
[1 of 1] Compiling Main ( Main.hs, dist/build/jailbreak-cabal/jailbreak-cabal-tmp/Main.o )
Main.hs:18:41: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
• Couldn't match expected type: IO GenericPackageDescription
with actual type: Distribution.Utils.Path.SymbolicPath
Distribution.Utils.Path.Pkg Distribution.Utils.Path.File
-> IO GenericPackageDescription
• Probable cause: ‘readGenericPackageDescription’ is applied to too few arguments
In the first argument of ‘(>>=)’, namely
‘readGenericPackageDescription silent cabalFile’
In the expression:
readGenericPackageDescription silent cabalFile
>>=
writeGenericPackageDescription cabalFile . stripVersionRestrictions
In the first argument of ‘mapM_’, namely
‘(\ cabalFile
-> readGenericPackageDescription silent cabalFile
>>=
writeGenericPackageDescription cabalFile
. stripVersionRestrictions)’
|
18 | main = getArgs >>= mapM_ (\cabalFile -> readGenericPackageDescription silent cabalFile >>= writeGenericPackageDescription cabalFile . stripVersionRestrictions)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Main.hs:18:78: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
• Couldn't match type: [Char]
with: Maybe
(Distribution.Utils.Path.SymbolicPath
Distribution.Utils.Path.CWD
(Distribution.Utils.Path.Dir Distribution.Utils.Path.Pkg))
Expected: Maybe
(Distribution.Utils.Path.SymbolicPath
Distribution.Utils.Path.CWD
(Distribution.Utils.Path.Dir Distribution.Utils.Path.Pkg))
Actual: String
• In the second argument of ‘readGenericPackageDescription’, namely
‘cabalFile’
In the first argument of ‘(>>=)’, namely
‘readGenericPackageDescription silent cabalFile’
In the expression:
readGenericPackageDescription silent cabalFile
>>=
writeGenericPackageDescription cabalFile . stripVersionRestrictions
|
18 | main = getArgs >>= mapM_ (\cabalFile -> readGenericPackageDescription silent cabalFile >>= writeGenericPackageDescription cabalFile . stripVersionRestrictions)
| ^^^^^^^^^
error: builder for '/nix/store/i5v45zn6yii5ry04sv51qpy1xzqr7xba-jailbreak-cabal-1.4.drv' failed with exit code 1;
last 25 log lines:
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Main.hs:18:78: error: [8;;https://errors.haskell.org/messages/GHC-83865GHC-838658;;]
> • Couldn't match type: [Char]
> with: Maybe
> (Distribution.Utils.Path.SymbolicPath
> Distribution.Utils.Path.CWD
> (Distribution.Utils.Path.Dir Distribution.Utils.Path.Pkg))
> Expected: Maybe
> (Distribution.Utils.Path.SymbolicPath
> Distribution.Utils.Path.CWD
> (Distribution.Utils.Path.Dir Distribution.Utils.Path.Pkg))
> Actual: String
> • In the second argument of ‘readGenericPackageDescription’, namely
> ‘cabalFile’
> In the first argument of ‘(>>=)’, namely
> ‘readGenericPackageDescription silent cabalFile’
> In the expression:
> readGenericPackageDescription silent cabalFile
> >>=
> writeGenericPackageDescription cabalFile . stripVersionRestrictions
> |
> 18 | main = getArgs >>= mapM_ (\cabalFile -> readGenericPackageDescription silent cabalFile >>= writeGenericPackageDescription cabalFile . stripVersionRestrictions)
> | ^^^^^^^^^
>
For full logs, run 'nix log /nix/store/i5v45zn6yii5ry04sv51qpy1xzqr7xba-jailbreak-cabal-1.4.drv'.
Additional context
This blocks using doJailbreak for other haskell packages.
Metadata
- system:
"x86_64-linux" - host os:
Linux 6.6.67, NixOS, 24.11 (Vicuna), 24.11.711867.6c90912761c4 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.24.10 - channels(root):
"nixos-24.11" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Notify maintainers
@sternenseemann (apologies if you are not the right person to tag here)
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: build failureA package fails to buildA package fails to build6.topic: haskellGeneral-purpose, statically typed, purely functional programming languageGeneral-purpose, statically typed, purely functional programming language
Projects
Status
Done