Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-21 Thread Christian Maeder
Simon Marlow wrote: Christian Maeder wrote: #!/bin/sh reldir=`dirname $0` topdir=`(cd $reldir; pwd)` There's no guarantee that $0 holds anything reasonable: you can set $0 to whatever you like when calling exec*(). The above script simply does not work, if it is linked to from another

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Christian Maeder
Ian Lynagh wrote: On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote: Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf? The command: ghc --print-libdir should do it. But the way that knows what to print on unix machines is that ghc is

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Christian Maeder
Manuel M T Chakravarty wrote: this year are discharged (ie, in about two weeks). Secondly, the really unsatisfactory thing about frameworks for readline and gmp is that it entails that programs compiled with GHC will also depend on at least the GMP framework. I'd really like to have a

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Simon Marlow
Christian Maeder wrote: Ian Lynagh wrote: On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote: Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf? The command: ghc --print-libdir should do it. But the way that knows what to print on unix

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Christian Maeder
Simon Marlow wrote: Christian Maeder wrote: Ian Lynagh wrote: On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote: Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf? The command: ghc --print-libdir should do it. But the way that knows

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Alfonso Acosta
On Nov 19, 2007 10:35 AM, Simon Marlow [EMAIL PROTECTED] wrote: pwd gives you the directory that the script was invoked *from*, not the directory in which the script resides. This is a common problem on Unix: there's no general way to find out the location of a binary. Well, you can always

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Alfonso Acosta
On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote: Well, you can always combine the first argument of the script ($0) for absolute paths and combine it with with pwd for relative ones. I meant _use_ the first argument of the script ($0) for absolute paths and combine it with pwd

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Christian Maeder
Alfonso Acosta wrote: On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote: Well, you can always combine the first argument of the script ($0) for absolute paths and combine it with with pwd for relative ones. I meant _use_ the first argument of the script ($0) for absolute paths

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Simon Marlow
Christian Maeder wrote: Alfonso Acosta wrote: On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote: Well, you can always combine the first argument of the script ($0) for absolute paths and combine it with with pwd for relative ones. I meant _use_ the first argument of the script

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Alfonso Acosta
Simon, as usual, is right. It's been quite a while since I last seriously coded in C. From the exec* man page: The first argument, *by convention*, should point to the file name associated with the file being executed. However, if nothing better is found I guess it's better to rely on an

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Christian Maeder
An additional sanity check of topdir makes sense then. Christian Alfonso Acosta wrote: Simon, as usual, is right. It's been quite a while since I last seriously coded in C. From the exec* man page: The first argument, *by convention*, should point to the file name associated with the file

ghc/haskell tool registry (was: GHC 6.8.1 on Mac OS X 10.5 (Leopard))

