Tiger installer [was: Re: ANN: Mac installer pkg for GHC -
18.104.22.16880211 trial release (Leopard, Intel)]
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Tue Feb 19 19:56:26 EST 2008
> 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
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-
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.
More information about the Glasgow-haskell-users