6.8.1 compilation error on Sun Solaris 9

Hello!
When compiling on Sun Solaris 5.9 sun4u sparc with configure
./configure --with-gmp-includes=/opt/csw/include --with-gmp-libraries=/opt/csw/lib --with-ghc=/usr/local/ghc/bin/ghc
using gcc version 4.0.2 I get the following errors
---------- errors start ----------
== gmake all -r;
in /usr/local/src/ghc-6.8.1/compiler
------------------------------------------------------------------------
/usr/local/ghc/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/vectorise -istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istage1/ndpFlatten -istage1/iface -istage1/cmm -Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage1 -DOMIT_NATIVE_CODEGEN -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang -recomp -Rghc-timing -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal -c main/Constants.lhs -o stage1/main/Constants.o -ohi stage1/main/Constants.hi
./../includes/GHCConstants.h:1:25: Not in scope: `zd'
./../includes/GHCConstants.h:2:25: Not in scope: `zd'
[...alot of these here...]
<

Hi Robert, On Mon, Nov 05, 2007 at 10:16:09AM +0100, Robert Andersson wrote:
./../includes/GHCConstants.h:1:25: Not in scope: `zd'
Does changing line 36 of includes/mkDerivedConstants.c from #ifdef mingw32_HOST_OS to #if defined(mingw32_HOST_OS) || defined(solaris2_HOST_OS) fix it?
I also noticed that the GHC bundle also tries to install its own gmp even though I explicitly say not to. Why is gmp even bundled with ghc?
It's bundled as the devel library is often not available on Windows machines. Looking at the configure output and config.log might reveal why the build system thinks you don't have gmp installed.
Anyway hope someone can give me a few pointers on what is going on.
Hope that helps! Thanks Ian
participants (2)
-
Ian Lynagh
-
Robert Andersson