GHC7 (on OSX.5)
Christian Maeder
Christian.Maeder at dfki.de
Tue Mar 22 08:23:12 CET 2011
Am 21.03.2011 18:40, schrieb wren ng thornton:
> On 3/21/11 4:16 AM, Christian Maeder wrote:
>> Am 20.03.2011 20:01, schrieb wren ng thornton:
>>> So I'm having a go of installing ghc-7.0.2 and
>>> haskell-platform-2011.2.0.0 on OSX 10.5. Since 10.5 is no longer
>>> supported I've had to compile from source. The good news is, so far as I
>>> can tell, everything works right out of the box.[1]
>>
>> [...]
>>
>>> [1]
>>> OSX 10.5.8
>>> arch x86_64 (though it calls itself i386)
>>
>> Does your ghc-7.0.2 create 32 or 64 bit Code? What does "ghc --info" say?
>
> $> ghc-7.0.2 --info
> [("Project name","The Glorious Glasgow Haskell Compilation System")
> ,("Project version","7.0.2")
> ,("Booter version","6.12.1")
> ,("Stage","2")
> ,("Build platform","i386-apple-darwin")
> ,("Host platform","i386-apple-darwin")
> ,("Target platform","i386-apple-darwin")
> ,("Have interpreter","YES")
> ,("Object splitting","NO")
> ,("Have native code generator","YES")
> ,("Have llvm code generator","YES")
> ,("Support SMP","YES")
> ,("Unregisterised","NO")
> ,("Tables next to code","YES")
> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn
> thr_debug_dyn")
> ,("Leading underscore","YES")
> ,("Debug on","False")
> ,("LibDir","/usr/local/lib/ghc-7.0.2")
> ,("Global Package DB","/usr/local/lib/ghc-7.0.2/package.conf.d")
> ,("C compiler
> flags","[\"-march=i686\",\"-m32\",\"-isysroot\",\"/Developer/SDKs/MacOSX10.5.sdk\",\"-mmacosx-version-min=10.5\",\"-fno-stack-protector\"]")
>
> ,("Gcc Linker
> flags","[\"-march=i686\",\"-m32\",\"-isysroot\",\"/Developer/SDKs/MacOSX10.5.sdk\",\"-mmacosx-version-min=10.5\"]")
>
> ,("Ld Linker
> flags","[\"-arch\",\"i386\",\"-macosx_version_min\",\"10.5\"]")
>
This output (the flag -m32 and platform i386) clearly indicates that
32bit binaries (like the bootstrapping ghc-6.12.1) are produced.
If you had added "darwin" to "OsSupportsSplitObjs" in "mk/config.mk.in"
then "Object splitting" were "YES" and binaries were smaller,
see http://hackage.haskell.org/trac/ghc/ticket/5008
Cheers Christian
>>> Xcode 3.1.2 (not that it matters)
>>> gcc 4.0.1 (i686-apple-darwin9-gcc-4.0.1 Apple Inc. build 5490)
>>> ghc 6.12.1 / hp 2010.1.0.0
>>
>> As far as I know there was no 64bit ghc-6.12.x for MacOS. Is it possible
>> to create a 64bit ghc starting with a 32Bit ghc? I don't think so and
>> always used ghc-6.10.4 from macports to create 64bit binary-dists that
>> have the suffix -x86_64-apple-darwin.tar.bz2 rather than
>> -i386-apple-darwin.tar.bz2 for 32bit compilers.
>
> The 6.12 is definitely 32bit. I can't say how that affects bootstrapping.
>
More information about the Glasgow-haskell-users
mailing list