Subject: Re: I can't build HEAD
From: Viktor Dukhovni <[email-masked]>
To: [email-masked]
Date: Sun, 9 Jul 2023 13:44:09 -0400

On Sun, Jul 09, 2023 at 05:49:38PM +0100, Simon Peyton Jones wrote:

> in a clean HEAD build, including "git submodule update", I get this.
> 
> Can anyone help?

Did you run "cabal update"?  What is your boot compiler version?

> # cabal-configure (for _build/stage0/libraries/text/setup-config)
> | Run GhcPkg Recache (Stage0 InTreeLibs): none => none
> hadrian: Encountered missing or private dependencies:
> data-array-byte >=0.1 && <0.2

So far, it looks like HEAD is building for me (still running and got
past building "text"):

    /--------------------------------------------------------------------------------------------\
    | Successfully built library 'text' (Stage0 InTreeLibs, way v).                              |
    | Library: /home/viktor/dev/ghc/_build/stage0/libraries/text/build/libHStext-2.0.2-inplace.a |
    | Library synopsis: An efficient packed Unicode text type.                                   |
    \--------------------------------------------------------------------------------------------/
    ... many lines and some time later ...
    /----------------------------------------------------------------------------------------------\
    | Successfully built library 'text' (Stage1, way p).                                           |
    | Library: /home/viktor/dev/ghc/_build/stage1/libraries/text/build/libHStext-2.0.2-inplace_p.a |
    | Library synopsis: An efficient packed Unicode text type.                                     |
    \----------------------------------------------------------------------------------------------/

* Source tree clean
* Boot compiler GHC 9.6.1
* Cabal 3.10.1.0 + cabal update

Build script (FreeBSD):

    BOOTPREFIX=$HOME/.local/ghc-9.6
    BOOTGHC=$BOOTPREFIX/bin/ghc
    PREFIX=$HOME/.local/ghc-master
    BDIR=$HOME/dev/ghc/_build

    git submodule sync
    git submodule update
    ./boot

    GHC=$BOOTGHC \
    CLANG=/usr/local/bin/clang15 \
    LLC=/usr/local/bin/llc15 \
    OPT=/usr/local/bin/opt15 \
    AR=/usr/local/bin/ar fp_prog_ar=$AR bash ./configure \
        --prefix=$PREFIX \
        --enable-large-address-space \
        --with-gmp-includes=/usr/local/include \
        --with-gmp-libraries=/usr/local/lib \
        --with-hs-cpp=/usr/bin/cc

    GHC=$BOOTGHC \
    hadrian/build -j9 -o"${BDIR}" --docs=no-sphinx binary-dist-dir

-- 
    Viktor.