Building GHC on Solaris

Bernie Pope bjpop at csse.unimelb.edu.au
Mon Mar 10 02:51:50 EDT 2008


(If no one minds I'll keep dumping the issues that I find in this  
thread.)

Solaris "as" chokes on the ".space" directive, which appears to be  
generated by the C-- compiler,
specifically, compiler/nativeGen/PprMach.hs, line 693:

    pprData (CmmUninitialised bytes) = ptext SLIT(".space ") <> int  
bytes

According to the GNU binutils docs:

    This [.space] directive emits size bytes, each of value fill.  
Both size and fill are absolute expressions. If the comma and fill  
are omitted, fill is assumed to be zero. This is the same as `.skip'.

So I believe GHC should use ".skip" in this situation, at least for  
solaris, but probably for all x86 platforms.

Cheers,
Bernie.



More information about the Cvs-ghc mailing list