
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... 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 fi ;; esac For whatever the reason I "need to update configure.in to recognise the new architecture, and re-generate configure with autoreconf" but I have no idea what exactly to add. There is no template inside to help me. Could you please let me know what should I do to proceed? Thank you in advance for your help/suggestions. A.S. -- Apostolos Syropoulos Xanthi, Greece

asyropoulos
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@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: OVERALL SUMMARY for test run started at Thu Sep 6 14:54:28 CDT 2012 3402 total tests, which gave rise to 16613 test cases, of which 0 caused framework failures 3554 were skipped 12513 expected passes 367 had missing libraries 133 expected failures 0 unexpected passes 46 unexpected failures Unexpected failures: ../../libraries/base/tests/Concurrent ThreadDelay001 [bad stdout or stderr] (ghci) ../../libraries/base/tests/IO hGetBuf001 [bad exit code] (ghci) ../../libraries/process/tests 1780 [bad exit code] (ghci) ../../libraries/process/tests process005 [bad exit code] (ghci) ../../libraries/unix/tests signals002 [bad exit code] (ghci) ../../libraries/unix/tests signals004 [bad exit code] (ghci,threaded1,threaded2,profthreaded) ../../libraries/unix/tests/libposix posix002 [bad stdout] (normal,hpc,optasm,threaded1,threaded2,dyn,optllvm) ../../libraries/unix/tests/libposix posix002 [bad stdout or stderr] (ghci) codeGen/should_run cgrun071 [bad exit code] (normal,hpc,optasm,profasm,ghci,threaded1,threaded2,dyn,profthreaded,g1) concurrent/should_run async001 [bad stdout or stderr] (ghci) concurrent/should_run conc058 [bad stdout or stderr] (ghci) concurrent/should_run conc070 [bad stdout or stderr] (ghci) concurrent/should_run foreignInterruptible [bad exit code] (ghci) driver/objc objc-hi [bad profile] (profthreaded) driver/objc objc-hi [bad heap profile] (profasm) driver/objc objcpp-hi [bad profile] (profthreaded) driver/objc objcpp-hi [bad heap profile] (profasm) ghci/should_run 3171 [bad stdout] (normal) perf/compiler T4801 [stat too good] (normal) perf/compiler T6048 [stat not good enough] (optasm) perf/compiler T783 [stat not good enough] (normal) perf/haddock haddock.Cabal [stat not good enough] (normal) perf/haddock haddock.base [stat not good enough] (normal) perf/haddock haddock.compiler [stat not good enough] (normal) rts derefnull [bad profile] (profasm,profthreaded) rts divbyzero [bad profile] (profasm,profthreaded) John

Hi Apostolos, On Sun, Sep 16, 2012 at 09:07:56AM -0400, asyropoulos@aol.com wrote:
http://www.haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#sec...
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
participants (3)
-
asyropoulosļ¼ aol.com
-
Ian Lynagh
-
John Wiegley