Failed to build latest stable GHC on FreeBSD with Hadrian

Alexis Praga alexis.praga at gmail.com
Fri Aug 27 17:15:26 UTC 2021


Hi,

As a complete beginner in regards to GHC, I tried to build GHC 9.2 as it
looked like the latest stable from git.I failed to build 9.0.1 before that.

After checking out the ghc-9.2 branch, I ran (following the wiki):

> ./boot
> set LOCALBASE=/usr/local
> ./configure --with-gmp-includes=$LOCALBASE/include
--with-gmp-libraries=$LOCALBASE/lib --disable-large-address-space
> hadrian/build -j

This failed with :

> | Configure package 'rts'
> | Configure package 'haddock'
> | Configure package 'ghc-bin'
> # cabal-configure (for _build/stage0/utils/haddock/setup-config)
> # cabal-configure (for _build/stage0/ghc/setup-config)
> hadrian: Encountered missing or private dependencies:
> ghc ==9.3.*
>
> Error when running Shake build system:
>   at action, called at src/Rules.hs:40:19 in main:Rules
>   at need, called at src/Rules.hs:62:5 in main:Rules
> * Depends on: _build/stage0/bin/haddock
>   at apply1, called at
src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in
shake-0.19.4-9f51719be46f95213676da51d6a6626f69f0cfa15957aab44867ff78b757df38:Development.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (ContextDataKey (Context {stage = Stage0, package =
Package {pkgType = Program, pkgName = "haddock", pkgPath =
"utils/haddock"}, way = v}))
>   at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in
main:Hadrian.Oracles.Cabal.Rules
> * Depends on: _build/stage0/utils/haddock/setup-config
> * Raised the exception:
> ExitFailure 1

The config.log is attached.

Any tips on how to proceed would be appreciated, thanks !

-- 

   Alexis Praga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210827/19dc99ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 263230 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210827/19dc99ff/attachment-0001.bin>


More information about the ghc-devs mailing list