[m-rev.] diff: improvements on windows

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Oct 1 00:54:33 AEST 2009


On Wed, 30 Sep 2009, Peter Wang wrote:

> diff --git a/README.MinGW b/README.MinGW
> index 23e013a..77fed5c 100644
> --- a/README.MinGW
> +++ b/README.MinGW
> @@ -20,29 +20,18 @@ To build the source distribution under MSYS follow these steps:
>
>     To get MinGW just download the Automated MinGW Installer and run it.
>
> -    To get a version of MSYS which is capable of installing Mercury is more
> -    difficult.  The following process works as of 2009-04-25 and note the
> -    special handling under Vista
> +    To get a version of MSYS which is capable of installing Mercury is
> +    slightly more difficult.  The following process works as of 2009-09-30.
>
> -    - Run MSYS-1.0.10.exe
> -    - If you are running VISTA then press N in the postinstall script,
> -      otherwise press Y.
> +    - Run MSYS-1.0.11.exe
>     - Run msysDTK-1.0.1.exe
> -    - In a cygwin prompt cd /cygdrive/c/msys/1.0
> -      VISTA and later start cygwin using "Run as Administrator"
> -    - tar xzf msysCORE-1.0.11-20080826.tar.gz
> -    - tar xzf MSYS-1.0.11-20090120-dll.tar.gz
> -    - VISTA or later create the file etc/fstab with the line "c:/mingw /mingw"
> -    - Start msys
> +    - Open an MSYS console window
>     - cd /
> -    - tar xjf autoconf-4-1-bin.tar.bz2
> -    - tar xjf autoconf2.5-2.61-1-bin.tar.bz2
> -    - tar xjf bison-2.3-MSYS-1.0.11-1.tar.bz2
> -    - tar xjf flex-2.5.33-MSYS-1.0.11-1.tar.bz2
> -    - tar xjf regex-0.12-MSYS-1.0.11-1.tar.bz2
> -
> -2.  Open an MSYS session and unpack the source distribution with a command
> -    like:
> +    - tar --lzma -xf bison-2.4.1-1-msys-1.0.11-bin.tar.lzma
> +    - tar --lzma -xf flex-2.5.35-1-msys-1.0.11-bin.tar.lzma
> +    - tar --lzma -xf libregex-1.20090805-1-msys-1.0.11-dll-1.tar.lzma
> +
> +2.  Unpack the source distribution with a command like:
>
>         tar -xvzf mercury-compiler-<VERSION>.tar.gz
>
> @@ -55,16 +44,17 @@ To build the source distribution under MSYS follow these steps:
>     Do not use a path like `/mercury', because that
>     will be interpreted differently by the MSYS shell than by the generated
>     executables, resulting in a broken installation.
> -    On Windows 2000 or XP, you may get a dialog from the
> -    "Microsoft Management Console" with the message "The selected file cannot
> -    be found.".  This is because configure looks for a program called "mmc".
> -    Simply dismiss the dialog by clicking OK.
> +
> +    If you get a dialog from the "Microsoft Management Console" with the
> +    message "The selected file cannot be found." simply dismiss it.
> +    This is because configure looks for a program called "mmc".
>
> 4.  run: `make' and then `make install'.
>
> Add /c/mercury/bin (or whatever path you installed Mercury to) to the MSYS
> PATH (you cannot add `c:/mercury/bin' to the MSYS PATH because `:' is used to
> -separate directories in the MSYS PATH).
> +separate directories in the MSYS PATH).  Make sure Mercury's mmc appears in the
> +PATH before the Microsoft Management Console.
>
> NOTE TO DEVELOPERS: the tools/bootcheck script does not work properly
> on MSYS at the moment -- it will build stage 3, but will not run the tests
> @@ -74,6 +64,11 @@ will cause the test scripts to ignore the extra carriage return character that
> gets added to the end of each line under MinGW.  Then run mmake from the tests
> directory.
>
> +NOTE TO DEVELOPERS: there may be problems with configure scripts generated by
> +the MinGW/MSYS versions of autoconf.  The script will appear to run correctly
> +but generates incorrect mercury_conf.h files.  A workaround is to use the
> +Cygwin version of autoconf to generate the configure script.

There are autoconf packages for MinGW that provide an autoconf that does
work - just not the default one :-(

I have version 2.61 installed on the MinGW on my laptop and that does
work.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list