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

GHC ghc-devs at haskell.org
Mon Jul 27 09:32:50 UTC 2015


#10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac
-------------------------------+-----------------------------------------
        Reporter:  George      |                   Owner:
            Type:  bug         |                  Status:  new
        Priority:  normal      |               Milestone:  7.10.3
       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 bgamari):

 Replying to [comment:41 darchon]:
 > Replying to [comment:40 bgamari]:
 > > darchon, aren't these both symptoms of the same Cabal bug? Namely that
 `-framework` isn't passed to GHC. It would be great if someone could track
 down why this is the case.
 >
 > I would find that hard to believe... because, as seen in comment:21 and
 comment:27, passing the {{{--ghc-options="-framework GLUT"}}} options to
 Cabal still doesn't make GHC pass the {{{-framework}}} flag to the system
 linker.

 Ahh, I had forgotten about this result. Yes, this does sound suspicious.
 Thanks!

 I believe the relevant portion of GHC is
 [https://ghc.haskell.org/trac/ghc/browser/ghc/compiler/main/DriverPipeline.hs#L1748
 DriverPipeline.linkBinary]. The framework logic there looks correct but it
 would be nice if someone with access to OS X could add some traces so we
 could figure out where things are going awry.

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


More information about the ghc-tickets mailing list