From cd891a8e391072aa7d9b15b222565e5bc1323ef0 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 17 Feb 2003 15:14:25 +0000 Subject: [PATCH] [project @ 2003-02-17 15:14:25 by simonpj] More notes about building on Win32 --- docs/building/building.sgml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/building/building.sgml b/docs/building/building.sgml index c08ac39..0975985 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -4366,13 +4366,22 @@ can be really confusing. fptools/ thus: - ./configure --host=i386-unknown-mingw32 --with-gcc=/mingw/bin/gcc + ./configure --host=i386-unknown-mingw32 --with-gcc=c:/mingw/bin/gcc 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! +(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 +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.) + If you want to build GHC-cygwin () -- 1.7.10.4