Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13407 closed enhancement (fixed)

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 (3)

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

Download all attachments as: .zip

Change History (11)

comment:1 Changed 17 years ago by waqar@…

Cc: waqar@… added

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gwright@… removed
Milestone: Port Enhancements
Owner: changed from macports-tickets@… to gwright@…
Summary: RFE: ghc 6.8.1 update ghc version in MacPortsRFE: ghc update to 6.8.1

Assign to maintainer.

comment:3 Changed 17 years ago by bfulgham@…

Note that ghc 6.8.2 is now available.

Changed 17 years ago by bfulgham@…

Attachment: Portfile.diff added

Patch to build 6.8.2 under Leopard (Intel)

Changed 17 years ago by bfulgham@…

Attachment: patch-Install.hs added

Patch to build 6.8.2 under Leopard (Intel)

comment:4 Changed 17 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 17 years ago by olsner@…

Attachment: Portfile.diff.Tiger added

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

comment:5 Changed 17 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.

comment:6 Changed 17 years ago by kballard (Lily Ballard)

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

comment:7 Changed 17 years ago by gwright@…

Resolution: fixed
Status: newclosed

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.

comment:8 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.