
Follow the instructions on the wiki that Kyra linked *exactly*. You
need to properly set your $PATH to contain:
/c/Users/$USER/AppData/Roaming/cabal/bin
If you delete all that stuff and follow those instructions, you should
be able to get running in about 5 minutes. You can copy and paste
every command without problem:
https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2
On Thu, Mar 13, 2014 at 6:48 AM, Jan Stolarek
Thanks. I installed msys but again I faced the same problem. I solved it by copying mingw directory from ghc-7.6.3 distribution to inplace/mingw subdirectory in the source tree. That's silly but it works.
Now I have problems with installing alex and happy. I followed steps on wiki page, ie. downloaded cabal.exe and added it to path. I can run 'cabal update' and 'cabal install alex happy' but it looks like packages are not installed in my home directory (home under msys shell that is). Any idea where are they installed so that I can add them to path?
Janek
Dnia czwartek, 13 marca 2014, kyra napisaĆ:
On 3/13/2014 13:18, Jan Stolarek wrote:
I'm trying to build GHC on 64-bit Windows 7. I installed Cygwin, GHC and cloned the main repo but when I run configure I get this error:
configure: Building in-tree ghc-pwd checking for path to top of build tree... cygwin warning: MS-DOS style path detected: C:/cygwin64/home/tewi/head Preferred POSIX equivalent is: /home/tewi/head CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames C:/cygwin64/home/tewi/head checking for gcc... C:/cygwin64/home/tewi/head/inplace/mingw/bin/gcc.exe checking whether the C compiler works... no configure: error: in `/home/tewi/head': configure: error: C compiler cannot create executables See `config.log' for more details
I have gcc installed under Cygwin, but for some reason ./configure is looking for an in-tree compiler. I tried passing --with-gcc=/usr/bin/gcc to configure but with no result. Help?
Janek
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
Windows GHC *shall* use in-tree compiler. Windows GHC does *not* use cygwin runtime at all!
Now the best way to build GHC on Windows is to use MSYS2: https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2.
I'd also add that most recent versions are
http://sourceforge.net/projects/msys2/files/Base/i686/msys2-base-i686-20140 216.tar.xz/download for 32-bit windows,
and
http://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-base-x86_64-2 0140216.tar.xz/download for 64-bit windows.
Please, take into account this is *build environment* and in no way is related to gcc compiler and runtime used by GHC on Windows.
Cheers, Kyra
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
-- Regards, Austin Seipp, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/