GHC Trac Home
GHC Git Repos
Working on GHC
Mailing Lists & IRC
The GHC Team
All Feature Req's
Tickets I Created
Patches for review
New Feature Req
side by side
lines around each change
Show the changes in full context
White space changes
Apr 24, 2007 12:29:19 PM (
If you're on Vista, first of all you need to disable "installer-detection", which causes strange things to happen for binaries called "setup.exe", amongst other things. Go to `Start -> All Programs -> Accessories > Run` and enter `secpol.msc`. Then under `Security Settings -> Local Policies -> Security Options`, disable `UAC: Detect application installations and prompt for elevation`. Then reboot.
When building against MingW, make sure that the paths of MingW's gcc.exe and cc1.exe are in your PATH environment variable.
Best put them at the front. Otherwise Cygwin's executables might be found rather than MingW's. If you do not
set the path's correctly, you may get the following error in config.log:
configure:3321: checking for C compiler default output file name
configure:3348: c:/MinGW/bin/gcc conftest.c >&5
ld: /mingw/lib/crt2.o: No such file: No such file or directory
configure:3351: $? = 1
configure: failed program was:
configure:3396: error: C compiler cannot create executables
See `config.log' for more details.
From within a Cygwin terminal, you can set PATH like:
If you are unsure whether you have set PATH correctly, try to compile a simple C program
with MingW's gcc first.
== Installing and configuring MSYS ==