Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-20 Thread Christian Maeder
Manuel M T Chakravarty wrote:
 Christian Maeder:
  export MACOSX_DEPLOYMENT_TARGET=10.4

 Specifically, I am seeing
 
   dyld: bind: ghc-6.9.20080219:_fcntl$UNIX2003$lazy_ptr =
 libSystem.B.dylib:_fcntl$UNIX2003, *0x0108a413 = 0x92c7b7bc

what tells you that this is Leopard specific?

 on running
 
   env DYLD_PRINT_BINDINGS= compiler/stage2/ghc-6.9.20080219
 
 Any idea why that may be?

no, no idea.

   -optl-isysroot -optl/Developer/SDKs/MacOSX10.4u.sdk
 -optl-mmacosx-version-min=10.4

Interesting, in contrast to you I had a problem with
-mmacosx-version-min and had to use MACOSX_DEPLOYMENT_TARGET when
building user programs on Leopard using my Tiger bindist.

http://www.haskell.org/pipermail/glasgow-haskell-users/2008-January/014093.html

 -optl-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
 
 on all CC and LD targets, I don't seem to have any Leopard symbols
 anymore.  FWIW, Xcode 3.0 also seem to use explicit SDK options.

I haven't built ghc on Leopard, yet, but I'll expect to use -isysroot
and -syslibroot then, too.

Cheers Christian
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-20 Thread Manuel M T Chakravarty

Christian Maeder:

Manuel M T Chakravarty wrote:

Christian Maeder:

export MACOSX_DEPLOYMENT_TARGET=10.4


Specifically, I am seeing

 dyld: bind: ghc-6.9.20080219:_fcntl$UNIX2003$lazy_ptr =
libSystem.B.dylib:_fcntl$UNIX2003, *0x0108a413 = 0x92c7b7bc


what tells you that this is Leopard specific?


http://lists.apple.com/archives/darwin-dev/2007/Nov/msg00108.html


 -optl-isysroot -optl/Developer/SDKs/MacOSX10.4u.sdk
-optl-mmacosx-version-min=10.4


Interesting, in contrast to you I had a problem with
-mmacosx-version-min and had to use MACOSX_DEPLOYMENT_TARGET when
building user programs on Leopard using my Tiger bindist.

http://www.haskell.org/pipermail/glasgow-haskell-users/2008-January/014093.html


I made a similar observation.  Using -syslibroot in addition, fixed  
the problem for me.



-optl-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk

on all CC and LD targets, I don't seem to have any Leopard symbols
anymore.  FWIW, Xcode 3.0 also seem to use explicit SDK options.


I haven't built ghc on Leopard, yet, but I'll expect to use -isysroot
and -syslibroot then, too.


Hold off another day or two and you get that automatically by just  
using --with-macos-deployment-target=10.4 with GHC's ./configure.   
(This will even enable you to generate a GHC build for 10.4 from a  
bootstrap compiler for 10.5, which is non-trivial due to the programs  
in utils/ and some other stuff.)


Manuel

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-19 Thread Christian Maeder
Manuel M T Chakravarty wrote:
 $ ./HelloWorld-Tiger
 Hello World!
 $ ./HelloWorld-Leopard
 Bus error

only setting

  export MACOSX_DEPLOYMENT_TARGET=10.4

on Leopard during compilation should make it run on a Tiger, too.

HTH Christian
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-19 Thread Manuel M T Chakravarty

Christian Maeder:

Manuel M T Chakravarty wrote:

$ ./HelloWorld-Tiger
Hello World!
$ ./HelloWorld-Leopard
Bus error


only setting

 export MACOSX_DEPLOYMENT_TARGET=10.4

on Leopard during compilation should make it run on a Tiger, too.


I tried that, too, but it somehow only works partially.  If I build  
ghc with that environment setting, the GHC binary still has some  
Leopard symbols in it (though much less than without that setting).   
Specifically, I am seeing


  dyld: bind: ghc-6.9.20080219:_fcntl$UNIX2003$lazy_ptr =  
libSystem.B.dylib:_fcntl$UNIX2003, *0x0108a413 = 0x92c7b7bc


on running

  env DYLD_PRINT_BINDINGS= compiler/stage2/ghc-6.9.20080219

Any idea why that may be?  In contrast, if I instruct GHC's build  
system to use


  -optl-isysroot -optl/Developer/SDKs/MacOSX10.4u.sdk -optl-mmacosx- 
version-min=10.4 -optl-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk


on all CC and LD targets, I don't seem to have any Leopard symbols  
anymore.  FWIW, Xcode 3.0 also seem to use explicit SDK options.


Manuel

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-14 Thread Yitzchak Gale
Manuel M T Chakravarty wrote:
  The file length is correct.
  MD5 (Public/Web/haskell/GHC-6.9.20080213-i386.dmg) =
  cc76dea615234aa83d85ef5c30021828

Bingo! Thanks.

I wrote:
 In the readme, you say that I require Xcode 3.0. Tiger came with
 Xcode 2.4.1, and I have not updated it. Could that be part of the
 problem?

 ...your Xcode version should be fine.

