Xcode is apples gui code editor, but it is also bundled with their version of the gcc compiler and their linker suite. Some people have said they had the best luck with gcc 3.x versions. I found that earlier version of the 4.x bundled with Tiger produced a crashing GHC. This is why I suggested upgrading to a newer Xcode ( and the newer gcc 4.x that comes with it ). I suspect I could have just used 'gcc_select' to use the 3.X version of gcc instead...

My recipe went something like this ( with lots of fits and starts ):
- upgrade to the latest gcc ( I am still using 4.0.1 according to 'gcc -v', there is another newer version out now ); or use gcc_select to revert to 3.3?
- install darwin ports
- use port to install GHC 6.4 ( sudo port install ghc )
- use port to install darcs ( or build darcs )
- pull down ghc from darcs using directions elsewhere
- configure ( I use ./configure --prefix=/usr/local/pkg/ghc-6.6 -- disable-openal --disable-alut ); I also installed gnu readline somewhere in my default path, but you might need to add config directives to point to a valid version of readline.
- setup mk/build.mk to taste

Lately I have had a horrible time with HEAD from darcs. It seems to be getting better ( builds ) though, as of yesterday, there were some significant known bugs in HEAD.




On Sep 8, 2006, at 12:24 PM, Jeremy Gibbons wrote:

Thanks for your help, guys.

Just checking that I got you right - I've not (afaik) used the Apple developer tools before. How do I find out which version of Xcode I have currently? Apple's website suggests that 2.0 comes free with Tiger. Did I need to do anything special to install it? The latest seems to be 2.4, but it is a 900M download! Too big for my home connection, I fear. Also, I need to join ADC to get it - free, right?

Malcolm Wallace suggests getting the latest from darcs instead. If I do this, I need to install all the ancillary tools first, right? That sounded a bit painful.

Jeremy

On 8 Sep 2006, at 16:16, Simon Peyton-Jones wrote:

thanks.  remember to cc Jeremy (I'm doing that now)

| -----Original Message-----
| From: Mathew Mills [mailto:[EMAIL PROTECTED]
| Sent: 08 September 2006 16:01
| To: Simon Peyton-Jones
| Cc: [EMAIL PROTECTED]
| Subject: Re: GHC Hackathon
|
| While I have not seen that specific error, I did have many problems
| building GHC on my PPC Mac OS X 10.4 machine. They were all fixed by
| upgrading to a more recent version of the XCode and developer tools
| ( I am currently on 2.3, I have not tried the more recent 2.4 ).
|
| Hope that helps. If not, e-mail me directly and we can might be able
| to work through the issues.
|
| Now, if someone has some hints about how to compile GHC on a
| PowerBook G4 in less than 36 hours, I am all ears :)
|
| On Sep 8, 2006, at 6:37 AM, Simon Peyton-Jones wrote:
|
| > can anyone help with MacOSX?
| >
| > S
| >
| > -----Original Message-----
| > From: Jeremy Gibbons [mailto:[EMAIL PROTECTED]
| > Sent: 08 September 2006 14:00
| > To: Simon Peyton-Jones; Simon Marlow
| > Cc: Jeremy Gibbons
| > Subject: GHC Hackathon
| >
| > Hi, guys. I'm looking forward to the GHC Hackathon next week. In
| > preparation, I was hoping to make sure that I can build GHC (on my
| > Mac,
| > OS
| > X 10.4). I've got part-way through the build (of GHC 6.4.2), but it
| > stops
| > with apparently syntax errors. I'm guessing that this is enough for
| > the
| > Hackathon, and I'll be able to get expert help there; but if you
think
| > there's something else I need to do to prepare, do say.
| >
| > Jeremy
| >
| > PS In case you're interested now: while calling ghc-inplace on
| > ghc/rts/Apply.cmm, I get errors
| >
| >   Apply.cmm:28: illegal external declaration, missing `;' after
| > `section'
| >   Apply.cmm:52: syntax error, found `1'
| >   Apply.cmm:52: illegal method selector, found `*'
| >
| > and then many more, perhaps consequential.
| >
| >
| > [EMAIL PROTECTED]
| >   Oxford University Computing Laboratory,    TEL: +44 1865 283508
| >   Wolfson Building, Parks Road,              FAX: +44 1865 283531
| >   Oxford OX1 3QD, UK.
| >   URL: http://www.comlab.ox.ac.uk/oucl/people/jeremy.gibbons.html
| >
| > _______________________________________________
| > Cvs-ghc mailing list
| > [EMAIL PROTECTED]
| > http://www.haskell.org/mailman/listinfo/cvs-ghc



[EMAIL PROTECTED]
  Oxford University Computing Laboratory,    TEL: +44 1865 283508
  Wolfson Building, Parks Road,              FAX: +44 1865 273839
  Oxford OX1 3QD, UK.
  URL: http://www.comlab.ox.ac.uk/oucl/people/jeremy.gibbons.html


_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to