<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Eric,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Good to hear you managed to build GHC both with Make and Hadrian.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Best wishes with your first GHC patch!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrey<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Eric Crockett [mailto:ecrockett0@gmail.com]
<br>
<b>Sent:</b> 09 February 2019 18:21<br>
<b>To:</b> Andrey Mokhov <andrey.mokhov@newcastle.ac.uk><br>
<b>Subject:</b> Re: Cannot build with Hadrian<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Andrey,<o:p></o:p></p>
<div>
<p class="MsoNormal">I had already deleted the folder and tried again with make, which was successful. But since I sent the email, I figured I'd try again with hadrian as well. I followed exactly what I did above (which is what I did the first time, too) and
 it worked fine. *shrug*<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks anyway!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Eric<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sat, Feb 9, 2019 at 5:03 AM Andrey Mokhov <<a href="mailto:andrey.mokhov@newcastle.ac.uk">andrey.mokhov@newcastle.ac.uk</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi Eric,<br>
<br>
Can you show the contents of the "libffi-tarballs" directory in your GHC tree?<br>
<br>
This error says it expects exactly one libffi tarball to be there, but it got either 0 or more than 1. I guess there is just no tarball there in your case.<br>
<br>
Perhaps git clone failed to complete properly?<br>
<br>
Cheers,<br>
Andrey<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 8 Feb 2019 21:57:03 -0800<br>
From: Eric Crockett <<a href="mailto:ecrockett0@gmail.com" target="_blank">ecrockett0@gmail.com</a>><br>
To: ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>><br>
Subject: Cannot build with Hadrian<br>
Message-ID:<br>
        <CAApao_=RAyyXnBgL=<a href="mailto:KBdwgb1mLAWgiCsJok6unVhchY%2BuLBbTQ@mail.gmail.com" target="_blank">KBdwgb1mLAWgiCsJok6unVhchY+uLBbTQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
GHC newcomer here -- attempting to work on my first patch.<br>
<br>
I decided to try Hadrian, but ran into a problem.<br>
<br>
I think I obtained the source using<br>
> git clone --recursive <a href="https://gitlab.haskell.org/ghc/ghc" target="_blank">
https://gitlab.haskell.org/ghc/ghc</a><br>
Then:<br>
> ./boot && ./configure<br>
> hadrian/build.sh -j --flavour=devel2<br>
<br>
This ran for maybe 15 minutes, then showed the error below. Apparently I<br>
ended up with too many tarballs? Any suggestions?<br>
<br>
Thanks,<br>
Eric<br>
<br>
...<br>
<br>
 ...<br>
<br>
| Run Ghc CompileCWithGhc Stage1: rts/Inlines.c =><br>
> _build/stage1/rts/build/c/Inlines.thr_o<br>
> | Run Cc FindCDependencies Stage1: rts/Compact.cmm =><br>
> _build/stage1/rts/build/cmm/Compact.o.d<br>
> | Run Cc FindCDependencies Stage1: rts/PathUtils.c =><br>
> _build/stage1/rts/build/c/PathUtils.o.d<br>
> | Run Ghc CompileHs Stage1: rts/Compact.cmm =><br>
> _build/stage1/rts/build/cmm/Compact.o<br>
> | Run Ghc CompileCWithGhc Stage1: rts/PathUtils.c =><br>
> _build/stage1/rts/build/c/PathUtils.o<br>
> | Remove file _build/stage1/rts/build/libHSrts-1.0.a<br>
> | Run Ar Pack Stage1: _build/stage1/rts/build/c/Adjustor.o (and 113 more)<br>
> => _build/stage1/rts/build/libHSrts-1.0.a<br>
> /usr/bin/ar: creating _build/stage1/rts/build/libHSrts-1.0.a<br>
> /---------------------------------------------------\<br>
> | Successfully built library 'rts' (Stage1, way v). |<br>
> | Library: _build/stage1/rts/build/libHSrts-1.0.a   |<br>
> \---------------------------------------------------/<br>
> | Remove file _build/stage1/rts/build/libHSrts-1.0_thr.a<br>
> | Run Ar Pack Stage1: _build/stage1/rts/build/c/Adjustor.thr_o (and 115<br>
> more) => _build/stage1/rts/build/libHSrts-1.0_thr.a<br>
> /usr/bin/ar: creating _build/stage1/rts/build/libHSrts-1.0_thr.a<br>
> /-----------------------------------------------------\<br>
> | Successfully built library 'rts' (Stage1, way thr). |<br>
> | Library: _build/stage1/rts/build/libHSrts-1.0_thr.a |<br>
> \-----------------------------------------------------/<br>
> | Copy file: _build/generated/ghcplatform.h =><br>
> _build/stage1/rts/build/ghcplatform.h<br>
> | Copy file: _build/generated/ghcversion.h =><br>
> _build/stage1/rts/build/ghcversion.h<br>
> | Copy file: _build/generated/DerivedConstants.h =><br>
> _build/stage1/rts/build/DerivedConstants.h<br>
> | Copy file: _build/generated/ghcautoconf.h =><br>
> _build/stage1/rts/build/ghcautoconf.h<br>
> | Remove directory _build/stage1/libffi/build<br>
> shakeArgsWith    0.000s    0%<br>
> Function shake   0.005s    0%<br>
> Database read    0.000s    0%<br>
> With database    0.000s    0%<br>
> Running rules  548.377s   99%  =========================<br>
> Total          548.383s  100%<br>
> Error when running Shake build system:<br>
>   at src/Rules.hs:(35,19)-(52,17):<br>
>   at src/Rules.hs:52:5-17:<br>
> * Depends on: _build/stage1/lib/package.conf.d/rts-1.0.conf<br>
>   at src/Rules/Register.hs:(94,9)-(98,34):<br>
> * Depends on: _build/stage1/rts/build/ffi.h<br>
>   at src/Rules/Libffi.hs:(49,7)-(52,48):<br>
> * Depends on: _build/stage1/rts/build/ffi.h<br>
> _build/stage1/rts/build/ffitarget.h<br>
>   at src/Rules/Libffi.hs:52:13-48:<br>
> * Depends on: _build/stage1/libffi/build/inst/lib/libffi.a<br>
>   at src/Hadrian/Builder.hs:70:5-23:<br>
> * Depends on: _build/stage1/libffi/build/Makefile<br>
>   at src/Rules/Libffi.hs:107:9-27:<br>
> * Depends on: _build/stage1/libffi/build/Makefile.in<br>
> * Raised the exception:<br>
> Exactly one LibFFI tarball is expected<br>
> CallStack (from HasCallStack):<br>
>   error, called at src/Hadrian/Utilities.hs:60:27 in main:Hadrian.Utilities<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.haskell.org/pipermail/ghc-devs/attachments/20190208/87482224/attachment-0001.html" target="_blank">http://mail.haskell.org/pipermail/ghc-devs/attachments/20190208/87482224/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ghc-devs Digest, Vol 186, Issue 9<br>
****************************************<o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>