Changes between Version 5 and Version 6 of Building/Preparation/Windows/MSYS2


Ignore:
Timestamp:
Dec 9, 2013 5:43:13 AM (15 months ago)
Author:
thoughtpolice
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Preparation/Windows/MSYS2

    v5 v6  
    2525Launch the shell with **C:\msys64\mingw64_shell.bat** 
    2626 
     27== Download python 
     28 
     29Go to https://python.org/download and download ''Python 2.6'' for your system and install it. Due to a bug in the python2 shipped with msys, we can't use with ctypes correctly. 
     30 
    2731== Setting up your PATH == 
    2832 
     
    4145}}} 
    4246 
     47And make sure `python` is on your `$PATH`: 
     48 
     49{{{ 
     50$ echo 'export PATH=/c/Python27:$PATH' >> ~/.bashrc 
     51}}} 
     52 
    4353Make sure you restart your shell. 
    4454 
     
    4959{{{ 
    5060$ pacman -Syu 
    51 $ pacman -S python2 git wget tar gzip binutils gcc autoconf make libtool automake xz 
     61$ pacman -S git wget tar gzip binutils gcc autoconf make libtool automake xz 
    5262}}} 
     63 
     64**Do not install python! 
    5365 
    5466Now install a `cabal.exe` prebuilt binary, and install `alex` and `happy`: 
     
    7587}}} 
    7688 
    77 **Yes! Parallel make works! 
     89''Yes! Parallel make works!'' 
    7890 
    79 But be sure to read on for more! 
     91== Running the testsuite == 
     92 
     93To run the testsuite, a gross hack is currently needed in order to set the proper `gcc` for building an executable. 
     94 
     95First, with a built tree, go to the root of the tree. Then say: 
     96 
     97``` 
     98$ export PATH=/path/to/ghc/source/inplace/mingw/bin:$PATH 
     99``` 
     100 
     101This puts the inplace-mingw in your `$PATH` ahead of the mingw tools. Now you can just say: 
     102 
     103{{{ 
     104$ cd testsuite 
     105$ make 
     106}}} 
     107 
     108to run the tests.