Failed to build latest stable GHC on FreeBSD with Hadrian

Jeffrey Young jeff.young at tweag.io
Fri Aug 27 17:57:45 UTC 2021


Hi Alexis,

This line shows the error:

> | 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.*

A package had a constraint on the ghc api to only accept ghc == 9.3.*. 
Since you are trying to build ghc 9.2 this fails. The package in 
question is printed by hadrian in this bit of your log:


> 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

Notice the `pkgName` field in the `Package` record in the error that 
hadrian produced. It shows us that haddock was the cuplrit. Not sure 
why/how that cabal file got mixed up but I bet if you went to 
`${GHC_HOME}/utils/haddock/haddock.cabal` you'll find the constraint in 
question and should be able to switch it to `ghc==9.2.*` and rebuild 
according to the wiki.


Hope this helps,


Jeff


On 8/27/21 10:08 AM, ghc-devs-request at haskell.org wrote:
> Send ghc-devs mailing list submissions to
> 	ghc-devs at haskell.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> or, via email, send a message with subject or body 'help' to
> 	ghc-devs-request at haskell.org
>
> You can reach the person managing the list at
> 	ghc-devs-owner at haskell.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ghc-devs digest..."
>
>
> Today's Topics:
>
>     1. Failed to build latest stable GHC on FreeBSD with Hadrian
>        (Alexis Praga)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 27 Aug 2021 19:15:26 +0200
> From: Alexis Praga <alexis.praga at gmail.com>
> To: ghc-devs at haskell.org
> Subject: Failed to build latest stable GHC on FreeBSD with Hadrian
> Message-ID:
> 	<CAH3o9gzh99J8SWPebkKsykEf+UD59S7-bSZi9OPQY1WxC_tE=w at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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 !
>


More information about the ghc-devs mailing list