<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=us-ascii">
<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-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.Code, li.Code, div.Code
        {mso-style-name:Code;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Friends<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">I’m trying to update my installation of alex, on Unix (Ubuntu).  But I get the dump below<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">It’s complaining about a lock file being an invalid argument (see highlight below).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">If I manually remove the file I get past that, it successfully installs tf-random, but the same thing happens on the next package.  So I can install packages one at a time, but that’s silly.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif">Simon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="Code">cabal install alex<o:p></o:p></p>
<p class="Code">Resolving dependencies...<o:p></o:p></p>
<p class="Code">Configuring tf-random-0.5...<o:p></o:p></p>
<p class="Code">Building tf-random-0.5...<o:p></o:p></p>
<p class="Code">Failed to install tf-random-0.5<o:p></o:p></p>
<p class="Code">Build log ( /home/simonpj/.cabal/logs/tf-random-0.5.log ):<o:p></o:p></p>
<p class="Code">cabal: Entering directory '/tcabal mp/cabal-tmp-26141/tf-random-0.5'<o:p></o:p></p>
<p class="Code">Configuring tf-random-0.5...<o:p></o:p></p>
<p class="Code">Building tf-random-0.5...<o:p></o:p></p>
<p class="Code">Preprocessing library tf-random-0.5...<o:p></o:p></p>
<p class="Code">[1 of 4] Compiling System.Random.TF.Gen ( src/System/Random/TF/Gen.hs, dist/build/System/Random/TF/Gen.o )<o:p></o:p></p>
<p class="Code">[2 of 4] Compiling System.Random.TF.Init ( src/System/Random/TF/Init.hs, dist/build/System/Random/TF/Init.o )<o:p></o:p></p>
<p class="Code"><o:p> </o:p></p>
<p class="Code">src/System/Random/TF/Init.hs:94:5: warning: [-Wdeprecations]<o:p></o:p></p>
<p class="Code">    In the use of ‘bitSize’ (imported from Data.Bits):<o:p></o:p></p>
<p class="Code">    Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"<o:p></o:p></p>
<p class="Code">   |<o:p></o:p></p>
<p class="Code">94 |   | bitSize n > 64 = error "mkTFGen: case where size of Int > 64 not implemented"<o:p></o:p></p>
<p class="Code">   |     ^^^^^^^<o:p></o:p></p>
<p class="Code">[3 of 4] Compiling System.Random.TF ( src/System/Random/TF.hs, dist/build/System/Random/TF.o )<o:p></o:p></p>
<p class="Code">[4 of 4] Compiling System.Random.TF.Instances ( src/System/Random/TF/Instances.hs, dist/build/System/Random/TF/Instances.o )<o:p></o:p></p>
<p class="Code">Creating package registration file:<o:p></o:p></p>
<p class="Code">/tmp/pkgConf-tf-random-05965166491189641421.5<o:p></o:p></p>
<p class="Code">Installing library in<o:p></o:p></p>
<p class="Code">/home/simonpj/.cabal/lib/x86_64-linux-ghc-8.2.1/tf-random-0.5-ABDhxe3mXYlHUEE5hzgewx<o:p></o:p></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">Registering tf-random-0.5...<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">cabal: '/usr/local/bin/ghc-pkg' exited with an error:<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">ghc-pkg: Couldn't open database<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">/home/simonpj/.ghc/x86_64-linux-8.2.1/package.conf.d for modification:<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">{handle:<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">/home/simonpj/.ghc/x86_64-linux-8.2.1/package.conf.d/package.cache.lock}:<o:p></o:p></span></p>
<p class="Code"><span style="background:yellow;mso-highlight:yellow">hLock: invalid argument (Bad file descriptor)</span><o:p></o:p></p>
<p class="Code">cabal: Leaving directory '/tmp/cabal-tmp-26141/tf-random-0.5'<o:p></o:p></p>
<p class="Code">cabal: Error: some packages failed to install:<o:p></o:p></p>
<p class="Code">QuickCheck-2.10.0.1 depends on tf-random-0.5 which failed to install.<o:p></o:p></p>
<p class="Code">alex-3.2.1 depends on tf-random-0.5 which failed to install.<o:p></o:p></p>
<p class="Code">tf-random-0.5 failed during the final install step. The exception was:<o:p></o:p></p>
<p class="Code">ExitFailure 1<o:p></o:p></p>
<p class="Code">simonpj@cam-05-unx:~/code/HEAD$<span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</body>
</html>