It sounds like you had an old checkout of the haddock submodules. You can update all submodules to the correct checkout by running `git submodule update`.
On 21/08/27 21:31, Alexis Praga wrote:
Thanks Viktor for the script. Actually, building finished without issue after cleaning the whole directory and starting from a fresh git clone. I used the same commands as on my first message. Sorry about that and thanks for taking the time to answer quickly ! On Fri, Aug 27, 2021 at 7:59 PM Jeffrey Young <[email protected]> wrote: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, [email protected] wrote: > Send ghc-devs mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > To: [email protected] > Subject: Failed to build latest stable GHC on FreeBSD with Hadrian > Message-ID: > <CAH3o9gzh99J8SWPebkKsykEf+UD59S7-bSZi9OPQY1WxC_tE= [email protected]> > 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 ! > _______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs-- Alexis Praga
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list [email protected] http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
