[GHC] #10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac

GHC ghc-devs at haskell.org
Sun Jun 28 10:39:00 UTC 2015


#10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac
-------------------------------+-----------------------------------------
        Reporter:  George      |                   Owner:
            Type:  bug         |                  Status:  infoneeded
        Priority:  normal      |               Milestone:  7.10.2
       Component:  Compiler    |                 Version:  7.10.2-rc1
      Resolution:              |                Keywords:
Operating System:  MacOS X     |            Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |               Test Case:
      Blocked By:              |                Blocking:
 Related Tickets:              |  Differential Revisions:
-------------------------------+-----------------------------------------

Comment (by Rydgel):

 This is my current version of cabal

 {{{
 cabal --version
 cabal-install version 1.22.6.0
 using version 1.22.4.0 of the Cabal library
 }}}

 This is the full build and the error with GHC 7.10.1 && cabal 1.22.0
 https://gist.githubusercontent.com/Rydgel/96ba8626d1e18274502d/raw/0ff07b54915c4283294fa3c7f0e0e308f8ed810b/gistfile1.txt

 I installed GHC 7.8.4 && cabal 1.22.0
 Here is the full build of the lib
 https://gist.githubusercontent.com/Rydgel/3d2c1b0555338b210df3/raw/4975551dd5699120130b0505be0d84f20c70a780/gistfile1.txt

 Now I tried with GHC 7.8.4 && cabal 1.20
 Here is the full build of the lib:
 https://gist.githubusercontent.com/Rydgel/bf6dc245b410e90828ff/raw/b28d952a2824ed69abe079a853d739d314298a39/gistfile1.txt

 So far every configuration failed to load the GLUT project in the cabal
 repl when building it in a sandbox.

 ----

 Now this is maybe a related problem with the package not configured to use
 it with way. So I did some new tests with installing the GLUT package
 outside a sandbox and try load it with ghci -package GLUT (which was the
 steps reported first in this page).
 So far after install (I totally nuked ~/.cabal and ~/.ghc for each steps):

 GHC 7.8.4 - Cabal 1.20
 {{{
 ghci -package GLUT
 GHCi, version 7.8.4: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package transformers-0.3.0.0 ... linking ... done.
 Loading package OpenGLRaw-2.5.1.0 ... linking ... done.
 Loading package GLURaw-1.5.0.1 ... linking ... done.
 Loading package ObjectName-1.1.0.0 ... linking ... done.
 Loading package array-0.5.0.0 ... linking ... done.
 Loading package stm-2.4.4 ... linking ... done.
 Loading package StateVar-1.1.0.0 ... linking ... done.
 Loading package deepseq-1.3.0.2 ... linking ... done.
 Loading package bytestring-0.10.4.0 ... linking ... done.
 Loading package containers-0.5.5.1 ... linking ... done.
 Loading package binary-0.7.1.0 ... linking ... done.
 Loading package text-1.2.1.1 ... linking ... done.
 Loading package OpenGL-2.12.0.1 ... linking ... done.
 Loading package GLUT-2.7.0.1 ... linking ... done.
 Prelude>
 }}}

 GHC 7.8.4 && Cabal 1.22.0.0
 {{{
 ghci -package GLUT
 GHCi, version 7.8.4: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package transformers-0.3.0.0 ... linking ... done.
 Loading package OpenGLRaw-2.5.1.0 ... linking ... done.
 Loading package GLURaw-1.5.0.1 ... linking ... done.
 Loading package ObjectName-1.1.0.0 ... linking ... done.
 Loading package array-0.5.0.0 ... linking ... done.
 Loading package stm-2.4.4 ... linking ... done.
 Loading package StateVar-1.1.0.0 ... linking ... done.
 Loading package deepseq-1.3.0.2 ... linking ... done.
 Loading package bytestring-0.10.4.0 ... linking ... done.
 Loading package containers-0.5.5.1 ... linking ... done.
 Loading package binary-0.7.1.0 ... linking ... done.
 Loading package text-1.2.1.1 ... linking ... done.
 Loading package OpenGL-2.12.0.1 ... linking ... done.
 Loading package GLUT-2.7.0.1 ... linking ... done.
 Prelude>
 }}}
 [https://gist.githubusercontent.com/Rydgel/64b539dc71935b053b0b/raw/59803bf05a7d361d1d7d768360ea4afcbdd6b7fd/gistfile1.txt
 GLUT-2.7.0.1.log]

 GHC 7.10.1 && Cabal 1.22.0.0
 {{{
 ghci -package GLUT
 GHCi, version 7.10.1: http://www.haskell.org/ghc/  :? for help
 <command line>: can't load .so/.DLL for: /Users/rydgel/.cabal/lib/x86_64
 -osx-ghc-7.10.1/GLUT_J0mPc7fsMRk1qun4O7kCoA/libHSGLUT-2.7.0.1
 -Go4T8lnmeY31g3GsnJ9sQu-ghc7.10.1.dylib
 (dlopen(/Users/rydgel/.cabal/lib/x86_64-osx-
 ghc-7.10.1/GLUT_J0mPc7fsMRk1qun4O7kCoA/libHSGLUT-2.7.0.1
 -Go4T8lnmeY31g3GsnJ9sQu-ghc7.10.1.dylib, 5): Symbol not found:
 _glutBitmap8By13
   Referenced from: /Users/rydgel/.cabal/lib/x86_64-osx-
 ghc-7.10.1/GLUT_J0mPc7fsMRk1qun4O7kCoA/libHSGLUT-2.7.0.1
 -Go4T8lnmeY31g3GsnJ9sQu-ghc7.10.1.dylib
   Expected in: flat namespace
  in /Users/rydgel/.cabal/lib/x86_64-osx-
 ghc-7.10.1/GLUT_J0mPc7fsMRk1qun4O7kCoA/libHSGLUT-2.7.0.1
 -Go4T8lnmeY31g3GsnJ9sQu-ghc7.10.1.dylib)
 }}}

 [https://gist.githubusercontent.com/Rydgel/3285488a32e1d6752c20/raw/f194edfe69032d485b3cc8be5064dee488b1845c/gistfile1.txt
 GLUT-2.7.0.1.log]


 I provided the complete logs of the installs too.
 In all cases above otool didn't showed a link to GLUT framework (for the
 lib itself). So this tool is maybe useless in our case or the link  is
 done elsewhere.

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


More information about the ghc-tickets mailing list