[MacPorts] #20132: ghc missing variable definitions in 10.6

MacPorts noreply at macports.org
Mon Feb 8 12:49:28 PST 2010


#20132: ghc missing variable definitions in 10.6
------------------------------+---------------------------------------------
 Reporter:  snc@…             |       Owner:  gwright@…           
     Type:  defect            |      Status:  assigned            
 Priority:  Normal            |   Milestone:                      
Component:  ports             |     Version:  1.8.0               
 Keywords:  snowleopard       |        Port:  ghc                 
------------------------------+---------------------------------------------

Comment(by ecronin@…):

 * Some help for ghc users:

 The latest 6.12.1 binary package (http://www.haskell.org/ghc/dist/6.12.1/)
 is fixed for snow leopard, but introduces some incompatibilities in the
 base libraries that make e.g. macports darcs not build.

 The previous  6.10.4 binary package
 (http://www.haskell.org/ghc/dist/6.10.4/) doesn't work out of the .pkg on
 10.6 because of the gcc architecture issue (see
 http://hackage.haskell.org/trac/ghc/ticket/3400).  If you apply the 3
 patches I'm attaching after you've installed the ghc 6.10.4 package it
 will work correctly on snow leopard.  {{{cd}}} to /usr/bin first.

 **HACK TIME** Because the binary package installs ghc in /usr/bin,
 macports can find it in its path.  Therefore any port that has a build
 depend on ghc can be built using /usr/bin/ghc by replacing the dependency
 {{{port:ghc}}} with {{{bin:ghc:ghc}}}.  assuming you know your way around
 $EDITOR, {{{sudo port edit portname}}} will open up the Portfile, where
 you can search for {{{port:ghc}}} and replace it.  Because ghc has a
 runtime with it this is fragile and not the MacPorts way.  As soon as the
 ghc port is fixed I strongly suggest anyone going down this route de-
 install the binary ghc package ({{{sudo
 /Library/Frameworks/GHC.framework/Tools/Uninstaller}}}) and rebuild any
 ports that depend on ghc.



 * some help for the maintainer:

 modifying the leopard bootstrap ghc/hsc2hs the same way allows them to
 work fine on snowleopard.  Copying the {{{darwin 9 i386}}} block to
 {{{darwin 10 i386}}} works fine.

 The dependent libraries (gmp,ncurses,iconv) need to be installed
 +universal, there's no good way to enforce this though

 ghc itself needs at least build_arch=i386 passed in, e.g. {{{sudo port
 install ghc build_arch=i386}}}, but there are some places in ./configure
 it's still using x64 gcc...  I ran out of time to follow this path any
 further.

-- 
Ticket URL: <http://trac.macports.org/ticket/20132#comment:72>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list