#5405: Strange closure type crash when using Template Haskell on OS X Lion
-------------------------------+--------------------------------------------
    Reporter:  AndreasVoellmy  |       Owner:            
        Type:  bug             |      Status:  new       
    Priority:  normal          |   Component:  GHCi      
     Version:  7.0.4           |    Keywords:            
    Testcase:                  |   Blockedby:            
          Os:  MacOS X         |    Blocking:            
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
-------------------------------+--------------------------------------------

Comment(by AndreasVoellmy):

 I was able to install haskell-src after removing the dependency on
 haskell98 listed in its cabal file.
 hint also needs ghc-mtl, and now this is my stumbling block. It uses the
 ghc package but fails to find the definitions.
 Here is a transcript of my cabal commands:
 {{{
 $ cabal configure -v
 /usr/bin/ghc --numeric-version
 looking for tool "ghc-pkg" near compiler in /usr/bin
 found ghc-pkg in /usr/bin/ghc-pkg
 /usr/bin/ghc-pkg --version
 /usr/bin/ghc --supported-languages
 /usr/bin/ghc --info
 Reading available packages...
 Resolving dependencies...
 Configuring ghc-mtl-1.0.1.0...
 Dependency MonadCatchIO-mtl ==0.3.0.3: using MonadCatchIO-mtl-0.3.0.3
 Dependency base ==4.4.0.0: using base-4.4.0.0
 Dependency ghc ==7.2.1: using ghc-7.2.1
 Dependency mtl ==2.0.1.0: using mtl-2.0.1.0
 Using Cabal-1.10.2.0 compiled by ghc-7.0
 Using compiler: ghc-7.2.1
 Using install prefix: /Users/Andreas/.cabal
 Binaries installed in: /Users/Andreas/.cabal/bin
 Libraries installed in: /Users/Andreas/.cabal/lib/ghc-
 mtl-1.0.1.0/ghc-7.2.1
 Private binaries installed in: /Users/Andreas/.cabal/libexec
 Data files installed in: /Users/Andreas/.cabal/share/ghc-mtl-1.0.1.0
 Documentation installed in: /Users/Andreas/.cabal/share/doc/ghc-
 mtl-1.0.1.0
 Using alex version 2.3.5 found on system at: /usr/bin/alex
 Using ar found on system at: /usr/bin/ar
 Using c2hs version 0.16.3 found on system at:
 /Users/Andreas/Library/Haskell/bin/c2hs
 Using cpphs version 1.12 found on system at:
 /Users/Andreas/.cabal/bin/cpphs
 No ffihugs found
 Using gcc version 4.2.1 found on system at: /usr/bin/gcc
 Using ghc version 7.2.1 found on system at: /usr/bin/ghc
 Using ghc-pkg version 7.2.1 found on system at: /usr/bin/ghc-pkg
 No greencard found
 Using haddock version 2.9.2 found on system at: /usr/bin/haddock
 Using happy version 1.18.6 found on system at: /usr/bin/happy
 No hmake found
 Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
 No hscolour found
 No hugs found
 No jhc found
 Using ld found on system at: /usr/bin/ld
 No lhc found
 No lhc-pkg found
 No nhc98 found
 No pkg-config found
 Using ranlib found on system at: /usr/bin/ranlib
 Using strip found on system at: /usr/bin/strip
 Using tar found on system at: /usr/bin/tar
 No uhc found
 $ cabal build -v
 creating dist/build
 creating dist/build/autogen
 Preprocessing library ghc-mtl-1.0.1.0...
 Building ghc-mtl-1.0.1.0...
 Building library...
 creating dist/build
 /usr/bin/ghc --make -package-name ghc-mtl-1.0.1.0 -hide-all-packages
 -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen
 -Idist/build/autogen -Idist/build -optP-include
 -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build
 -stubdir dist/build -package-id MonadCatchIO-
 mtl-0.3.0.3-3cd1bc0713792fc98d4bc4917fa08d03 -package-id
 base-4.4.0.0-b81f1ae0118e4c9367b9db3fd76eea62 -package-id
 ghc-7.2.1-9cecf4edd60040c5413135a0ef392236 -package-id
 mtl-2.0.1.0-22e17c8b374ae14036993ac70bb99b1a -O -Wall -O2 -XHaskell98
 -XGeneralizedNewtypeDeriving Control.Monad.Ghc
 [1 of 1] Compiling Control.Monad.Ghc ( Control/Monad/Ghc.hs,
 dist/build/Control/Monad/Ghc.o )

 Control/Monad/Ghc.hs:19:22:
     Not in scope: type constructor or class `GHC.Ghc'

 Control/Monad/Ghc.hs:21:15:
     Not in scope: type constructor or class `GHC.WarnLogMonad'

 Control/Monad/Ghc.hs:21:66:
     Not in scope: type constructor or class `GHC.GhcMonad'

 Control/Monad/Ghc.hs:34:37:
     Not in scope: type constructor or class `GHC.GhcT'

 Control/Monad/Ghc.hs:41:19: Not in scope: `GHC.liftGhcT'

 Control/Monad/Ghc.hs:59:27:
     Not in scope: type constructor or class `GHC.WarnLogMonad'

 Control/Monad/Ghc.hs:60:5:
     `setWarnings' is not a (visible) method of class `WarnLogMonad'

 Control/Monad/Ghc.hs:60:26: Not in scope: `GHC.setWarnings'

 Control/Monad/Ghc.hs:61:5:
     `getWarnings' is not a (visible) method of class `WarnLogMonad'

 Control/Monad/Ghc.hs:61:24: Not in scope: `GHC.getWarnings'

 Control/Monad/Ghc.hs:63:41:
     Not in scope: type constructor or class `GHC.GhcMonad'

 Control/Monad/Ghc.hs:64:5:
     `getSession' is not a (visible) method of class `GhcMonad'

 Control/Monad/Ghc.hs:64:23: Not in scope: `GHC.getSession'

 Control/Monad/Ghc.hs:65:5:
     `setSession' is not a (visible) method of class `GhcMonad'

 Control/Monad/Ghc.hs:65:25: Not in scope: `GHC.setSession'
 }}}

 When I run ghc-pkg list I see that ghc-7.2.1 is listed in blue.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to