Win32 build of ghc from cvs failed; also 6.4 source distribution

Conal Elliott conal at conal.net
Tue Apr 12 01:18:38 EDT 2005


I'm trying to build GHC for the first time (on Windows XP).  I'm running
into compile failures both on a fresh CVS checkout and on the 6.4 source
distribution.  I could sure use some help at this point.  If there's a
more suitable alias for me to use, please say so.
 
With the CVS version, after "autoreconf" and "./configure
--host=i386-unknown-mingw32 --with-gcc=c:/mingw/bin/gcc", running make
ended as follows: 
 
    ../../../glafp-utils/mkdependC/mkdependC -f .depend
-I../../includes  -- -mno-cygwin -O    -- cbits/directory.c
cbits/rawSystem.c 
    cbits/directory.c:11:23: directory.h: No such file or directory
    cbits/directory.c:11:23: directory.h: No such file or directory
    ==fptools== make boot - --unix - --no-print-directory -r;
     in /cygdrive/c/fptools/ghc/utils/ghc-pkg
 
------------------------------------------------------------------------
    /cygdrive/c/ghc/ghc-6.4/bin/ghc -M -optdep-f -optdep.depend  -osuf o
-optdep--exclude-module=Compat.RawSystem
-optdep--exclude-module=Compat.Directory
-optdep--exclude-module=Distribution.Compat.ReadP
-optdep--exclude-module=Distribution.Extension
-optdep--exclude-module=Distribution.GetOpt
-optdep--exclude-module=Distribution.InstalledPackageInfo
-optdep--exclude-module=Distribution.License
-optdep--exclude-module=Distribution.Package
-optdep--exclude-module=Distribution.ParseUtils
-optdep--exclude-module=Distribution.Setup
-optdep--exclude-module=Distribution.Version
-optdep--exclude-module=System.Directory.Internals   -H32m -O0 -W
-fno-warn-unused-matches -fwarn-unused-imports -cpp -Wall
-fno-warn-name-shadowing -fno-warn-unused-matches -i../../lib/compat
-Rghc-timing -DDEBUG -package Cabal Main.hs Version.hs
    <<ghc: 16889144 bytes, 2 GCs, 93712/93712 avg/max bytes residency (1
samples), 24M in use, 0.04 INIT (0.00 elapsed), 0.07 MUT (0.08 elapsed),
0.01 GC (0.01 elapsed) :ghc>>
    make all
    /cygdrive/c/ghc/ghc-6.4/bin/ghc -o ghc-pkg.exe -H32m -O0 -W
-fno-warn-unused-matches -fwarn-unused-imports -cpp -Wall
-fno-warn-name-shadowing -fno-warn-unused-matches -i../../lib/compat
-Rghc-timing -DDEBUG -package Cabal    -L../../lib/compat -lghccompat
-lshell32   Main.o Version.o   
    ../../lib/compat/libghccompat.a(Directory.o)(.text+0x1c4):fake:
undefined reference to `__hscore_getFolderPath'
    <<ghc: 16099576 bytes, 2 GCs, 89740/89740 avg/max bytes residency (1
samples), 24M in use, 0.04 INIT (0.00 elapsed), 0.06 MUT (0.06 elapsed),
0.01 GC (0.01 elapsed) :ghc>>
    make[4]: *** [ghc-pkg.exe] Error 1
    make[3]: *** [boot] Error 2
    make[2]: *** [boot] Error 1
    make[1]: *** [boot] Error 1
    make[1]: Leaving directory `/cygdrive/c/fptools/ghc'
    make: *** [build] Error 1
bash-2.05b$ bash-2.05b$
 
With the 6.4 source distribution, compilation got *much* further and
ended in this way:
 
    ../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp
-Iinclude -"#include" HsBase.h -funbox-strict-fields -ignore-package
base -O -Rghc-timing -fgenerics  -fgenerics -split-objs    -c
Foreign/C/Error.hs -o Foreign/C/Error.o  -ohi Foreign/C/Error.hi
 
    Foreign/C/Error.hs:192:25: Not in scope: data constructor
`CONST_EEXIST'
    <<ghc: 31124472 bytes, 7 GCs, 1377414/2685600 avg/max bytes
residency (2 samples), 17M in use, 0.02 INIT (0.00 elapsed), 0.14 MUT
(0.19 elapsed), 0.06 GC (0.06 elapsed) :ghc>>
    make[2]: *** [Foreign/C/Error.o] Error 1
    make[1]: *** [all] Error 1
    make[1]: Leaving directory `/cygdrive/c/Temp/ghc-6.4/libraries'
make: *** [build] Error 1
 
Any pointers?  
 
Also, for CVS, how do I specify in my cvs checkout command that I want
STABLE vs HEAD?  is there an explanation somewhere of these two choices
and are there others?
 
TIA,
 
            - Conal
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/cvs-ghc/attachments/20050411/b8303a8b/attachment.htm


More information about the Cvs-ghc mailing list