[GHC] #897: Missing instance declaration on Mac OS X (PPC)

GHC trac at galois.com
Thu Sep 14 15:07:54 EDT 2006


#897: Missing instance declaration on Mac OS X (PPC)
--------------------------------+-------------------------------------------
    Reporter:  edsko at edsko.net  |        Owner:         
        Type:  bug              |       Status:  new    
    Priority:  normal           |    Milestone:         
   Component:  Compiler         |      Version:  6.4.2  
    Severity:  normal           |     Keywords:         
          Os:  MacOS X          |   Difficulty:  Unknown
Architecture:  powerpc          |  
--------------------------------+-------------------------------------------
When compiling ghc 6.4.2 on Mac OS X (Darwin), configured as

 ./configure --disable-openal --disable-alut

 (with GNU readline installed), and the build.mk settings as suggested in
 HACKING, compilation fails with the following error:

 nativeGen/RegisterAlloc.hs:639:146:
     No instance for (Show FreeRegs)
       arising from use of `show' at nativeGen/RegisterAlloc.hs:639:146-149
     Probable fix: add an instance declaration for (Show FreeRegs)
     In the first argument of `text', namely `(show freeregs)'
     In the first argument of `(<+>)', namely `text (show freeregs)'
     In the first argument of `(<+>)', namely `(text (show freeregs)) <+>
 (ppr r)

 This error disappears when -DDEBUG is removed from the compilation errors.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/897>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list