Sparc/Intel Solaris support

Christian Maeder maeder at tzi.de
Mon May 14 06:03:31 EDT 2007


Joel Reymont schrieb:
> Christian,
> 
> On May 10, 2007, at 11:36 AM, Christian Maeder wrote:
> 
>> work well under Solaris 10 for us. I'm in the process of making
>> distributions for ghc-6.6.1.
> 
> Where do you install ghc on Solaris 10? I have /opt/csw, should I just
> move the tree there and adjust my path?

We have special directories for user software (i.e.
/usr/local/lang/haskell). You can unpack the binary distribution, call
'./configure --prefix=/opt/csw' and 'make install'. (Just moving does
not work.) You do not need root rights if you have write access to the
configure prefix.

My ghc-6.6.1 distributions can be found here:

i386: (42929114 Byte including documentation
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/versions/ghc-6.6.1-i386-unknown-solaris2.tar.bz2

sparc: (39197952 Byte without documentation)
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/solaris/versions/ghc-6.6.1-sparc-sun-solaris2.tar.bz2

Ian, could you add and upload these dists to
http://www.haskell.org/ghc/download_ghc_661.html?

Further details below

Cheers Christian

ghc-6.6.1-i386-unknown-solaris2 was build using gcc-3.4.6 (and a Solaris
Linker) on an AMD Athlon-64 under Solaris 10 (with 1 GB RAM, 2GHz)

required libraries:
-bash-3.1$ ldd lib/i386-unknown-solaris2/ghc-6.6.1
        librt.so.1 =>    /lib/librt.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libreadline.so.5 =>      /usr/local/lib/libreadline.so.5
        libncurses.so.5 =>       /usr/local/lib/libncurses.so.5
        libm.so.2 =>     /lib/libm.so.2
        libgmp.so.3 =>   /usr/local/lib/libgmp.so.3
        libpthread.so.1 =>       /lib/libpthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd5.so.1 =>   /lib/libmd5.so.1
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1

provided libraries:
lib/i386-unknown-solaris2/package.conf:
    Cabal-1.1.6.2, GLUT-2.1.1, HGL-3.1.1, HUnit-1.1.1, OpenGL-2.2.1,
    QuickCheck-1.0.1, X11-1.2.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1,
    filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0,
    html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, readline-1.0,
    regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0,
    stm-2.0, template-haskell-2.1, time-1.1.1, unix-2.1, xhtml-3000.0.2

testsuite summary created by 'gmake stage=2' in testsuite:
OVERALL SUMMARY for test run started at Fri May 11 12:48:45 CEST 2007
    1488 total tests, which gave rise to
    7079 test cases, of which
       4 caused framework failures
    1246 were skipped

    5761 expected passes
      48 expected failures
       0 unexpected passes
      20 unexpected failures

Unexpected failures:
   conc019(ghci)
   concprog001(normal,opt,optasm,prof,profasm,threaded1,threaded2)
   concprog002(threaded2)
   galois_raytrace(optasm,profasm)
   openFile003(normal,opt,optasm,prof,profasm,ghci,threaded1,threaded2)
   regex001(threaded1)

Remarks:
gcc-4.1.2 had a problem to build a ghci

config.way_flags in testsuite/config/ghc needed:
        'threaded1'  : ['-threaded', '-debug', '-optl-L/usr/local/lib
-optl-lbfd -optl-liberty -optl-lintl'],

ghc-6.6.1-sparc-sun-solaris2 was build using gcc-4.0.3 (and a gnu linker
2.16.1) on an Ultra-4 (Enterprise 450) with Solaris 8 (with 4 GB RAM,
400MHz)

required libraries:
-bash-3.00$ ldd lib/sparc-sun-solaris2/ghc-6.6.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libreadline.so.5 =>      /usr/local/lib/libreadline.so.5
        libncurses.so.5 =>       /usr/local/lib/libncurses.so.5
        libm.so.2 =>     /usr/local/lib/libm.so.2
        libgmp.so.3 =>   /usr/local/lib/libgmp.so.3
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

provided libraries:
lib/sparc-sun-solaris2/package.conf:
    Cabal-1.1.6.2, GLUT-2.1.1, HGL-3.1.1, HUnit-1.1.1, OpenGL-2.2.1,
    QuickCheck-1.0.1, X11-1.2.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1,
    filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0,
    html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, readline-1.0,
    regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0,
    stm-2.0, template-haskell-2.1, time-1.1.1, unix-2.1, xhtml-3000.0.2

testsuite summary created by 'gmake stage=2' in testsuite on a
Sun-Fire-V240 with Solaris 10:

OVERALL SUMMARY for test run started at Fri May 11 12:52:01 MEST 2007
    1488 total tests, which gave rise to
    5023 test cases, of which
      10 caused framework failures
     736 were skipped

    4204 expected passes
      42 expected failures
       0 unexpected passes
      31 unexpected failures

Unexpected failures:
   QSemN001(opt)
   barton-mangler-bug(prof)
   bytestring001(normal,opt,prof,threaded1,threaded2)
   bytestring004(normal,opt,prof,threaded1,threaded2)
   bytestring005(normal,opt,prof,threaded1,threaded2)
   conc019(ghci)
   conc049(normal,opt)
   concprog001(normal,opt,prof,threaded1)
   concprog002(threaded2)
   driver017(normal)
   driver035(normal)
   ffi017(ghci)
   ffi018(ghci)
   ghciprog004(normal)
   regex001(threaded1)

Remarks:
mk/build.mk required (apart form Project=Ghc and BIN_DIST=1)
  SRC_HC_OPTS += -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc

config.way_flags in testsuite/config/ghc needed:
       'threaded1'  : ['-threaded', '-debug', '-optl-L/usr/local/lib
-optl-lbfd -optl-liberty'],



More information about the Glasgow-haskell-users mailing list