<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Did you change the Cabal submodule at all in your work? Maybe it's out of sync somehow...<div class=""><br class=""></div><div class="">What happens if you build GHC without including your changes? Does it work?<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 3, 2018, at 12:13 PM, My Nguyen <<a href="mailto:mnguyen1@brynmawr.edu" class="">mnguyen1@brynmawr.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="direction: ltr;" class=""><div style="direction: ltr;" class="">Hello,</div><div style="direction: ltr;" class=""><br class=""></div><div style="direction: ltr;" class="">Thanks for the suggestion. Unfortunately, the problem persists :(! </div><div style="direction: ltr;" class=""><br class=""></div><div style="direction: ltr;" class="">My </div></div><div class=""> </div><hr tabindex="-1" style="display: inline-block; width: 736.953125px;" class=""><div id="divRplyFwdMsg" dir="dir="ltr"" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Krzysztof Gogolewski <<a href="mailto:krz.gogolewski@gmail.com" class="">krz.gogolewski@gmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Monday, December 3, 2018 2:46 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>My Nguyen<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: Cabal not updated after rebase?<div class=""> </div></font></div><div dir="ltr" class=""><div dir="ltr" class="">Hi,<br class=""><br class="">Does `git clean -fdx .` in libraries/Cabal help? git clean doesn't go into submodules.<br class=""><br class="">-Krzysztof<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Dec 3, 2018 at 6:09 PM My Nguyen <<a href="mailto:mnguyen1@brynmawr.edu" target="_blank" class="">mnguyen1@brynmawr.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class=""><div style="direction: ltr;" class=""><div class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">Hi all,</span></div></div><div class=""><div id="m_4072115928933759355m_8863188587282715971divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I've finished quite a big rebase and was trying to rebuild, but it failed with:</div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></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;" class=""><div style="color: rgb(51, 51, 51); font-size: 12px;" class=""><blockquote type="cite" class=""><div dir="ltr" id="m_4072115928933759355m_8863188587282715971x_divtagdefaultwrapper" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont;" class=""><div style="font-size: 11px; font-family: Menlo, serif, EmojiFont; margin: 0px; line-height: normal; font-stretch: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">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;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">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 class=""><br class=""><div class=""><br class="webkit-block-placeholder"></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:119:1:</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class=""><b class="">error:</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Binary.hi</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> <span class="Apple-converted-space"> </span></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></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class="">119 |</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">import Distribution.Compat.Binary<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>(Binary (..))</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="Apple-converted-space"> </span>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:120:1:</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class=""><b class="">error:</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Semigroup.hi</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> <span class="Apple-converted-space"> </span></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></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class="">120 |</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">import Distribution.Compat.Semigroup (Semigroup (..), gmappend, gmempty)</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="Apple-converted-space"> </span>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:141:1:</b></span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(195, 55, 32);" class=""><b class="">error:</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>Bad interface file: libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Stack.hi</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">       </span>Something is amiss; requested module<span class="m_4072115928933759355m_8863188587282715971Apple-converted-space"> <span class="Apple-converted-space"> </span></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></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class="">141 |</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class="">import Distribution.Compat.Stack</b></span></div><div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(195, 55, 32); background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: rgb(82, 48, 225);" class=""><b class=""><span class="m_4072115928933759355m_8863188587282715971Apple-converted-space">   </span>|</b></span><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><span class="Apple-converted-space"> </span>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</b></span></div><div class=""><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">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?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks so much,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">My</div></div></div></div></div>_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" target="_blank" class="">ghc-devs@haskell.org</a><br class=""><a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Cmnguyen1%40brynmawr.edu%7C933eb64c19334c7f3b0c08d659581060%7Cc94b117b616347fd93f8b8001804ae6f%7C1%7C1%7C636794632110767582&sdata=OoKBYSFxyO2u8wcXlIvWvhX3O2mtoXN7ckHMOBJ8puI%3D&reserved=0" originalsrc="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" shash="IMraRqe6FlQTQa8OIqfFqlQf7dp3jK6RzWzLlWr5eDyxk2Y/STkUHdj8cwZtsg0PAFcPBKOUeIwN/zjhh1Pc70z+vqJAnjZm/hZTTJqDqQo2+C3IaxWtmULmeCCEKcGlI/BCbenO/GZwzATDkqQvBEUwhqbGk0kP9gOMrZcbLWY=" rel="noreferrer" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br class=""></blockquote></div></div><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">_______________________________________________</span><br style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class="">ghc-devs mailing list</span><br style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class=""><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a></span><br style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: -apple-system, HelveticaNeue; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;" class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a></span></div></blockquote></div><br class=""></div></body></html>