OK, good.

  http://www.cse.unsw.edu.au/~chak/HelloWorld.tar.bz2
  It contains HelloWorld-Leopard and HelloWorld-Tiger.  Please try to
  run them both.  I believe HelloWorld-Leopard will also give you a bus
  error, but I hope HelloWorld-Tiger will work.

$ ./HelloWorld-Tiger
Hello World!
$ ./HelloWorld-Leopard
Bus error

Yay!

Thanks,
Yitz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-13 Thread Yitzchak Gale
Manuel M T Chakravarty wrote:
 Try this
http://www.cse.unsw.edu.au/~chak/haskell/GHC-6.9.20080213-i386.dmg

I got it, but there were some download problems. I hope the
file is intact. It has exactly 44740924 bytes. Perhaps you
could send me an md5sum to be certain.

 Have a look whether that installs on Tiger
 (I am pretty sure it will)

It did.

 and whether you can run /usr/bin/ghci (not so sure about that).

It didn't.

$ /usr/bin/ghci
Bus error

In the readme, you say that I require Xcode 3.0. Tiger came with
Xcode 2.4.1, and I have not updated it. (I tried once, but the
download was so huge that I decided to forget it unless there
was some real need.) Could that be part of the problem?

Thanks,
Yitz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Chris Kuklewicz

Manuel M T Chakravarty wrote:
The above package is for Intel Leopard.  I expect that a separate PPC 
version is easy to build (but cross-compilation and fat binaries are not 
supported by GHC).


I have not seen any announcement that GHC 6.8.x is working on OS X Leopard 
running on PPC.  I would be pleased to be corrected.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Manuel M T Chakravarty

Chris Kuklewicz:

Manuel M T Chakravarty wrote:
The above package is for Intel Leopard.  I expect that a separate  
PPC version is easy to build (but cross-compilation and fat  
binaries are not supported by GHC).


I have not seen any announcement that GHC 6.8.x is working on OS X  
Leopard running on PPC.  I would be pleased to be corrected.


Sorry, but my statement was only wrt to the mechanism used to build  
installer packages.  If general compilation problems still persist,  
they will prevent you from constructing installer packages as well.   
(I haven't got a PPC, so I didn't keep track of that.)


Manuel

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Tiger installer [was: Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)]

2008-02-12 Thread Manuel M T Chakravarty

The above package is for Intel Leopard... it should be possible to
build packages on Leopard that run on both Tiger and Leopard.  (I
could give that a try if anybody with a Tiger box is willing to play
guinea pig.)


I volunteer. What do I need to do?



Try this
  http://www.cse.unsw.edu.au/~chak/haskell/GHC-6.9.20080213-i386.dmg

It's a quick build of todays HEAD with only the boot libraries.  Have  
a look whether that installs on Tiger (I am pretty sure it will) and  
whether you can run /usr/bin/ghci (not so sure about that).  If it  
works that far, please compile some small Haskell program and see  
whether you can run the compiled program.  If we are very lucky and  
all of this works, please try to compile ghc itself with the compiler  
in the package.


Thanks,
Manuel

PS: It's a dmg this time around, because apparently only 10.5 packages  
are single file archives.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Tim Chevalier
On 2/12/08, Yitzchak Gale [EMAIL PROTECTED] wrote:
 Manuel M T Chakravarty wrote:
  I'd also be nice to have a cool logo/icon.

 Don Stewart wrote:
  Someone want to clean up the classic GHC logo?
  http://www.cse.unsw.edu.au/~dons/images/happy-dino.jpg
  :)

 The Clyde Arc in Glasgow, combined somehow with a lambda,
 could be the basis of a striking logo.


A logo involving some stylized version of the Clyde Arc drawn so that
it looks like it's bridging between a lambda and a CPU, or something
like that (shades of this cartoon by Phil Wadler:
http://cs.wellesley.edu/~cs301/fall03/lambda-and-chip.gif) could be
cool.

I am a mediocre artist, but I'd be willing to give it a try if there
are no better ones around.

 Unfortunately, that bridge is suffering from some serious
 structural and safety issues these days, so perhaps
 that is ill-advised...


It seems perfectly appropriate to me. *ducks and runs*

Also, this from Manuel's original message is just beautiful:
 Installation instructions: nil

I'm almost tempted to switch back to a Mac.

Cheers,
Tim

-- 
Tim Chevalier * http://cs.pdx.edu/~tjc * Often in error, never in doubt
I like my terminals like my women: VT100 compatible with Tektronix
extensions. -- Sean Teki Dobbs
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Sean Leather
Chris Kuklewicz:

 I have not seen any announcement that GHC 6.8.x is working on OS X

Leopard running on PPC.  I would be pleased to be corrected.


I have Christian Maeder's distribution of 6.8.2 for Tiger (as found on
the the GHC download page) running on my PowerBook G4 with Leopard.
No deviations from the instructions were necessary.

Manuel M T Chakravarty wrote:


 If general compilation problems still persist, they will prevent you from 
 constructing installer packages as well. (I haven't got a PPC, so I didn't 
 keep track of that.)


I'm planning on setting up the GHC source for building when I have time. If
this happens, I will try to build the PPC package.

