6.8.1 compilation error on Sun Solaris 9

Robert Andersson robert at gslt.hum.gu.se
Mon Nov 5 04:16:09 EST 2007


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...]

<<ghc: 33215112 bytes, 8 GCs, 1582480/3066808 avg/max bytes residency (2 samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.35 MUT (0.51 elapsed), 0.15 GC (0.16 elapsed) :ghc>>

gmake[1]: *** [stage1/main/Constants.o] Error 1

gmake: *** [stage1] Error 1


---------- errors end ----------

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?

Anyway hope someone can give me a few pointers on what is going on.

yours,
/robert

-- 
Systems Administrator & IT-Coordinator
Swedish National Graduate School of Language Technology
Nordic Graduate School of Language Technology


More information about the Glasgow-haskell-users mailing list