Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:


Ticket #34 (closed defect: fixed)

Opened 5 years ago

Last modified 2 years ago

Generic tarball doesn't compile under Mac OS X Leopard

Reported by: mvanier Owned by: duncan
Priority: major Milestone: 2010.2.0.0
Component: Generic source tarball Keywords:
Cc:

Description

I tried compiling the Haskell Platform on two different Mac OS X machines and both failed in the same way:

Linking dist/build/happy/happy ... ld: in /Users/mvanier/_/src/haskell-platform/haskell-platform-2009.2.0/packages/mtl-1.1.0.2/dist/bui ld/libHSmtl-1.1.0.2.a, archive has no table of contents collect2: ld returned 1 exit status

Error: Building the happy-1.18.2 package failed make: *** [build.stamp] Error 2

I'm attaching the full output of make.

Attachments

make.out (43.7 kB) - added by mvanier 5 years ago.
Output from make.
rg-diff.out (1.2 kB) - added by RichardG 5 years ago.
Diff of make.out and a successful build

Change History

Changed 5 years ago by mvanier

Output from make.

Changed 5 years ago by RichardG

Some questions:

  • Were the computers PowerPC or Intel?
  • What was the specific version of the OS? E.g., 10.5.6.
  • Which version of XCode was installed? E.g., 3.1.2.
  • Which version of GHC was used? E.g., 6.10.2.
  • What flags did you use when building? E.g., --prefix=/pkg/haskell-platform

I just successfully built 2009.2.0 on Mac OS X 10.5.6 (Intel Core 2 Duo) with GHC 6.10.2 and XCode 3.1.2 without problems, so it doesn't occur on all systems. I used the default configuration (i.e., no configuration parameters were specified). It wasn't a clean install; happy, haddock, and other application had been installed previously, though there may not have been up-to-date.

A diff of your build log and mine is pretty similar. There is a small difference in that you appear to has specified a different prefix is specified. Yours is -prefix=/pkg/haskell-platform and mine is --prefix=/usr/local. I'm wondering if it might be a path issue. Is /pkg/haskell-platform on your path?

Changed 5 years ago by RichardG

Diff of make.out and a successful build

Changed 5 years ago by RichardG

I just successfully built 2009.2.0 on Mac OS X 10.5.6 (Intel Core Duo) with GHC 6.10.2 and XCode 3.1.2 without problems. This was a clean system; no previous versions of GHC, happy, or other utilities installed. I added the configuration parameter --prefix=/pkg/haskell-platform; otherwise, the default settings were used.

(In retrospect, it couldn't be a problem with the --prefix argument because that only applies during install.)

Changed 5 years ago by duncan

See this ticket: http://hackage.haskell.org/trac/hackage/ticket/318 which describes the source of the problem. The fix will need a new Cabal lib release (or some hackery in the build scripts).

Changed 5 years ago by anonymous

  • owner set to duncan
  • priority changed from critical to major
  • component changed from (none-specified) to Generic source tarball
  • milestone set to 2009.2.1

Changed 5 years ago by dons

  • summary changed from Haskell platform doesn't compile under Mac OS X Leopard to Generic tarball doesn't compile under Mac OS X Leopard

Changed 5 years ago by mvanier

Guys,

I just tried the same compile on the same machine with the new 2009.2.1 version of the Haskell platform, and it failed in exactly the same way. This is on a MacBook? Pro running an up-to-date version of Leopard, but _not_ using XCode. I'm using the version of gcc (4.0.1) that ships with Leopard (and has some Apple-specific tweaks) and I'm configuring and compiling entirely from the command line. The ghc I'm using is 6.10.3 and was installed using the normal Mac OS X installer. If this is a problem with Cabal I guess I'll just have to wait until that is fixed.

Changed 5 years ago by dons

  • milestone changed from 2009.2.0.1 to 2009.2.0.2

Changed 5 years ago by dons

  • milestone changed from 2009.2.0.2 to 2009.4.0

Is this still a problem with 6.10.4 and the 2009.2.0.2 release?

Changed 4 years ago by refold

  • milestone changed from 2009.4.0 to 2010.2.0.0

Milestone 2009.4.0 deleted

Changed 2 years ago by MtnViewMark

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

Given the Makefile that is in the HP repo, the tarball does now build under Mac OS X, and should, with those commands, build on any suitable version of Mac OS X. This is how the Mac installer is now built - directly from the tarball.

Note: See TracTickets for help on using tickets.