asyropoulos | 16 Sep 15:07 2012
Picon

GHC on OpenIndiana

 Dear Developers,

   I am trying to compile the GHC on OpenIndiana (essentially Solaris 
11).  I follow the steps in

http://www.haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#sec-booting-from-hc

and here is what I get:

$ ./distrib/hc-build --prefix=/opt/gnu/ghcb --enable-hc-boot
*** Building compiler...
checking for gfind... /usr/bin/gfind
checking for sort... /opt/gnu/bin/sort
checking for ghc... no
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking target system type... i386-pc-solaris2.11
HOST: i386-pc-solaris2.11
Can't work out build platform

Not e that configure.ac contains a section on Solaris:

SOLARIS_BROKEN_SHLD=NO

case $host in
     i386-*-solaris2)
     # here we go with the test
     MINOR=`uname -r|cut -d '.' -f 2-`
     if test "$MINOR" -lt "11"; then
        SOLARIS_BROKEN_SHLD=YES
(Continue reading)

John Wiegley | 16 Sep 18:17 2012

Re: GHC on OpenIndiana

>>>>> asyropoulos  <asyropoulos <at> aol.com> writes:

> I am trying to compile the GHC on OpenIndiana (essentially Solaris 11).  I
> follow the steps in

Hi Apostolos,

It took me a while to finally figure this out, but in the end I was able to
get GHC 7.4.2 working nicely on OpenIndiana.  Here are the steps I followed:

 1. Add the SFE publisher to OpenIndiana

    pkg set-publisher -p http://pkg.openindiana.org/sfe

 2. Uninstall the old gnu and gcc-3 packages

 3. Install gcc <at> 4.6.2 from SFE (or whatever is current)

 4. Configure with:

    ./configure '--with-ld=/usr/bin/ld --with-gcc=/usr/bin/gcc \
        --with-nm=/usr/bin/nm --with-gmp-includes=/usr/gnu/include \
        --with-gmp-libraries=/usr/gnu/lib \
        --with-iconv-includes=/usr/gnu/include \
        --with-iconv-libraries=/usr/gnu/lib

 5. make

Here are my fulltest results:

(Continue reading)

Ian Lynagh | 28 Oct 22:45 2012

Re: GHC on OpenIndiana


Hi Apostolos,

On Sun, Sep 16, 2012 at 09:07:56AM -0400, asyropoulos <at> aol.com wrote:
> 
> http://www.haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#sec-booting-from-hc

Some community members have made Solaris binary distributions in the
past. It would be easier to start from one of those rather than trying
to port GHC. It looks like the latest one is here:

    http://www.haskell.org/ghc/download_ghc_7_0_3#x86solaris

> checking build system type... i386-pc-solaris2.11
> checking host system type... i386-pc-solaris2.11
> checking target system type... i386-pc-solaris2.11
> HOST: i386-pc-solaris2.11
> Can't work out build platform
> 
> 
> Not e that configure.ac contains a section on Solaris:

You probably need to normalise solaris2* to solaris2 in aclocal.m4
(search for "solaris").

Thanks
Ian

Gmane