Ian, look at this (on windows)

make: Leaving directory `/c/code/HEAD/bindisttest'
make: Entering directory `/c/code/HEAD/testsuite/tests/ghc-regress'
../../mk/boilerplate.mk:104: *** Cannot find ghc: 
/c/code/HEAD/bindisttest/installed/bin/ghc.  Stop.
make: Leaving directory `/c/code/HEAD/testsuite/tests/ghc-regress'

Of course, it should be "install dir" not "installed".

The relevant test seems to be on line 62 of testsuite/mk/boilerplate.mk:

ifeq '$(shell $(STAGE1_GHC) +RTS --info | grep "^ ..\"Host OS\". 
\"mingw32\".$$")' ''
TEST_HC := $(abspath $(TOP)/../)/bindisttest/installed/bin/ghc
else
TEST_HC := $(abspath $(TOP)/../)/bindisttest/install dir/bin/ghc.exe
endif
else ifeq "$(stage)" "1"


But if you ask the *RTS* of the *stage1* compiler, you are asking stuff from 
the *bootstrap* compiler.   And GHC 6.10 doesn't have that Host OS stuff (see 
below).

Surely you should test STAGE2_GHC?

Would you like to commit a patch if that's the right diagnosis?

Simon


sh-3.1$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.1
sh-3.1$ /c/code/HEAD/inplace/bin/ghc-stage1 +RTS --info
 [("GHC RTS", "Yes")
 ,("GHC version", "6.10.1")
 ,("RTS way", "rts")
 ,("Host platform", "i386-unknown-mingw32")
 ,("Build platform", "i386-unknown-mingw32")
 ,("Target platform", "i386-unknown-mingw32")
 ,("Compiler unregisterised", "NO")
 ,("Tables next to code", "YES")
 ]
sh-3.1$ /c/code/HEAD/inplace/bin/ghc-stage2 +RTS --info
 [("GHC RTS", "YES")
 ,("GHC version", "6.13.20091031")
 ,("RTS way", "rts_thr")
 ,("Host platform", "i386-unknown-mingw32")
 ,("Host architecture", "i386")
 ,("Host OS", "mingw32")
 ,("Host vendor", "unknown")
 ,("Build platform", "i386-unknown-mingw32")
 ,("Build architecture", "i386")
 ,("Build OS", "mingw32")
 ,("Build vendor", "unknown")
 ,("Target platform", "i386-unknown-mingw32")
 ,("Target architecture", "i386")
 ,("Target OS", "mingw32")
 ,("Target vendor", "unknown")
 ,("Word size", "32")
 ,("Compiler unregisterised", "NO")
 ,("Tables next to code", "YES")
 ]
sh-3.1$
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to