Failed to build latest stable GHC on FreeBSD with Hadrian

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
| 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
This failed with : 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

On Fri, Aug 27, 2021 at 07:15:26PM +0200, Alexis Praga wrote:
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
The attached script works for me on FreeBSD 12.2. Perhaps it'll work for you as well (you many to tweek some of the configured paths). -- Viktor.
participants (2)
-
Alexis Praga
-
Viktor Dukhovni