2007-11-19 Thread Claus Reinke
Chakravarty [EMAIL PROTECTED]; GHC List glasgow-haskell-users@haskell.org Sent: Monday, November 19, 2007 9:35 AM Subject: Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard) Christian Maeder wrote: Ian Lynagh wrote: On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote: Is there a way for GHC on OS X

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Deborah Goldsmith
If you want to get the path to the main executable on Mac OS X, use _NSGetExecutablePath. See: man 3 dyld Deborah On Nov 19, 2007, at 4:07 AM, Christian Maeder wrote: An additional sanity check of topdir makes sense then. Christian Alfonso Acosta wrote: Simon, as usual, is right. It's

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-19 Thread Manuel M T Chakravarty
Deborah Goldsmith wrote, If you want to get the path to the main executable on Mac OS X, use _NSGetExecutablePath. See: man 3 dyld That's exactly what we need. The man page is on the web for those without a mac:

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-18 Thread Manuel M T Chakravarty
Christian Maeder: Manuel M T Chakravarty wrote: I wasn't expecting any backwards compatibility from Leopard-built software to Tiger, but then I am also a Mac-noob and maybe there are ways to achieve that that I don't know of. Any suggestions? Could you, or someone else with Leopard, check if

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-18 Thread Manuel M T Chakravarty
Christian Maeder: Manuel M T Chakravarty wrote: What we really need is a proper .mpkg How about a simple disk image (.dmg) that can be moved around as long as the relative paths within the image remain the same? This would require to allow relative paths in package.conf files (which would

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-17 Thread Ian Lynagh
On Fri, Nov 16, 2007 at 11:15:08AM +0100, Christian Maeder wrote: This would require to allow relative paths in package.conf files (which would be useful, anyway). The wrapper scripts for ghc, ghci and ghc-pkg could be easily rewritten. I'm not sure if ranlib needs to be called, whenever

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-17 Thread C.M.Brown
Ian, Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf? The command: ghc --print-libdir should do it. Cheers, Chris. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-17 Thread Ian Lynagh
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote: Is there a way for GHC on OS X to find where it was run from, so that it can find package.conf? The command: ghc --print-libdir should do it. But the way that knows what to print on unix machines is that ghc is a shell

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-16 Thread Christian Maeder
Manuel M T Chakravarty wrote: What we really need is a proper .mpkg How about a simple disk image (.dmg) that can be moved around as long as the relative paths within the image remain the same? This would require to allow relative paths in package.conf files (which would be useful, anyway). The

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-15 Thread Christian Maeder
Manuel M T Chakravarty wrote: I wasn't expecting any backwards compatibility from Leopard-built software to Tiger, but then I am also a Mac-noob and maybe there are ways to achieve that that I don't know of. Any suggestions? Could you, or someone else with Leopard, check if my Tiger binary

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-15 Thread Deborah Goldsmith
On Nov 6, 2007, at 4:06 PM, Manuel M T Chakravarty wrote: I wasn't expecting any backwards compatibility from Leopard-built software to Tiger, but then I am also a Mac-noob and maybe there are ways to achieve that that I don't know of. Any suggestions? Sorry, I missed this the first time

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-12 Thread Manuel M T Chakravarty
Benedikt, Manuel M T Chakravarty wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 Thanks, it's great you provided a binary distribution, especially since macports' ghc

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-11 Thread Ian Lynagh
On Tue, Nov 06, 2007 at 05:29:05PM +1100, Manuel M T Chakravarty wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available Thanks Manuel! I've put it on the download page. Ian ___ Glasgow-haskell-users mailing list

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-10 Thread Benedikt Huber
Manuel M T Chakravarty wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 Thanks, it's great you provided a binary distribution, especially since macports' ghc seems

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-08 Thread Simon Marlow
Don Stewart wrote: It seems 10.5/PPC/6.8 is currently a lethal combination. (not x86 though, nor 10.4/ppc). Here's the ticket, add yourself to the CC list. http://hackage.haskell.org/trac/ghc/ticket/1843 We need a Mac hero (or heroes) who can diagnose and fix this problem. Any takers?

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-08 Thread Joel Reymont
On Nov 8, 2007, at 2:17 PM, Simon Marlow wrote: We need a Mac hero (or heroes) who can diagnose and fix this problem. Any takers? You stand to earn the gratitude of the Mac/ GHC community! My PPC Mac is thousands of miles away but if anyone can give me SSH access to their PPC/Leopard

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread Joel Reymont
On Nov 6, 2007, at 12:43 PM, Christian Maeder wrote: I've tried to install your package, but already configure failed with: I successfully installed this package a few times on the same machine. -- http://wagerlabs.com ___

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread Christian Maeder
Joel Reymont wrote: On Nov 6, 2007, at 12:43 PM, Christian Maeder wrote: I've tried to install your package, but already configure failed with: I successfully installed this package a few times on the same machine. My failure was on a Tiger and your success with Leopard. C.

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread kahl
You do not perchance have one for powerpc, do you? I attempted to bootstrap from GHC 6.6.1, but I keep getting errors about Illegal Instructions, Try to force ./configure --build=powerpc-mac-darwin or whatever is appropriate under MacOS --- without it, ./configure will identify the

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread haskell
Brian P. O'Hanlon wrote: On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 You do not perchance have

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread Brian P. O'Hanlon
On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 You do not perchance have one for powerpc, do you? I

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread Manuel M T Chakravarty
Christian Maeder: Manuel M T Chakravarty wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 The name of a binary distribution for Mac OS X 10.4 (Tiger) would

Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-06 Thread Manuel M T Chakravarty
[EMAIL PROTECTED]: Brian P. O'Hanlon wrote: On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 You do

GHC 6.8.1 on Mac OS X 10.5 (Leopard)

2007-11-05 Thread Manuel M T Chakravarty
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is available from http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2 To use it, you need two other pieces of software installed: Xcode 3.0-- as available from the Leopard upgrade/install DVD