Help! Can't build HEAD

Sebastian Graf sgraf1337 at gmail.com
Wed Mar 15 13:44:46 UTC 2023


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.peytonjones at gmail.com>
An: "Sam Derbyshire" <sam.derbyshire at gmail.com>
Cc: "Sam Derbyshire" <sam at well-typed.com>; "GHC developers" 
<ghc-devs at 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.peytonjones at 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 at LHR-WD-22561:~/code/HEAD-15$
>>
>>Simon
>>
>>On Wed, 15 Mar 2023 at 12:46, Sam Derbyshire 
>><sam.derbyshire at gmail.com> wrote:
>>>Perhaps even `git submodule update --init`.
>>>
>>>On Wed, 15 Mar 2023 at 13:41, Matthew Pickering 
>>><matthewtpickering at 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.peytonjones at 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 at haskell.org
>>>>http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20230315/4ebd1c60/attachment.html>


More information about the ghc-devs mailing list