Winfried, could you also try my binary distribution? http://www.haskell.org/ghc/download_ghc_66.html#sparcsolaris
Ian, could you remove the out-dated first line from this page? <cite> NOTE: you must use GCC 2.95 or 3.4+ on Sparc. There is a known bug with GCC versions between 3.0-3.3 which causes incorrect code to be generated. </cite> Winfried Kung schrieb: > Hello, > > when trying to build ghc-6.6 under Sparc Solaris (SunOS 5.9), the build fails > with "/usr/ccs/bin/ld: illegal option -- x" > I use gcc version 3.4.4 and GNU ld version 2.11.2 (with BFD 2.11.2). My > configure recognizes them and sets an ld option "-x" as expected. But when it > comes to make, I get the message: ghc-6.6 can cope with the solaris linker. So if you call ./configure when "/usr/ccs/bin" is first in your path, this should avoid using the -x option. > > == make all -wr -f Makefile; > in /global/HOME/kung/install/ghc-6.6/libraries/base > ------------------------------------------------------------------------ > ../../compiler/ghc-inplace -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc -H16m > -O -H16m -O -H16m -O -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h > -funbox-strict-fields -package-name base-2.0 -O -Rghc-timing -fgenerics > -fgenerics -split-objs -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/Base.hi > /usr/ccs/bin/ld: illegal option -- x > usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s) > [-64] enforce a 64-bit link-edit > ... > ... > [-z verbose] generate warnings for suspicious processings > collect2: ld returned 1 exit status > > It seems strange to me that /usr/ccs/bin/ld is called here, instead of > /usr/local/bin/ld which I have in my path, but calling ghc-inplace with > option "-pgml /usr/local/bin/ld" did not help either. This seems strange to me, too, sorry. Christian _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
