Changes between Version 22 and Version 23 of Building/Solaris


Ignore:
Timestamp:
Feb 12, 2010 12:29:26 AM (4 years ago)
Author:
benl
Comment:

Add error message from sun assembler

Legend:

Unmodified
Added
Removed
Modified
  • Building/Solaris

    v22 v23  
    6464But such a gcc version is sufficient for most user programs in case you just installed a ghc binary distribution.  
    6565 
     66== Using the wrong assembler == 
     67If you fail to install GNU binutils then GHC will try to use the native Sun assembler, and you'll get something like this: 
     68 
     69{{{ 
     70benl@greyarea:~/tmp$ ghc --make Main.hs -fforce-recomp 
     71[1 of 1] Compiling Main             ( Main.hs, Main.o ) 
     72/usr/ccs/bin/as: "/tmp/ghc19665_0/ghc19665_0.s", line 242: error: invalid character (0x40) 
     73/usr/ccs/bin/as: "/tmp/ghc19665_0/ghc19665_0.s", line 242: error: quoted-string operand required 
     74/usr/ccs/bin/as: "/tmp/ghc19665_0/ghc19665_0.s", line 242: error: statement syntax 
     75}}} 
     76 
     77The offending line is: 
     78{{{ 
     79.section .note.GNU-stack,"",@progbits 
     80}}} 
    6681 
    6782== Split objects ==