Sean
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Yitzchak Gale
Manuel M T Chakravarty wrote:
 I'd also be nice to have a cool logo/icon.

Don Stewart wrote:
 Someone want to clean up the classic GHC logo?
 http://www.cse.unsw.edu.au/~dons/images/happy-dino.jpg
 :)

The Clyde Arc in Glasgow, combined somehow with a lambda,
could be the basis of a striking logo.

Unfortunately, that bridge is suffering from some serious
structural and safety issues these days, so perhaps
that is ill-advised...

-Yitz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-12 Thread Yitzchak Gale
Manuel M T Chakravarty wrote:
 Finally, you can have the glorious GHC in a format satisfying the
 discerning Mac user

Fantastic news! Thanks!

 The GHC binary in the package links statically against GNU readline
 (to provide editing capabilities at the GHCi prompt).  This is fine as
 GHC's BSD3 licence is compatible with readline's GPL, and it does
 *not* affect programs compiled with GHC at all.

Thank you for clarifying this.

 The above package is for Intel Leopard... it should be possible to
 build packages on Leopard that run on both Tiger and Leopard.  (I
 could give that a try if anybody with a Tiger box is willing to play
 guinea pig.)

I volunteer. What do I need to do?

Thanks,
Yitz
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-11 Thread Don Stewart
Great!

Does this mean we can submit GHC to be distributed from Apple's
hackage, http://www.apple.com/downloads/ ?  (Click the Submit Downloads 
button).

-- Don

chak:
 Ladies and Gentlemen,
 
 Finally, you can have the glorious GHC in a format satisfying the  
 discerning Mac user:
 
   http://www.cse.unsw.edu.au/~chak/haskell/GHC-6.8.2.20080211-i386.pkg
 
 Installation instructions: nil
 
 This is *not* the same compiler as in the official 6.8.2 release.  It  
 is the state of the 6.8 branch at the 11th of February - hence, the  
 funny version number.  Once, 6.8.3 is being released, there'll be a  
 clean release package.
 
 The package includes all extra libraries and full documentation.  It  
 installs GHC systemwide and requires an admin password.
 
 Happy Installing!
 Manuel
 
 -=- Extra details for the curious -=-
 
 GHC is being packaged as a framework bundle - GHC.framework - that is  
 installed in /Library/Frameworks/.  As far as I can tell this is the  
 most appropriate way of bundling a compiler environment on the Mac.   
 Frameworks are versioned and we use GHC's integer version number to  
 assign framework versions - ie, the present package installs version  
 608.  This is in line with Apple's recommendation to use version  
 numbers that signify API changes for frameworks.  The package installs  
 appropriate links in /usr/bin, /usr/man/man1, and /usr/share/doc to  
 make the binaries, ghc manpage, and html documentation easily  
 accessible.  Furthermore, it comes with a shell script that removes  
 the GHC.framework and all symbolic links into the framework.
 
 The framework is currently not relocatable and an admin password is  
 needed to install it.  Contributions improving this situation would be  
 most welcome.
 
 The GHC binary in the package links statically against GNU readline  
 (to provide editing capabilities at the GHCi prompt).  This is fine as  
 GHC's BSD3 licence is compatible with readline's GPL, and it does  
 *not* affect programs compiled with GHC at all.
 
 The above package is for Intel Leopard.  I expect that a separate PPC  
 version is easy to build (but cross-compilation and fat binaries are  
 not supported by GHC).  I am less sure about building packages on  
 Tiger as I don't know whether the underlying Xcode project requires  
 Xcode 3.0 - Tiger only has 2.5.  However, it should be possible to  
 build packages on Leopard that run on both Tiger and Leopard.  (I  
 could give that a try if anybody with a Tiger box is willing to play  
 guinea pig.)
 
 Further information on GHC installer packages as well as instructions  
 on how to build your own are at
 
   http://hackage.haskell.org/trac/ghc/wiki/Building/MacOSX/Installer
 ___
 Glasgow-haskell-users mailing list
 Glasgow-haskell-users@haskell.org
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-11 Thread Don Stewart
chak:
 Don Stewart:
 Great!
 
 Does this mean we can submit GHC to be distributed from Apple's
 hackage, http://www.apple.com/downloads/ ?  (Click the Submit  
 Downloads button).
 
 Yes, I was thinking about that, too.  However, I think we should wait  
 until 6.8.3 and until we have a stable download url for the package.   
 I'd also be nice to have a cool logo/icon.
 

Someone want to clean up the classic GHC logo?

http://www.cse.unsw.edu.au/~dons/images/happy-dino.jpg  

:)
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANN: Mac installer pkg for GHC - 6.8.2.20080211 trial release (Leopard, Intel)

2008-02-11 Thread Manuel M T Chakravarty

Don Stewart:

Great!

Does this mean we can submit GHC to be distributed from Apple's
hackage, http://www.apple.com/downloads/ ?  (Click the Submit  
Downloads button).


Yes, I was thinking about that, too.  However, I think we should wait  
until 6.8.3 and until we have a stable download url for the package.   
I'd also be nice to have a cool logo/icon.


Manuel

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users