Cannot compile phase 2 after recent Roles patch

Hi, I cannot compile GHC starting from e8aa8ccb 'Implement "roles" into GHC'. The error message I get is:
>>>>>>>>>>>>>>>>>>> *** Core Lint errors : in result of Desugar (after optimization) *** {-# LINE 290 "libraries/terminfo/System/Console/Terminfo/Base.hs #-}: Warning: [RHS of System.Console.Terminfo.Base.mkCallback :: System.Console.Terminfo.Base.CharOutput -> GHC.Types.IO (GHC.Ptr.FunPtr System.Console.Terminfo.Base.CharOutput)]
Role incompatibility: expected P, got R in Sym Foreign.C.Types.NTCo:CInt[0] -> (GHC.Types.IO (Sym Foreign.C.Types.NTCo:CInt[0]))_R <<<<<<<<<<<<<<<<<<<<<<<< followed by a dump of Core (see attached). -- .--= ULLA! =-----------------. \ http://gergo.erdi.hu \ `---= gergo@erdi.hu =-------' chown -R us.us yourbase (#gnome)

It looks to me that the problem is caused by an outdated libraries/base repo. Have you run ./sync-all pull? In particular, your libraries/base repo needs to be at ab9e8e3… or later. Let me know if this was indeed the problem! Thanks, Richard On Aug 11, 2013, at 2:21 AM, Dr. ERDI Gergo wrote:
Hi,
I cannot compile GHC starting from e8aa8ccb 'Implement "roles" into GHC'. The error message I get is:
>>>>>>>>>>>>>>>>>>>> *** Core Lint errors : in result of Desugar (after optimization) *** {-# LINE 290 "libraries/terminfo/System/Console/Terminfo/Base.hs #-}: Warning: [RHS of System.Console.Terminfo.Base.mkCallback :: System.Console.Terminfo.Base.CharOutput -> GHC.Types.IO (GHC.Ptr.FunPtr System.Console.Terminfo.Base.CharOutput)]
Role incompatibility: expected P, got R in Sym Foreign.C.Types.NTCo:CInt[0] -> (GHC.Types.IO (Sym Foreign.C.Types.NTCo:CInt[0]))_R <<<<<<<<<<<<<<<<<<<<<<<<
followed by a dump of Core (see attached).
--
.--= ULLA! =-----------------. \ http://gergo.erdi.hu \ `---= gergo@erdi.hu =-------' chown -R us.us yourbase (#gnome)
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

On Sun, 11 Aug 2013, Richard Eisenberg wrote:
It looks to me that the problem is caused by an outdated libraries/base repo. Have you run ./sync-all pull? In particular, your libraries/base repo needs to be at ab9e8e3… or later.
Let me know if this was indeed the problem!
Yes, thanks! I only knew about 'sync-all get', I thought something like 'git submodule update' would take care of all the other stuff. Sorry for the noise! -- .--= ULLA! =-----------------. \ http://gergo.erdi.hu \ `---= gergo@erdi.hu =-------' Gendo : Rei, you're a nude girl in a test tube. I like that.
participants (2)
-
Dr. ERDI Gergo
-
Richard Eisenberg