Cabal build of Hadrian Fail with cabal version 3.8.1.0, ghc 9.4.1
Summary
Cabal build of hadrian
file because of dependencies without using --allow-newer
, and fails on compile when using --alow-newer
:
Without --allow-newer
:
/opt/local/bin/cabal --store-dir=/opt/local/var/macports/build/_opt_local_ports_lang_ghc/hadrian/work/.home/.cabal/store --logs-dir=/opt/local/var/macports/build/_opt_local_ports_lang_ghc/hadrian/work/.home/.cabal/logs build exe:hadrian --project-file=cabal.project --prefix=/opt/local
…
:info:build Resolving dependencies...
:info:build Error: cabal-prebuilt: Could not resolve dependencies:
:info:build [__0] trying: hadrian-0.1.0.0 (user goal)
:info:build [__1] trying: hadrian:+selftest
:info:build [__2] trying: QuickCheck-2.14.2 (dependency of hadrian +selftest)
:info:build [__3] trying: splitmix-0.1.0.4 (dependency of QuickCheck)
:info:build [__4] next goal: base (dependency of hadrian)
:info:build [__4] rejecting: base-4.17.0.0/installed-4.17.0.0 (conflict: splitmix =>
:info:build base>=4.3 && <4.17)
:info:build [__4] rejecting: base-4.16.1.0, base-4.16.0.0, base-4.15.1.0, base-4.15.0.0,
:info:build base-4.14.3.0, base-4.14.2.0, base-4.14.1.0, base-4.14.0.0, base-4.13.0.0,
:info:build base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0, base-4.10.0.0,
:info:build base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0,
:info:build base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0,
:info:build base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0,
:info:build base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0,
:info:build base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable
:info:build package requires installed instance)
:info:build [__4] fail (backjumping, conflict set: base, hadrian, splitmix)
:info:build After searching the rest of the dependency tree exhaustively, these were the
:info:build goals I've had most trouble fulfilling: base, QuickCheck, splitmix, hadrian,
With --allow-newer
:
/opt/local/bin/cabal --store-dir=/opt/local/var/macports/build/_opt_local_ports_lang_ghc/hadrian/work/.home/.cabal/store --logs-dir=/opt/local/var/macports/build/_opt_local_ports_lang_ghc/hadrian/work/.home/.cabal/logs build exe:hadrian --project-file=cabal.project --allow-newer --prefix=/opt/local
…
:info:build [ 8 of 12] Compiling Data.Primitive.Types ( Data/Primitive/Types.hs, dist/build/Data/Primitive/Types.o, dist/build/Data/Primitive/Types.dyn_o )
:info:build Data/Primitive/Types.hs:265:373: error:
:info:build • Couldn't match type ‘Word64#’ with ‘Word#’
:info:build Expected: Word64_#
:info:build Actual: Word64#
:info:build • In the fourth argument of ‘setWord64Array#’, namely ‘x#’
:info:build In the first argument of ‘internal’, namely
:info:build ‘(setWord64Array# arr# i n x#)’
:info:build In the first argument of ‘unsafeCoerce#’, namely
:info:build ‘(internal (setWord64Array# arr# i n x#))’
:info:build |
:info:build 265 | derivePrim(Word64, W64#, sIZEOF_WORD64, aLIGNMENT_WORD64,
:info:build | ^^
Environment
- GHC version used: 9.4.1
Optional:
- macOS 12.5.1 21G83 x86_64
- Xcode 13.4.1 13F100