Hi Simon,

I had that very issue a few days ago, but saw this thread too late.
For me it was enough to cd into utils/hpc and do a `git checkout .`.

Sebastian

------ Originalnachricht ------
Von: "Simon Peyton Jones" <simon.peytonjo...@gmail.com>
An: "Sam Derbyshire" <sam.derbysh...@gmail.com>
Cc: "Sam Derbyshire" <s...@well-typed.com>; "GHC developers" <ghc-devs@haskell.org>
Gesendet: 15.03.2023 13:57:03
Betreff: Re: Help! Can't build HEAD

Ah.

rm utils/hpc
git submodule update

does the job. Who would have guessed that? Maybe this thread will help others.

Could hadrian have avoided this, perhaps?

Anyway, I'm rolling again, thanks

Simon

On Wed, 15 Mar 2023 at 12:54, Simon Peyton Jones <simon.peytonjo...@gmail.com> wrote:
Oh I didn't know you had to say "--init".  Anyway that fails

git submodule update --init
Submodule 'utils/hpc' (https://gitlab.haskell.org/hpc/hpc-bin.git) registered for path 'utils/hpc' fatal: destination path '/home/simonpj/code/HEAD-15/utils/hpc' already exists and is not an empty directory. fatal: clone of 'https://gitlab.haskell.org/hpc/hpc-bin.git' into submodule path '/home/simonpj/code/HEAD-15/utils/hpc' failed
Failed to clone 'utils/hpc'. Retry scheduled
fatal: destination path '/home/simonpj/code/HEAD-15/utils/hpc' already exists and is not an empty directory. fatal: clone of 'https://gitlab.haskell.org/hpc/hpc-bin.git' into submodule path '/home/simonpj/code/HEAD-15/utils/hpc' failed
Failed to clone 'utils/hpc' a second time, aborting
simonpj@LHR-WD-22561:~/code/HEAD-15$

Simon

On Wed, 15 Mar 2023 at 12:46, Sam Derbyshire <sam.derbysh...@gmail.com> wrote:
Perhaps even `git submodule update --init`.

On Wed, 15 Mar 2023 at 13:41, Matthew Pickering <matthewtpicker...@gmail.com> wrote:
You need to run `git submodule update` I think.

On Wed, Mar 15, 2023 at 12:36 PM Simon Peyton Jones
<simon.peytonjo...@gmail.com> wrote:
>
> Aargh!  I can't build HEAD!
>
> I get this:
> ./hadrian/build
> Up to date
> ]0;Starting... ]0;Finished in 0.04s Error, file does not exist and no rule available:
>   utils/hpc/hpc-bin.cabal
> Build failed.
>
>
> This is after
> hadrian/build clean
> ./boot
> ./configure
>
> I'm very stalled.  All my trees are borked.  Can anyone help?
>
> Simon
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to