<div dir="ltr"><div dir="ltr">Hi,<br><br>Does `git clean -fdx .` in libraries/Cabal help? git clean doesn't go into submodules.<br><br>-Krzysztof<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 6:09 PM My Nguyen <<a href="mailto:mnguyen1@brynmawr.edu" target="_blank">mnguyen1@brynmawr.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div style="direction:ltr">
<div><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Hi all,</span></div>
</div>
<div>
<div id="m_4072115928933759355m_8863188587282715971divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I've finished quite a big rebase and was trying to rebuild, but it failed with:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<blockquote type="cite" style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont;font-size:15px">
<div style="color:rgb(51,51,51);font-size:12px">
<blockquote type="cite">
<div dir="ltr" id="m_4072115928933759355m_8863188587282715971x_divtagdefaultwrapper" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">
<div style="font-size:11px;font-family:Menlo,serif,EmojiFont;margin:0px;line-height:normal;font-stretch:normal">
<span style="font-variant-ligatures:no-common-ligatures">ghc-cabal: Encountered missing dependencies:</span></div>
<div style="font-size:11px;font-family:Menlo,serif,EmojiFont;margin:0px;line-height:normal;font-stretch:normal">
<span style="font-variant-ligatures:no-common-ligatures">Cabal ==2.5.*</span></div>
</div>
</blockquote>
</div>
</blockquote>
I then tried applying my patch on a fresh checkout of GHC and found the reason:
<div><br>
<p></p>
<p style="margin-top:0;margin-bottom:0"></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b>libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:119:1:</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)"><b>error:</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Binary.hi</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> 
</span>Cabal-2.4.0.1:Distribution.Compat.Binary differs from name found in the interface file Cabal-2.5.0.0:Distribution.Compat.Binary (if these names look the same, try again with -dppr-debug)</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(82,48,225);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b>119 |</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"></span><span style="font-variant-ligatures:no-common-ligatures"><b>import Distribution.Compat.Binary<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> 
  </span>(Binary (..))</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures:no-common-ligatures"><b> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b>libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:120:1:</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)"><b>error:</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Semigroup.hi</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> 
</span>Cabal-2.4.0.1:Distribution.Compat.Semigroup differs from name found in the interface file Cabal-2.5.0.0:Distribution.Compat.Semigroup (if these names look the same, try again with -dppr-debug)</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(82,48,225);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b>120 |</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"></span><span style="font-variant-ligatures:no-common-ligatures"><b>import Distribution.Compat.Semigroup
 (Semigroup (..), gmappend, gmempty)</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures:no-common-ligatures"><b> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:13px">
<span style="font-variant-ligatures:no-common-ligatures"></span><br>
</p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b>libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:141:1:</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)"><b>error:</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Stack.hi</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> 
</span>Cabal-2.4.0.1:Distribution.Compat.Stack differs from name found in the interface file Cabal-2.5.0.0:Distribution.Compat.Stack (if these names look the same, try again with -dppr-debug)</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(82,48,225);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b>141 |</b></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"></span><span style="font-variant-ligatures:no-common-ligatures"><b>import Distribution.Compat.Stack</b></span></p>
<p style="margin:0px;font:11px Menlo;color:rgb(195,55,32);background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)"><b><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures:no-common-ligatures"><b> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></p>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm sure I did `git module update`; I even `git clean` everything and  `make` from fresh but somehow the cabal still isn't updated. Can anyone help me on why this is happening and how to fix it?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks so much,</p>
<p style="margin-top:0;margin-bottom:0">My</p>
</div>
</div>
</div>

</div>

_______________________________________________<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" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>