windows head build problems: Setup.exe: error reading
dist\setup-config;
Claus Reinke
claus.reinke at talk21.com
Sun Aug 26 08:05:53 EDT 2007
>> Setup.exe: ghc version >=6.2 is required but the version of
>> ..\..\compiler\stage1\ghc-inplace could not be determined.
>
> What do
> compiler/stage1/ghc-inplace -v --version
> compiler/stage1/ghc-inplace -v --numeric-version
> say?
$ compiler/stage1/ghc-inplace -v --version
Using c:/fptools/ghc/compiler/stage1/ghc.exe -Bc:/fptools/ghc -fhardwire-lib-paths
The Glorious Glasgow Haskell Compilation System, version 6.7.20070824
$ compiler/stage1/ghc-inplace -v --numeric-version
Using c:/fptools/ghc/compiler/stage1/ghc.exe -Bc:/fptools/ghc -fhardwire-lib-paths
6.7.20070824
> Adding -v3 to the "setup/Setup configure ..." command giving the error
> might also shed some light.
not much info, but apparently empty output for version number (see end
of this mail). note that there are no fewer than three versions of ghc-inplace:
$ ls compiler/stage1/ghc-inplace*
compiler/stage1/ghc-inplace compiler/stage1/ghc-inplace.bat compiler/stage1/ghc-inplace.exe
$ compiler/stage1/ghc-inplace -v --numeric-version
Using c:/fptools/ghc/compiler/stage1/ghc.exe -Bc:/fptools/ghc -fhardwire-lib-paths
6.7.20070824
$ compiler/stage1/ghc-inplace.bat -v --numeric-version
6.7.20070824
$ compiler/stage1/ghc-inplace.exe -v --numeric-version
Using c:/fptools/ghc/compiler/stage1/ghc.exe -Bc:/fptools/ghc -fhardwire-lib-paths
6.7.20070824
$ cat compiler/stage1/ghc-inplace
#!/bin/sh
exec c:/fptools/ghc/compiler/stage1/ghc -Bc:\\\\fptools\\\\ghc "$@"
$ cat compiler/stage1/ghc-inplace.bat
@call c:\\fptools\\ghc\compiler\stage1\ghc -Bc:\\fptools\\ghc %*
all three report the same if called from a cygwin bash, but the path
passed to setup/Setup indicates the shell script, not the .exe. that
relies on runProcess picking up the shell from the calling environment,
doesn't it?
claus
------------------- make log, with -v3 added
make -C libraries all
make[1]: Entering directory `/cygdrive/c/fptools/ghc/libraries'
rm -f -f stamp/configure.library.*.base base/unbuildable
( cd base && setup/Setup configure -v3 \
--enable-library-profiling \
--prefix='$topdir' \
--datadir='$prefix' \
--datasubdir='.' \
--libsubdir='$pkgid' \
--with-compiler=../../compiler/stage1/ghc-inplace\
--with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace\
--with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
--with-ld=c:/MinGW/bin/ld \
--haddock-args="--use-contents=../index.html \
--use-index=../doc-index.html" \
--configure-option='--host=i386-unknown-mingw32' --configure-option='--with-gcc=c:/MinGW/bin/gcc'
--configure-option='host_alias=i386-unknown-mingw32' \
--configure-option=--with-cc=c:/MinGW/bin/gcc ) \
&& touch stamp/configure.library.build-profiling.base || touch base/unbuildable
Setup.exe: Warning: Unknown fields: nhc98-options (line 168),
extra-tmp-files (line 169)
Fields allowed in this section:
buildable, cc-options, ld-options, frameworks, c-sources,
extensions, extra-libraries, extra-lib-dirs, includes,
install-includes, include-dirs, hs-source-dirs, other-modules,
ghc-prof-options, ghc-options, hugs-options, nhc-options,
jhc-options, exposed-modules
Setup.exe: Warning: A package using section syntax should require
"Cabal-Version: >= 1.2" or equivalent.
Configuring base-2.1...
..\..\compiler\stage1\ghc-inplace --numeric-version
cannot determine version of ..\..\compiler\stage1\ghc-inplace :
""
Setup.exe: ghc version >=6.2 is required but the version of ..\..\compiler\stage1\ghc-inplace could
not be determined.
rm -f base/GNUmakefile
cp Makefile.local base
if ifBuildable/ifBuildable base; then \
cd base && setup/Setup makefile -f GNUmakefile; \
fi
Setup.exe: error reading dist\setup-config; run "setup configure" command?
make[1]: *** [base/GNUmakefile] Error 1
make[1]: Leaving directory `/cygdrive/c/fptools/ghc/libraries'
make: *** [stage1] Error 2
More information about the Cvs-ghc
mailing list