Did you change the Cabal submodule at all in your work? Maybe it's out of sync 
somehow...

What happens if you build GHC without including your changes? Does it work?

> On Dec 3, 2018, at 12:13 PM, My Nguyen <[email protected]> wrote:
> 
> Hello,
> 
> Thanks for the suggestion. Unfortunately, the problem persists :(! 
> 
> My 
>  
> From: Krzysztof Gogolewski <[email protected]>
> Sent: Monday, December 3, 2018 2:46 PM
> To: My Nguyen
> Cc: [email protected]
> Subject: Re: Cabal not updated after rebase?
>  
> Hi,
> 
> Does `git clean -fdx .` in libraries/Cabal help? git clean doesn't go into 
> submodules.
> 
> -Krzysztof
> 
> On Mon, Dec 3, 2018 at 6:09 PM My Nguyen <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi all,
> 
> I've finished quite a big rebase and was trying to rebuild, but it failed 
> with:
>>> ghc-cabal: Encountered missing dependencies:
>>> Cabal ==2.5.*
> I then tried applying my patch on a fresh checkout of GHC and found the 
> reason:
> 
> 
> libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:119:1:error:
>    Bad interface file: 
> libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Binary.hi
>        Something is amiss; requested module  
> 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)
>    |
> 119 |import Distribution.Compat.Binary   (Binary (..))
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:120:1:error:
>    Bad interface file: 
> libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Semigroup.hi
>        Something is amiss; requested module  
> 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)
>    |
> 120 |import Distribution.Compat.Semigroup (Semigroup (..), gmappend, gmempty)
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> libraries/Cabal/Cabal/Distribution/Compat/Prelude.hs:141:1:error:
>    Bad interface file: 
> libraries/Cabal/Cabal/dist-boot/build/Distribution/Compat/Stack.hi
>        Something is amiss; requested module  
> 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)
>    |
> 141 |import Distribution.Compat.Stack
>    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> 
> 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?
> 
> Thanks so much,
> My
> _______________________________________________
> ghc-devs mailing list
> [email protected] <mailto:[email protected]>
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs 
> <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>
> _______________________________________________
> ghc-devs mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to