windows head build problems: Setup.exe: error reading dist\setup-config;

Claus Reinke claus.reinke at talk21.com
Sun Aug 26 09:54:20 EDT 2007


>>    $ ls compiler/stage1/ghc-inplace*
>>    compiler/stage1/ghc-inplace  compiler/stage1/ghc-inplace.bat
>>    compiler/stage1/ghc-inplace.exe
>
> Ah, this could well be the source of the problem; you should only have
> ghc-inplace.exe. Does removing the others fix it?

i changed the Makefile to pass the .exe explicitly, which did get the
build rolling again.

my configuration is cygwin shell, mingw gcc, win/xp, and i did
make distclean, followed by removing outputs of './darcs-all
whatsnew -l', so the other versions are not likely to be left-overs
(shouldn't distclean remove things like libraries/*/configure and
libraries/*/include/*Config.h.in, among others? or, if those are
needed for a distribution, should there be a pristine target, to
get the source tree without any generated files?).

just for the fun of it, there is yet another version, a soft-link from
compiler/ghc-inplace to compiler/stage1/ghc-inplace.exe.., which
is perhaps the one that should be used?

btw, i didn't notice which patch fixed the missing gmp.h issue,
but there still seem to be some residues of the problem:

../utils/mkdependC/mkdependC -f 
.depend-BASE -D__GLASGOW_HASKELL__=607 -I../includes    -- -mno-cygwin -O -Iparser -I. -O    --  
parser/cutils.c parser/hschooks.c
In file included from ../includes/Stg.h:150,

                 from ../includes/Rts.h:19,

                 from parser/cutils.c:6:

../includes/Regs.h:30:45: gmp.h: No such file or directory

In file included from ../includes/Stg.h:150,

                 from ../includes/Rts.h:19,

                 from parser/cutils.c:6:

../includes/Regs.h:30:45: gmp.h: No such file or directory

claus



More information about the Cvs-ghc mailing list