When trying to build GHC (be it the 7.2 branch, the 7.4 branch or the HEAD) on Windows using GHC 7.2.2, I end up with the following bits in config.mk after configure:
WhatGccIsCalled = c:/ghc/head/inplace/mingw/bin/gcc.exe GccVersion = 4.5.2 GccLT34 = NO GccLT46 = YES CC = $(WhatGccIsCalled) CC_STAGE0 = $topdir/../mingw/bin/gcc.exe CC_STAGE1 = $(CC) CC_STAGE2 = $(CC) CC_STAGE3 = $(CC) AS = $(WhatGccIsCalled) AS_STAGE0 = $topdir/../mingw/bin/gcc.exe AS_STAGE1 = $(AS) AS_STAGE2 = $(AS) AS_STAGE3 = $(AS) and AR = c:/ghc/head/inplace/mingw/bin/ar.exe AR_OPTS = q ArSupportsAtFile = YES AR_STAGE0 = D:/slave/stable/builder/tempbuild/build/inplace/mingw/bin/ar.exe AR_STAGE1 = $(AR) AR_STAGE2 = $(AR) AR_STAGE3 = $(AR) Note that CC_STAGE0, AS_STAGE0 and AR_STAGE0 are utterly wrong. The actually come from ghc-7.2.2/lib/settings which looks like this: [("GCC extra via C opts", " -fwrapv"), ("C compiler command", "$topdir/../mingw/bin/gcc.exe"), ("C compiler flags", ""), ("ar command", "D:/slave/stable/builder/tempbuild/build/inplace/mingw/bin/ar.exe"), ("ar flags", "q"), ("ar supports at file", "YES"), ("touch command", "$topdir/touchy.exe"), ("dllwrap command", "$topdir/../mingw/bin/dllwrap.exe"), ("windres command", "$topdir/../mingw/bin/windres.exe"), ("perl command", "$topdir/../perl/perl.exe")] Ignoring the fact that "ar command" is wrong (reported as #5760), how do these bits end up in config.mk? Am I doing something wrong or is it a bug? Everything builds fine if I replace *_STAGE0 with $(CC), $(AS) and $(AR), respectively. Roman _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc