Opened 6 years ago

Closed 5 years ago

#5489 closed bug (fixed)

Win7: Bootstrapping 7.3 from 7.2.1 using msys git 1.7.6 causes integer-gmp ./configure to fail

Reported by: btutt Owned by: igloo
Priority: normal Milestone: 7.6.2
Component: Documentation Version: 7.3
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Following the getting started instructions and the approximate suggested path for my .profile.

I ended up with flex.exe being found in the Git installation directory.

My work around was to: uninstall msys Install MinGW/MSys from

DO NOT download the latest catalogues. They've uploaded a gcc-4.6.x compiler so beware. I didn't bother trying so beware. :)

Path to set in .profile so that flex gets picked up: /c/MinGW/msys/1.0/bin:/c/MinGW/bin:<....>

This allowed the integer-gmp ./configure to succeed.

Attachments (1)

iconv.patch (1.3 KB) - added by btutt 6 years ago.
Skip iconv/libcharset detection on Windows

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by btutt

Attachment: iconv.patch added

Skip iconv/libcharset detection on Windows

comment:1 Changed 6 years ago by igloo

Milestone: 7.4.1
Status: newpatch

Thanks for the patch. We'll take a look.

comment:2 Changed 6 years ago by igloo


comment:3 Changed 5 years ago by simonpj

difficulty: Unknown
Owner: set to igloo

comment:4 Changed 5 years ago by igloo


comment:5 Changed 5 years ago by igloo

Resolution: fixed
Status: patchclosed

Fixed, thanks:

commit b52d6856a99dd98a8b5428c6d4327107d140d107
Author: Ian Lynagh <>
Date:   Sun Sep 25 16:20:35 2011 +0100

    Don't try to detect iconv or libcharset if we are on Windows
    We don't use iconv or libcharset on Windows, but if configure finds
    them then it can cause problems. So we don't even try looking if
    we are on Windows.
    Patch from Bill Tutt.
Note: See TracTickets for help on using tickets.