Return-Path: <ietf-dane@dukhovni.org>
Received: from straasha.imrryr.org (straasha.imrryr.org [100.2.39.101])
	by haskell.org (Postfix) with ESMTPS id B9C0FBC562
	for <ghc-devs@haskell.org>; Sun,  9 Jul 2023 17:20:22 +0000 (UTC)
Received: by straasha.imrryr.org (Postfix, from userid 1001)
	id B204E12E6AB; Sun,  9 Jul 2023 13:44:09 -0400 (EDT)
Date: Sun, 9 Jul 2023 13:44:09 -0400
From: Viktor Dukhovni <ietf-dane@dukhovni.org>
To: ghc-devs@haskell.org
Subject: Re: I can't build HEAD
Message-ID: <ZKrx6QJKd4yirKpn@straasha.imrryr.org>
Reply-To: ghc-devs@haskell.org
References: 
 <CAJKmMz9UkYhSq4G8OgQA9Pr8hAjGD1OQFvRLTxXvB3Tk=-msJw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: 
 <CAJKmMz9UkYhSq4G8OgQA9Pr8hAjGD1OQFvRLTxXvB3Tk=-msJw@mail.gmail.com>

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.
