Changes between Version 19 and Version 20 of Building/Solaris


Ignore:
Timestamp:
Feb 8, 2010 3:48:19 AM (5 years ago)
Author:
benl
Comment:

Add error message from gccfss

Legend:

Unmodified
Added
Removed
Modified
  • Building/Solaris

    v19 v20  
    4545 * GCC version 4.1.2 is known to work. Use this version if possible.
    4646
    47 On Solaris 10, `/usr/bin/gcc` is "GCC for Sun Systems (gccfss)". This is a version that uses Sun's code generator backend. This is completely unusable for GHC because GHC has to post-process (mangle) the assembly output of GCC. It expects the format and layout that the normal GCC uses.
     47On Solaris 10, `/usr/bin/gcc` is "GCC for Sun Systems (gccfss)". This is a version that uses Sun's code generator backend. This is completely unusable for GHC because GHC has to post-process (mangle) the assembly output of GCC. GHC expects the format and layout that the normal GCC uses. Trying to compile a "hello world" program using gccfss will fail like this:
     48
     49{{{
     50benl@greyarea:~/tmp$ ghc --make Main.hs
     51[1 of 1] Compiling Main             ( Main.hs, Main.o )
     52... SUNW0scgfss/4.0.4/prod/bin/fbe: "/tmp/ghc19018_0/ghc19018_0.s", line 242: error: invalid character (0x40)
     53... SUNW0scgfss/4.0.4/prod/bin/fbe: "/tmp/ghc19018_0/ghc19018_0.s", line 242: error: quoted-string operand required
     54... SUNW0scgfss/4.0.4/prod/bin/fbe: "/tmp/ghc19018_0/ghc19018_0.s", line 242: error: statement syntax
     55}}}
     56
     57
    4858
    4959The version of `/usr/sfw/bin/gcc` on Solaris 10 is 3.4.x which has problems, see below.