From b15e663f7575b0dba1987f0d7968c9939d82dad9 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 19 May 2003 08:31:11 +0000 Subject: [PATCH] [project @ 2003-05-19 08:31:11 by simonpj] More Win32 help --- docs/building/building.sgml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/docs/building/building.sgml b/docs/building/building.sgml index 565b0be..27e390b 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -4435,15 +4435,32 @@ This is the point at which you specify that you are building GHC-mingw (see ). Both these options are important! It's possible to get into -trouble using the wrong C compiler! -Furthermore, it's very important that you specify a -full mingw path for gcc, not a cygwin path, because GHC (which -uses this path to invoke gcc) is a Mingw program and won't -understand a cygwin path.. For example, if you +trouble using the wrong C compiler! + +Furthermore, it's very important that you specify a +full MinGW path for gcc, not a Cygwin path, because GHC (which +uses this path to invoke gcc) is a MinGW program and won't +understand a Cygwin path. For example, if you say --with-gcc=/mingw/bin/gcc, it'll be interpreted as /cygdrive/c/mingw/bin/gcc, and GHC will fail the first -time it tries to invoke it. (Worse, the failure does not come with -a helpful error message, unfortunately.) +time it tries to invoke it. Worse, the failure comes with +no error message whatsoever. GHC simply fails silently when first invoked, +typically leaving you with this: + +make[4]: Leaving directory `/cygdrive/e/fptools-stage1/ghc/rts/gmp' +../../ghc/compiler/ghc-inplace -optc-mno-cygwin -optc-O + -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes + -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return + -optc-Wbad-function-cast -optc-Wcast-align -optc-I../includes + -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS + -optc-fomit-frame-pointer -O2 -static + -package-name rts -O -dcore-lint -c Adjustor.c -o Adjustor.o +make[2]: *** [Adjustor.o] Error 1 +make[1]: *** [all] Error 1 +make[1]: Leaving directory `/cygdrive/e/fptools-stage1/ghc' +make: *** [all] Error 1 + +Be warned! -- 1.7.10.4