New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13407 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

RFE: ghc update to 6.8.1

Reported by: wss@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: ghc Cc: wss@…, waqar@…
Port:

Description

A new version of ghc is now available. I realize there are plenty of issues with Tiger vs Leopard, Intel vs PPC, etc.

There's been quite a lot of discussion recently on the ghc-users list about building ghc on a Mac. That might be a good place to start...

 http://www.haskell.org/pipermail/glasgow-haskell-users/2007-November/thread.html

Attachments

Portfile.diff Download (10.5 KB) - added by bfulgham@… 4 years ago.
Patch to build 6.8.2 under Leopard (Intel)
patch-Install.hs Download (0.6 KB) - added by bfulgham@… 4 years ago.
Patch to build 6.8.2 under Leopard (Intel)
Portfile.diff.Tiger Download (10.3 KB) - added by olsner@… 4 years ago.
Portfile patch, modified for compilation on Tiger with the ghc 6.6 bootstrap

Change History

Changed 4 years ago by waqar@…

  • cc waqar@… added

Changed 4 years ago by ryandesign@…

  • cc gwright@… removed
  • owner changed from macports-tickets@… to gwright@…
  • summary changed from RFE: ghc 6.8.1 update ghc version in MacPorts to RFE: ghc update to 6.8.1
  • milestone set to Port Enhancements

Assign to maintainer.

Changed 4 years ago by bfulgham@…

Note that ghc 6.8.2 is now available.

Changed 4 years ago by bfulgham@…

Patch to build 6.8.2 under Leopard (Intel)

Changed 4 years ago by bfulgham@…

Patch to build 6.8.2 under Leopard (Intel)

Changed 4 years ago by bfulgham@…

These patches are not complete, as they are untested under PowerPC and under anything besides Leopard. I'm attaching them on the off chance they might be helpful to other Haskell users who would like to update GHC under Leopard.

Changed 4 years ago by olsner@…

Portfile patch, modified for compilation on Tiger with the ghc 6.6 bootstrap

Changed 4 years ago by olsner@…

Patch for Tiger, tested and built successfully on i386 Tiger 10.4.11. This uses the ghc-6.6 bootstrap so I needed to add a couple of reinplace - the GHCBIN and TOPDIR variables are quoted with " in the ghc-6.6 bootstrap tarball, but apparently not in the 6.8.2 bootstrap. This patch should work with both bootstraps though.

Still not tested on PowerPC since I don't have any such machine available to me.

Changed 4 years ago by eridius@…

The Patchfile really needs to put a "cd ${worksrcpath} && " at the beginning of the system calls in the build and destroot targets.

Changed 4 years ago by gwright@…

  • status changed from new to closed
  • resolution set to fixed

The ghc port has been upgraded to 6.8.2. It should work on Tiger/ppc, Tiger/intel and Leopard/intel. Leopard/ppc is not supported since there seem to be bugs in the Apple toolchain on that platform that prevent building the compiler. (If these are solved and I can get access to a machine to test on, I will add Leopard/ppc.)

The delay in updating ghc is mainly due to three bugs: two file locking bugs in ghc (patched in this commit) and an OS bug that in rare circumstances would cause the build fail. The OS bug is fixed in 10.5.2; users on Leopard should update to avoid possible problems. (The symptom of the OS bug is that the linker will report that an archive file will have no table of contents, even though ghc tries to run ranlib.)

Other patches ensure that the libraries link with the correct libgmp.

OpenGL support is built by default. OpenAL support is disabled because of name clashes between Apple's OpenAL and the freealut library required by ghc. It should be possible to fix this eventually.

Changed 3 years ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.