mvoidex / hsdev

Haskell development tool
BSD 3-Clause "New" or "Revised" License
130 stars 23 forks source link

hsdev-0.1.3.0 build fails #9

Closed Dangthrimble closed 10 years ago

Dangthrimble commented 10 years ago

Attempting to configure hsdev and get the following warning:

>cabal configure
Resolving dependencies...
Configuring hsdev-0.1.3.0...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package haddock-api-2.15.0 requires Cabal-1.18.1.3
package ghc-mod-5.1.1.0 requires Cabal-1.18.1.3
package ghc-7.8.3 requires Cabal-1.18.1.3
package bin-package-db-0.0.0.0 requires Cabal-1.18.1.3
package hsdev-0.1.3.0 requires Cabal-1.20.0.2
package HTTP-4000.2.10 requires network-2.4.2.3
package hsdev-0.1.3.0 requires network-2.6.0.2
package hdocs-0.4.1.0 requires network-2.6.0.2
package parsec-3.1.5 requires text-1.1.0.0
package semigroups-0.15.3 requires text-1.2.0.0
package scientific-0.3.3.2 requires text-1.2.0.0
package polyparse-1.10 requires text-1.2.0.0
package hsdev-0.1.3.0 requires text-1.2.0.0
package hdocs-0.4.1.0 requires text-1.2.0.0
package hashable-1.2.2.0 requires text-1.2.0.0
package ghc-mod-5.1.1.0 requires text-1.2.0.0
package attoparsec-0.12.1.2 requires text-1.2.0.0
package aeson-pretty-0.7.1 requires text-1.2.0.0
package aeson-0.8.0.2 requires text-1.2.0.0

cabal build then fails:

>cabal build
Building hsdev-0.1.3.0...
Preprocessing library hsdev-0.1.3.0...
[ 1 of 49] Compiling HsDev.Version    ( src\HsDev\Version.hs, dist\build\HsDev\Version.o )
[ 2 of 49] Compiling HsDev.Tools.Ghc.Prelude ( src\HsDev\Tools\Ghc\Prelude.hs, dist\build\HsDev\Tools\Ghc\Prelude.o )
[ 3 of 49] Compiling HsDev.Tools.ClearImports ( src\HsDev\Tools\ClearImports.hs, dist\build\HsDev\Tools\ClearImports.o )
[ 4 of 49] Compiling System.Win32.FileMapping.Memory ( src\System\Win32\FileMapping\Memory.hs, dist\build\System\Win32\FileMapping\Memory.o )
[ 5 of 49] Compiling System.Win32.FileMapping.NamePool ( src\System\Win32\FileMapping\NamePool.hs, dist\build\System\Win32\FileMapping\NamePool.o )
[ 6 of 49] Compiling Text.Format      ( src\Text\Format.hs, dist\build\Text\Format.o )
[ 7 of 49] Compiling HsDev.Cabal      ( src\HsDev\Cabal.hs, dist\build\HsDev\Cabal.o )
[ 8 of 49] Compiling Data.Lisp        ( src\Data\Lisp.hs, dist\build\Data\Lisp.o )
[ 9 of 49] Compiling Data.Help        ( src\Data\Help.hs, dist\build\Data\Help.o )
[10 of 49] Compiling System.Console.Args ( src\System\Console\Args.hs, dist\build\System\Console\Args.o )
[11 of 49] Compiling System.Console.Cmd ( src\System\Console\Cmd.hs, dist\build\System\Console\Cmd.o )
[12 of 49] Compiling Data.Group       ( src\Data\Group.hs, dist\build\Data\Group.o )
[13 of 49] Compiling Data.Async       ( src\Data\Async.hs, dist\build\Data\Async.o )
[14 of 49] Compiling Control.Concurrent.Util ( src\Control\Concurrent\Util.hs, dist\build\Control\Concurrent\Util.o )
[15 of 49] Compiling Control.Concurrent.Task ( src\Control\Concurrent\Task.hs, dist\build\Control\Concurrent\Task.o )
[16 of 49] Compiling HsDev.Util       ( src\HsDev\Util.hs, dist\build\HsDev\Util.o )
[17 of 49] Compiling HsDev.Project    ( src\HsDev\Project.hs, dist\build\HsDev\Project.o )
[18 of 49] Compiling HsDev.Server.Message ( src\HsDev\Server\Message.hs, dist\build\HsDev\Server\Message.o )
[19 of 49] Compiling HsDev.Symbols.Location ( src\HsDev\Symbols\Location.hs, dist\build\HsDev\Symbols\Location.o )
[20 of 49] Compiling HsDev.Display    ( src\HsDev\Display.hs, dist\build\HsDev\Display.o )
[21 of 49] Compiling HsDev.Symbols.Class ( src\HsDev\Symbols\Class.hs, dist\build\HsDev\Symbols\Class.o )
[22 of 49] Compiling HsDev.Symbols.Documented ( src\HsDev\Symbols\Documented.hs, dist\build\HsDev\Symbols\Documented.o )
[23 of 49] Compiling HsDev.Symbols    ( src\HsDev\Symbols.hs, dist\build\HsDev\Symbols.o )
[24 of 49] Compiling HsDev.Symbols.Util ( src\HsDev\Symbols\Util.hs, dist\build\HsDev\Symbols\Util.o )
[25 of 49] Compiling HsDev.Database   ( src\HsDev\Database.hs, dist\build\HsDev\Database.o )
[26 of 49] Compiling HsDev.Cache      ( src\HsDev\Cache.hs, dist\build\HsDev\Cache.o )
[27 of 49] Compiling HsDev.Cache.Structured ( src\HsDev\Cache\Structured.hs, dist\build\HsDev\Cache\Structured.o )
[28 of 49] Compiling HsDev.Database.Async ( src\HsDev\Database\Async.hs, dist\build\HsDev\Database\Async.o )
[29 of 49] Compiling HsDev.Commands   ( src\HsDev\Commands.hs, dist\build\HsDev\Commands.o )
[30 of 49] Compiling HsDev.Tools.HDocs ( src\HsDev\Tools\HDocs.hs, dist\build\HsDev\Tools\HDocs.o )
[31 of 49] Compiling HsDev.Symbols.Resolve ( src\HsDev\Symbols\Resolve.hs, dist\build\HsDev\Symbols\Resolve.o )
[32 of 49] Compiling HsDev.Tools.Hayoo ( src\HsDev\Tools\Hayoo.hs, dist\build\HsDev\Tools\Hayoo.o )
[33 of 49] Compiling HsDev.Tools.Base ( src\HsDev\Tools\Base.hs, dist\build\HsDev\Tools\Base.o )
[34 of 49] Compiling HsDev.Tools.Cabal ( src\HsDev\Tools\Cabal.hs, dist\build\HsDev\Tools\Cabal.o )
[35 of 49] Compiling HsDev.Scan.Browse ( src\HsDev\Scan\Browse.hs, dist\build\HsDev\Scan\Browse.o )
[36 of 49] Compiling HsDev.Inspect    ( src\HsDev\Inspect.hs, dist\build\HsDev\Inspect.o )
[37 of 49] Compiling System.Win32.PowerShell ( src\System\Win32\PowerShell.hs, dist\build\System\Win32\PowerShell.o )
[38 of 49] Compiling Control.Concurrent.FiniteChan ( src\Control\Concurrent\FiniteChan.hs, dist\build\Control\Concurrent\FiniteChan.o )
[39 of 49] Compiling Control.Concurrent.Worker ( src\Control\Concurrent\Worker.hs, dist\build\Control\Concurrent\Worker.o )
[40 of 49] Compiling HsDev.Tools.GhcMod ( src\HsDev\Tools\GhcMod.hs, dist\build\HsDev\Tools\GhcMod.o )
[41 of 49] Compiling HsDev.Tools.GhcMod.InferType ( src\HsDev\Tools\GhcMod\InferType.hs, dist\build\HsDev\Tools\GhcMod\InferType.o )
[42 of 49] Compiling HsDev.Scan       ( src\HsDev\Scan.hs, dist\build\HsDev\Scan.o )
[43 of 49] Compiling HsDev            ( src\HsDev.hs, dist\build\HsDev.o )
[44 of 49] Compiling HsDev.Database.Update ( src\HsDev\Database\Update.hs, dist\build\HsDev\Database\Update.o )
[45 of 49] Compiling HsDev.Tools.Ghc.Worker ( src\HsDev\Tools\Ghc\Worker.hs, dist\build\HsDev\Tools\Ghc\Worker.o )
[46 of 49] Compiling HsDev.Server.Types ( src\HsDev\Server\Types.hs, dist\build\HsDev\Server\Types.o )
[47 of 49] Compiling HsDev.Client.Commands ( src\HsDev\Client\Commands.hs, dist\build\HsDev\Client\Commands.o )
[48 of 49] Compiling Control.Apply.Util ( src\Control\Apply\Util.hs, dist\build\Control\Apply\Util.o )
[49 of 49] Compiling HsDev.Server.Commands ( src\HsDev\Server\Commands.hs, dist\build\HsDev\Server\Commands.o )
In-place registering hsdev-0.1.3.0...
Preprocessing executable 'hsdev' for hsdev-0.1.3.0...
[1 of 1] Compiling Main             ( tools\hsdev.hs, dist\build\hsdev\hsdev-tmp\Main.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package containers-0.5.5.1 ... linking ... done.
Loading package Win32-2.3.0.2 ... linking ... done.
Loading package filepath-1.3.0.2 ... linking ... done.
Loading package old-locale-1.0.0.6 ... linking ... done.
Loading package time-1.4.2 ... linking ... done.
Loading package directory-1.2.1.0 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package process-1.2.0.0 ... linking ... done.
Loading package Cabal-1.20.0.2 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.3.1 ... linking ... done.
Loading package text-1.1.0.0 ... linking ... done.
Loading package parsec-3.1.5 ... linking ... done.
Loading package network-2.4.2.3 ... ghc.exe: warning: inet_ntoa from linking ... ws2_32 is linked instead of __imp_inet_ntoa
ghc.exe: warning: getnameinfo from ws2_32 is linked instead of __imp_getnameinfo

ghc.exe: warning: getaddrinfo from ws2_32 is linked instead of __imp_getaddrinfo

ghc.exe: warning: freeaddrinfo from ws2_32 is linked instead of __imp_freeaddrinfo
ghc.exe: warning: accept from ws2_32 is linked instead of __imp_accept
ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
ghc.exe: warning: WSAStartup from ws2_32 is linked instead of __imp_WSAStartup
ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
done.
Loading package old-time-1.1.0.2 ... linking ... done.
Loading package HTTP-4000.2.10 ... linking ... done.
Loading package text-1.2.0.0 ...

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   _hs_text_memcpy
whilst processing object file
   C:\Program Files\Haskell\x86_64-windows-ghc-7.8.3\text-1.2.0.0\HStext-1.2.0.0.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.
Dangthrimble commented 10 years ago

A little more detail. I have successfully performed:

>cabal install network --configure-option --build=i386-unknown-mingw32 --user
>cabal install aeson aeson-pretty attoparsec exceptions ghc-mod ghc-paths haddock-api haskell-src-exts hdocs monad-loops regexpr scientific uniplate --force-reinstalls

However, I then get:

>cabal configure
Resolving dependencies...
Configuring hsdev-0.1.3.0...
cabal: At least the following dependencies are missing:
ghc-mod >=5.1.0.0 && <5.2.0.0

Looking at Hackage, I find that ghc-mod-5.1.1.0 is the latest suitable version. After installing that version, I then run cabal configure and get the result above.

This has failed on two machines. The one it worked on was a 32-bit Vista laptop. The two it failed on were a 64-bit Win7 PC and a 64-bit Win8.1 PC.

wonbyte commented 10 years ago

Having the exact same issue on Windows 7 x64

cabal configure Resolving dependencies... Configuring hsdev-0.1.3.0... cabal: At least the following dependencies are missing: ghc-mod >=5.1.0.0 && <5.2.0.0

Dangthrimble commented 10 years ago

Network-2.4.2.2 error cabal install on Windows includes the following statements:

Is it correct that cabal commands should be run from a Mingw or Cygwin shell rather than the Windows command prompt? Always? Is that stated anywhere (e.g. on The Haskell Cabal)?

mvoidex commented 10 years ago

I've updated ghc-mod dependency version with https://github.com/mvoidex/hsdev/commit/a2ce5538a97d4a9ca5a77643f74e47181329489c

Last time I've used ghc for win x64, network failed to install properly, but ghc x32 works fine.

Cygwin is used to install network with cabal install network --configure-option --build=i386-unknown-mingw32 --user or (if mingw not in PATH):

WHICHGHC=`which ghc`
PATH=`dirname $WHICHGHC`/../mingw/bin:$PATH
cabal install network --configure-option --build=i386-unknown-mingw32 --user

Other commands can be called from cmd or powershell:

../hsdev> cabal install alex happy
..
../hsdev> cabal install
..

Checked out x64, and it works! Install network with

cabal install network --configure-option --build=x86_64-unknown-mingw32 --user

And then in cmd or ps:

../hsdev> cabal install alex happy
..
../hsdev> cabal install
..

In my case it fails to install regex-posix. I've just installed it with cabal install regex-posix and then restart cabal install for hsdev.

Dangthrimble commented 10 years ago

Three things:

$ WHICHGHC=\`which ghc\`

$ PATH=\`dirname $WHICHGHC\`/../mingw/bin:$PATH

$ cabal install network --configure-option --build=i386-unknown-mingw32 --user
cabal.exe: The program 'ghc' version >=6.4 is required but it could not be found.

However, when I check I get:

$ which ghc
/cygdrive/c/Program Files/Haskell Platform/2014.2.0.0/bin/ghc

$ "/cygdrive/c/Program Files/Haskell Platform/2014.2.0.0/bin/ghc" --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3
mvoidex commented 10 years ago

Do you have ghc in PATH? You can clean all installed packages by cleaning AppData\Roaming\cabal and AppData\Roaming\ghc paths.

Dangthrimble commented 10 years ago

C:\Program Files\Haskell Platform\2014.2.0.0\bin is in Windows' PATH and, when using Cygwin, doesn't

$ WHICHGHC=\`which ghc\`

$ PATH=\`dirname $WHICHGHC\`/../mingw/bin:$PATH

add it in again just to be sure?

mvoidex commented 10 years ago

Yes, try to do it. Or try to cabal install network --configure-option --build=i386-unknown-mingw32 --user from cmd or ps with cygwin bin added to PATH. It works for me too.

Dangthrimble commented 10 years ago

Should all installs use --user? What if I am the only user of the PC?

I am having to do a global cabal-install because otherwise the updated user cabal is overlooked in favour of the Haskell Platform cabal (user PATH variables always come after system PATH variables in Windows).

mvoidex commented 10 years ago

No, I've used it only for network, but I don't think it's necessary

Dangthrimble commented 10 years ago

I've:

> cabal install cabal-install
> cabal update
> cabal install network --configure-option --build=x86_64-unknown-mingw32

When I then run cabal install aeson aeson-pretty attoparsec exceptions ghc-mod ghc-paths haddock-api haskell-src-exts hdocs monad-loops regexpr scientific uniplate I am informed:

cabal: The following packages are likely to be broken by the reinstalls:
unordered-containers-0.2.4.0
case-insensitive-1.1.0.3
Use --force-reinstalls if you want to install anyway.

Do I force reinstalls?

mvoidex commented 10 years ago

Yes, but I prefer installing ghc instead of Haskell Platform.

Dangthrimble commented 10 years ago

Do you install all of the Haskell Platform components separately and, if so, why? Are there any you don't install?

Dangthrimble commented 10 years ago

On cabal build still getting:

Loading package network-2.4.2.3 ... glinking ... hc.exe: warning: inet_ntoa from ws2_32 is linked instead of __imp_inet_ntoa
ghc.exe: warning: getnameinfo from ws2_32 is linked instead of __imp_getnameinfo
ghc.exe: warning: getaddrinfo from ws2_32 is linked instead of __imp_getaddrinfo
ghc.exe: warning: freeaddrinfo from ws2_32 is linked instead of __imp_freeaddrinfo
ghc.exe: warning: accept from ws2_32 is linked instead of __imp_accept
ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
ghc.exe: warning: WSAStartup from ws2_32 is linked instead of __imp_WSAStartup
ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup
done.
Loading package old-time-1.1.0.2 ... linking ... done.
Loading package HTTP-4000.2.10 ... linking ... done.
Loading package text-1.2.0.0 ...

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   _hs_text_memcpy
whilst processing object file
   C:\Program Files\Haskell\x86_64-windows-ghc-7.8.3\text-1.2.0.0\HStext-1.2.0.0.o
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHCi cannot safely continue in this situation.  Exiting now.  Sorry.
mvoidex commented 10 years ago

I install ghc and then install whatever I need with cabal. Usually it's network, alex, happy and my projects. I prefer installing ghc because platform installs some old packages, like text-1.1.0.0 in your case, which causes conflict.

Dangthrimble commented 10 years ago

Do you use the 32-bit version of cabal even on a 64-bit machine? I downloaded the binary to build since no 64-bit version was available but couldn't find any build instructions anywhere!

mvoidex commented 10 years ago

Yes, I'm using 32-bit cabal. You can use it to build your own cabal with cabal install cabal-install.

Dangthrimble commented 10 years ago

They don't make it easy, do they! I am trying to work out how on earth to get ghc and Cabal installed on my PC. The User's Guide is missing from ghc but I'm soldiering on using Cabal's README file and have got as far as:

> cd \Haskell\ghc-7.8.3\lib\Cabal-1.20.0.2
> ghc -threaded --make Setup
> .\Setup configure
> .\Setup build
> .\Setup install
> ghc -i..\filepath-1.3.0.2 -cpp --make Setup.hs -o ..\filepath-1.3.0.2\setup
> cd ..\filepath-1.3.0.2
> .\setup configure

At this point I get the following:

>.\setup configure
setup: No cabal file found.
Please create a package description file <pkgname>.cabal

What have I got wrong now?

mvoidex commented 10 years ago

You can download prebuilt cabal from https://www.haskell.org/cabal/download.html Put in on PATH, and run

cabal update
cabal install cabal-install
Dangthrimble commented 10 years ago

I have got that, but it doesn't include a cabal.exe. Is the setup.exe the same file by another name?

mvoidex commented 10 years ago

What do you mean? There's one file: cabal.exe

Dangthrimble commented 10 years ago

Apologies. I'm getting confused between cabal and cabal-install. I'll get there in a minute!

Dangthrimble commented 10 years ago

Do I still need to manually download and install cabal-1.20.0.3-i386-unknown-mingw32.tar.gz if I use cabal udpate and cabal install cabal-install?

mvoidex commented 10 years ago

No, having cabal.exe is enough

Dangthrimble commented 10 years ago

Try again, starting with nothing installed and %AppData\cabal and %AppData%\ghc deleted:

> cabal install cabal-install
Resolving dependencies...
Downloading random-1.0.1.1...
Downloading stm-2.4.3...
Downloading text-1.2.0.0...
Downloading transformers-0.4.1.0...
Configuring random-1.0.1.1...
Configuring stm-2.4.3...
Downloading zlib-0.5.4.1...
Configuring transformers-0.4.1.0...
Configuring text-1.2.0.0...
Building random-1.0.1.1...
Building stm-2.4.3...
Building transformers-0.4.1.0...
Building text-1.2.0.0...
Configuring zlib-0.5.4.1...
Installed random-1.0.1.1
Building zlib-0.5.4.1...
Installed stm-2.4.3
Installed transformers-0.4.1.0
Downloading mtl-2.2.1...
Configuring mtl-2.2.1...
Building mtl-2.2.1...
Installed zlib-0.5.4.1
Installed mtl-2.2.1
Installed text-1.2.0.0
Downloading parsec-3.1.7...
Configuring parsec-3.1.7...
Building parsec-3.1.7...
Installed parsec-3.1.7
Downloading network-2.5.0.0...
Configuring network-2.5.0.0...
Failed to install network-2.5.0.0
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\network-2.5.0.0.log ):
[1 of 1] Compiling Main             ( C:\Users\Jonathan\AppData\Local\Temp\network-2.5.0.0-6216\network-2.5.0.0\dist\setup\setup.hs, C:\Users\Jonathan\AppData\Local\Temp\network-2.5.0.0-6216\network-2.5.0.0\dist\setup\Main.o )
Linking C:\Users\Jonathan\AppData\Local\Temp\network-2.5.0.0-6216\network-2.5.0.0\dist\setup\setup.exe ...
Configuring network-2.5.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cygwin warning:
  MS-DOS style path detected: C:\Program Files (x86)\Haskell/share/config.site
  Preferred POSIX equivalent is: /cygdrive/c/Program Files (x86)/Haskell/share/config.site
  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
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/cygdrive/c/Users/Jonathan/AppData/Local/Temp/network-2.5.0.0-6216/network-2.5.0.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
cabal: Error: some packages failed to install:
HTTP-4000.2.18 depends on network-2.5.0.0 which failed to install.
cabal-install-1.20.0.3 depends on network-2.5.0.0 which failed to install.
network-2.5.0.0 failed during the configure step. The exception was:
ExitFailure 1

I appear to be missing a C compiler. Added gcc-g++ 4.9.2-1 using Cygwin, then:

>cabal install cabal-install
Resolving dependencies...
Configuring network-2.5.0.0...
Failed to install network-2.5.0.0
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\network-2.5.0.0.log ):
Configuring network-2.5.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cygwin warning:
  MS-DOS style path detected: C:\Program Files (x86)\Haskell/share/config.site
  Preferred POSIX equivalent is: /cygdrive/c/Program Files (x86)/Haskell/share/config.site
  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
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking winsock2.h usability... no
checking winsock2.h presence... yes
configure: WARNING: winsock2.h: present but cannot be compiled
configure: WARNING: winsock2.h:     check for missing prerequisite headers?
configure: WARNING: winsock2.h: see the Autoconf documentation
configure: WARNING: winsock2.h:     section "Present But Cannot Be Compiled"
configure: WARNING: winsock2.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to libraries@haskell.org ##
configure: WARNING:     ## ------------------------------------ ##
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... yes
configure: WARNING: ws2tcpip.h: present but cannot be compiled
configure: WARNING: ws2tcpip.h:     check for missing prerequisite headers?
configure: WARNING: ws2tcpip.h: see the Autoconf documentation
configure: WARNING: ws2tcpip.h:     section "Present But Cannot Be Compiled"
configure: WARNING: ws2tcpip.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to libraries@haskell.org ##
configure: WARNING:     ## ------------------------------------ ##
checking for ws2tcpip.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for readlink... yes
checking for symlink... yes
checking for struct msghdr.msg_control... yes
checking for struct msghdr.msg_accrights... no
checking for struct sockaddr.sa_len... no
checking for in_addr_t in netinet/in.h... yes
checking for SO_PEERCRED and struct ucred in sys/socket.h... yes
checking for getpeereid in unistd.h... checking for getpeereid... yes
checking for _head_libws2_32_a in -lws2_32... no
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking whether AI_ADDRCONFIG is declared... yes
checking whether AI_ALL is declared... yes
checking whether AI_NUMERICSERV is declared... yes
checking whether AI_V4MAPPED is declared... yes
checking whether IPV6_V6ONLY is declared... yes
checking whether IPPROTO_IP is declared... yes
checking whether IPPROTO_TCP is declared... yes
checking whether IPPROTO_IPV6 is declared... yes
checking for sendfile in sys/sendfile.h... no
checking for sendfile in sys/socket.h... no
checking for gethostent... no
checking for accept4... yes
configure: creating ./config.status
config.status: creating network.buildinfo
config.status: creating include/HsNetworkConfig.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
setup-Configure-Cabal-1.20.0.2-x86_64-windows-ghc-7.8.3.exe: Missing
dependency on a foreign library:
* Missing (or bad) header file: HsNet.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
cabal: Error: some packages failed to install:
HTTP-4000.2.18 depends on network-2.5.0.0 which failed to install.
cabal-install-1.20.0.3 depends on network-2.5.0.0 which failed to install.
network-2.5.0.0 failed during the configure step. The exception was:
ExitFailure 1
mvoidex commented 10 years ago

network must be installed with other command with mingw/bin in PATH:

cabal install network --configure-option --build=i386-unknown-mingw32

Or under Cygwin:

WHICHGHC=`which ghc`
PATH=`dirname $WHICHGHC`/../mingw/bin:$PATH
cabal install network --configure-option --build=i386-unknown-mingw32
Dangthrimble commented 10 years ago

Still having problems, though now with cabal install caball-install. I accept this isn't an `mvoidex/hsdev' problem and I should probably report this somewhere else (where?), but at least I get a timely response here. Apologies for loading you with all these issues. Anyway ...

Started again by clearing everything out, installing ghc and cabal, and updating PATH. Decided to run everything from a Cygwin window with admin privileges, starting with cabal update, then changed user-install to False in %AppData%\cabal\config.

Still in Cygwin, I then ran:

$ WHICHGHC=`which ghc`
$ PATH=`dirname $WHICHGHC`/../mingw/bin:$PATH
$ cabal install network --configure-option --build=x86_64-unknown-mingw32
$ cabal install cabal-install
Resolving dependencies...
Downloading Cabal-1.20.0.2...
Downloading random-1.0.1.1...
Downloading stm-2.4.3...
Configuring random-1.0.1.1...
Downloading text-1.2.0.0...
Configuring stm-2.4.3...
Downloading transformers-0.4.1.0...
Downloading zlib-0.5.4.1...
Configuring transformers-0.4.1.0...
Configuring text-1.2.0.0...
Building random-1.0.1.1...
Building stm-2.4.3...
Building transformers-0.4.1.0...
Building text-1.2.0.0...
Installed random-1.0.1.1
Configuring Cabal-1.20.0.2...
Configuring zlib-0.5.4.1...
Installed stm-2.4.3
Installed transformers-0.4.1.0
Downloading mtl-2.2.1...
Configuring mtl-2.2.1...
Building zlib-0.5.4.1...
Building mtl-2.2.1...
Installed text-1.2.0.0
Installed mtl-2.2.1
Downloading parsec-3.1.7...
Configuring parsec-3.1.7...
Installed zlib-0.5.4.1
Building parsec-3.1.7...
Building Cabal-1.20.0.2...
Installed parsec-3.1.7
Downloading network-2.5.0.0...
Configuring network-2.5.0.0...
Installed Cabal-1.20.0.2
Building network-2.5.0.0...
Installed network-2.5.0.0
Downloading HTTP-4000.2.18...
Configuring HTTP-4000.2.18...
Building HTTP-4000.2.18...
Installed HTTP-4000.2.18
Downloading cabal-install-1.20.0.3...
Configuring cabal-install-1.20.0.3...
Building cabal-install-1.20.0.3...
Failed to install cabal-install-1.20.0.3
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\cabal-install-1.20.0.3.log ):
Building cabal-install-1.20.0.3...
Preprocessing executable 'cabal' for cabal-install-1.20.0.3...
[ 1 of 76] Compiling Distribution.Client.Dependency.Modular.Version ( Distribution\Client\Dependency\Modular\Version.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Version.o )
[ 2 of 76] Compiling Distribution.Client.Dependency.Modular.PSQ ( Distribution\Client\Dependency\Modular\PSQ.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\PSQ.o )
[ 3 of 76] Compiling Distribution.Client.Dependency.Modular.Package ( Distribution\Client\Dependency\Modular\Package.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Package.o )
[ 4 of 76] Compiling Distribution.Client.Compat.ExecutablePath ( Distribution\Client\Compat\ExecutablePath.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\ExecutablePath.o )
[ 5 of 76] Compiling Distribution.Client.Haddock ( Distribution\Client\Haddock.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Haddock.o )
[ 6 of 76] Compiling Distribution.Client.Compat.Environment ( Distribution\Client\Compat\Environment.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\Environment.o )

Distribution\Client\Compat\Environment.hs:23:1: Warning:
    The import of `Foreign.Safe' is redundant
      except perhaps to import instances from `Foreign.Safe'
    To import instances alone, use: import Foreign.Safe()
[ 7 of 76] Compiling Distribution.Client.PackageUtils ( Distribution\Client\PackageUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\PackageUtils.o )
[ 8 of 76] Compiling Distribution.Client.World ( Distribution\Client\World.hs, dist\build\cabal\cabal-tmp\Distribution\Client\World.o )
[ 9 of 76] Compiling Distribution.Client.ParseUtils ( Distribution\Client\ParseUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\ParseUtils.o )
[10 of 76] Compiling Distribution.Client.BuildReports.Types ( Distribution\Client\BuildReports\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\BuildReports\Types.o )
[11 of 76] Compiling Distribution.Client.Compat.FilePerms ( Distribution\Client\Compat\FilePerms.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\FilePerms.o )
[12 of 76] Compiling Distribution.Client.GZipUtils ( Distribution\Client\GZipUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\GZipUtils.o )
[13 of 76] Compiling Distribution.Client.Compat.Semaphore ( Distribution\Client\Compat\Semaphore.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\Semaphore.o )
[14 of 76] Compiling Distribution.Client.JobControl ( Distribution\Client\JobControl.hs, dist\build\cabal\cabal-tmp\Distribution\Client\JobControl.o )
[15 of 76] Compiling Distribution.Client.Compat.Process ( Distribution\Client\Compat\Process.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\Process.o )
[16 of 76] Compiling Distribution.Client.PackageIndex ( Distribution\Client\PackageIndex.hs, dist\build\cabal\cabal-tmp\Distribution\Client\PackageIndex.o )
[17 of 76] Compiling Distribution.Client.Types ( Distribution\Client\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Types.o )
[18 of 76] Compiling Distribution.Client.Dependency.Modular.Flag ( Distribution\Client\Dependency\Modular\Flag.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Flag.o )
[19 of 76] Compiling Distribution.Client.Dependency.Modular.Dependency ( Distribution\Client\Dependency\Modular\Dependency.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Dependency.o )
[20 of 76] Compiling Distribution.Client.Dependency.Modular.Tree ( Distribution\Client\Dependency\Modular\Tree.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Tree.o )
[21 of 76] Compiling Distribution.Client.Dependency.Modular.Index ( Distribution\Client\Dependency\Modular\Index.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Index.o )
[22 of 76] Compiling Distribution.Client.Dependency.Modular.Builder ( Distribution\Client\Dependency\Modular\Builder.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Builder.o )
[23 of 76] Compiling Distribution.Client.Dependency.Modular.Message ( Distribution\Client\Dependency\Modular\Message.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Message.o )
[24 of 76] Compiling Distribution.Client.Dependency.Modular.Configured ( Distribution\Client\Dependency\Modular\Configured.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Configured.o )
[25 of 76] Compiling Distribution.Client.Dependency.Modular.Assignment ( Distribution\Client\Dependency\Modular\Assignment.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Assignment.o )
[26 of 76] Compiling Distribution.Client.Dependency.Modular.Validate ( Distribution\Client\Dependency\Modular\Validate.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Validate.o )
[27 of 76] Compiling Distribution.Client.Dependency.TopDown.Types ( Distribution\Client\Dependency\TopDown\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\TopDown\Types.o )
[28 of 76] Compiling Distribution.Client.Dependency.Modular.IndexConversion ( Distribution\Client\Dependency\Modular\IndexConversion.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\IndexConversion.o )
[29 of 76] Compiling Distribution.Client.Init.Licenses ( Distribution\Client\Init\Licenses.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Licenses.o )
[30 of 76] Compiling Distribution.Client.Init.Types ( Distribution\Client\Init\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Types.o )
[31 of 76] Compiling Distribution.Client.Compat.Time ( Distribution\Client\Compat\Time.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Compat\Time.o )

Distribution\Client\Compat\Time.hs:27:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall safe "static windows.h GetFileAttributesExW" c_getFileAttributesEx
        :: LPCTSTR -> Int32 -> LPVOID -> IO BOOL

Distribution\Client\Compat\Time.hs:90:62: Warning:
    In the use of `bitSize' (imported from Data.Bits):
    Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"
[32 of 76] Compiling Distribution.Client.Tar ( Distribution\Client\Tar.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Tar.o )
[33 of 76] Compiling Paths_cabal_install ( dist\build\autogen\Paths_cabal_install.hs, dist\build\cabal\cabal-tmp\Paths_cabal_install.o )
[34 of 76] Compiling Distribution.Client.HttpUtils ( Distribution\Client\HttpUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\HttpUtils.o )
[35 of 76] Compiling Distribution.Client.FetchUtils ( Distribution\Client\FetchUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\FetchUtils.o )
[36 of 76] Compiling Distribution.Client.Utils ( Distribution\Client\Utils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Utils.o )
[37 of 76] Compiling Distribution.Client.Init.Heuristics ( Distribution\Client\Init\Heuristics.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init\Heuristics.o )
[38 of 76] Compiling Distribution.Client.IndexUtils ( Distribution\Client\IndexUtils.hs, dist\build\cabal\cabal-tmp\Distribution\Client\IndexUtils.o )
[39 of 76] Compiling Distribution.Client.Sandbox.Index ( Distribution\Client\Sandbox\Index.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Index.o )
[40 of 76] Compiling Distribution.Client.InstallPlan ( Distribution\Client\InstallPlan.hs, dist\build\cabal\cabal-tmp\Distribution\Client\InstallPlan.o )
[41 of 76] Compiling Distribution.Client.Dependency.Types ( Distribution\Client\Dependency\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Types.o )
[42 of 76] Compiling Distribution.Client.Dependency.Modular.Log ( Distribution\Client\Dependency\Modular\Log.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Log.o )
[43 of 76] Compiling Distribution.Client.Dependency.Modular.Explore ( Distribution\Client\Dependency\Modular\Explore.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Explore.o )
[44 of 76] Compiling Distribution.Client.Dependency.Modular.Preference ( Distribution\Client\Dependency\Modular\Preference.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Preference.o )
[45 of 76] Compiling Distribution.Client.Dependency.Modular.Solver ( Distribution\Client\Dependency\Modular\Solver.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\Solver.o )
[46 of 76] Compiling Distribution.Client.Dependency.Modular.ConfiguredConversion ( Distribution\Client\Dependency\Modular\ConfiguredConversion.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular\ConfiguredConversion.o )
[47 of 76] Compiling Distribution.Client.Dependency.Modular ( Distribution\Client\Dependency\Modular.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\Modular.o )
[48 of 76] Compiling Distribution.Client.BuildReports.Anonymous ( Distribution\Client\BuildReports\Anonymous.hs, dist\build\cabal\cabal-tmp\Distribution\Client\BuildReports\Anonymous.o )
[49 of 76] Compiling Distribution.Client.BuildReports.Storage ( Distribution\Client\BuildReports\Storage.hs, dist\build\cabal\cabal-tmp\Distribution\Client\BuildReports\Storage.o )
[50 of 76] Compiling Distribution.Client.BuildReports.Upload ( Distribution\Client\BuildReports\Upload.hs, dist\build\cabal\cabal-tmp\Distribution\Client\BuildReports\Upload.o )
[51 of 76] Compiling Distribution.Client.Dependency.TopDown.Constraints ( Distribution\Client\Dependency\TopDown\Constraints.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\TopDown\Constraints.o )
[52 of 76] Compiling Distribution.Client.Dependency.TopDown ( Distribution\Client\Dependency\TopDown.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency\TopDown.o )
[53 of 76] Compiling Distribution.Client.Win32SelfUpgrade ( Distribution\Client\Win32SelfUpgrade.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Win32SelfUpgrade.o )

Distribution\Client\Win32SelfUpgrade.hs:48:1: Warning:
    The qualified import of `System.Win32.DLL' is redundant
      except perhaps to import instances from `System.Win32.DLL'
    To import instances alone, use: import System.Win32.DLL()

Distribution\Client\Win32SelfUpgrade.hs:164:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall unsafe "static windows.h GetCurrentProcessId" getCurrentProcessId
        :: IO DWORD

Distribution\Client\Win32SelfUpgrade.hs:167:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall unsafe "static windows.h WaitForSingleObject" waitForSingleObject_
        :: HANDLE -> DWORD -> IO DWORD

Distribution\Client\Win32SelfUpgrade.hs:178:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall unsafe "static windows.h CreateEventW" createEvent_
        :: Ptr () -> BOOL -> BOOL -> LPCTSTR -> IO HANDLE

Distribution\Client\Win32SelfUpgrade.hs:187:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall unsafe "static windows.h OpenEventW" openEvent_
        :: DWORD -> BOOL -> LPCTSTR -> IO HANDLE

Distribution\Client\Win32SelfUpgrade.hs:199:1: Warning:
    the 'stdcall' calling convention is unsupported on this platform,
    treating as ccall
    When checking declaration:
      foreign import stdcall unsafe "static windows.h SetEvent" setEvent_
        :: HANDLE -> IO BOOL
[54 of 76] Compiling Distribution.Client.Init ( Distribution\Client\Init.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Init.o )
[55 of 76] Compiling Distribution.Client.Sandbox.Types ( Distribution\Client\Sandbox\Types.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Types.o )
[56 of 76] Compiling Distribution.Client.Run ( Distribution\Client\Run.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Run.o )
[57 of 76] Compiling Distribution.Client.Check ( Distribution\Client\Check.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Check.o )
[58 of 76] Compiling Distribution.Client.Update ( Distribution\Client\Update.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Update.o )
[59 of 76] Compiling Distribution.Client.Targets ( Distribution\Client\Targets.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Targets.o )
[60 of 76] Compiling Distribution.Client.Dependency ( Distribution\Client\Dependency.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Dependency.o )
[61 of 76] Compiling Distribution.Client.Setup ( Distribution\Client\Setup.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Setup.o )
[62 of 76] Compiling Distribution.Client.Config ( Distribution\Client\Config.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Config.o )
[63 of 76] Compiling Distribution.Client.SetupWrapper ( Distribution\Client\SetupWrapper.hs, dist\build\cabal\cabal-tmp\Distribution\Client\SetupWrapper.o )
[64 of 76] Compiling Distribution.Client.Sandbox.Timestamp ( Distribution\Client\Sandbox\Timestamp.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\Timestamp.o )
[65 of 76] Compiling Distribution.Client.Upload ( Distribution\Client\Upload.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Upload.o )
[66 of 76] Compiling Distribution.Client.List ( Distribution\Client\List.hs, dist\build\cabal\cabal-tmp\Distribution\Client\List.o )
[67 of 76] Compiling Distribution.Client.Configure ( Distribution\Client\Configure.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Configure.o )
[68 of 76] Compiling Distribution.Client.Fetch ( Distribution\Client\Fetch.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Fetch.o )
[69 of 76] Compiling Distribution.Client.SrcDist ( Distribution\Client\SrcDist.hs, dist\build\cabal\cabal-tmp\Distribution\Client\SrcDist.o )
[70 of 76] Compiling Distribution.Client.Get ( Distribution\Client\Get.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Get.o )
[71 of 76] Compiling Distribution.Client.Sandbox.PackageEnvironment ( Distribution\Client\Sandbox\PackageEnvironment.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox\PackageEnvironment.o )
[72 of 76] Compiling Distribution.Client.Freeze ( Distribution\Client\Freeze.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Freeze.o )
[73 of 76] Compiling Distribution.Client.InstallSymlink ( Distribution\Client\InstallSymlink.hs, dist\build\cabal\cabal-tmp\Distribution\Client\InstallSymlink.o )
[74 of 76] Compiling Distribution.Client.Install ( Distribution\Client\Install.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Install.o )
[75 of 76] Compiling Distribution.Client.Sandbox ( Distribution\Client\Sandbox.hs, dist\build\cabal\cabal-tmp\Distribution\Client\Sandbox.o )
[76 of 76] Compiling Main             ( Main.hs, dist\build\cabal\cabal-tmp\Main.o )
Linking dist\build\cabal\cabal.exe ...
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x26a6): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x2fae): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x300b): undefined reference to `initWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x3156): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x393e): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x399b): undefined reference to `initWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x3ade): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x4336): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x4393): undefined reference to `initWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x44d6): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x4c8e): undefined reference to `shutdownWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x4ceb): undefined reference to `initWinSock'
C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o):fake:(.text+0x4e36): undefined reference to `shutdownWinSock'
c:/haskell/ghc-7.8.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18/libHSHTTP-4000.2.18.a(TCP.o): bad reloc address 0x0 in section `.data'
c:/haskell/ghc-7.8.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2: ld returned 1 exit status
cabal.exe: Error: some packages failed to install:
cabal-install-1.20.0.3 failed during the building phase. The exception was:
ExitFailure 1
Dangthrimble commented 10 years ago

Reported the issue as haskell/cabal#2202

mvoidex commented 10 years ago

But if you use downloaded cabal.exe, does this solve issue with building hsdev?

Dangthrimble commented 10 years ago
$ /cygdrive/c/Haskell/cabal/cabal install aeson aeson-pretty attoparsec exceptions ghc-mod ghc-paths
Resolving dependencies...
Downloading cmdargs-0.10.12...
Downloading dlist-0.7.1...
Downloading exceptions-0.6.1...
Configuring dlist-0.7.1...
Downloading ghc-paths-0.1.0.9...
Downloading hashable-1.2.2.0...
Configuring cmdargs-0.10.12...
Configuring exceptions-0.6.1...
Downloading polyparse-1.10...
Configuring ghc-paths-0.1.0.9...
Downloading primitive-0.5.4.0...
Downloading syb-0.4.2...
Building dlist-0.7.1...
Building cmdargs-0.10.12...
Building exceptions-0.6.1...
Installed dlist-0.7.1
Configuring hashable-1.2.2.0...
Building ghc-paths-0.1.0.9...
Configuring polyparse-1.10...
Installed exceptions-0.6.1
Configuring primitive-0.5.4.0...
Installed ghc-paths-0.1.0.9
Building hashable-1.2.2.0...
Building polyparse-1.10...
Building primitive-0.5.4.0...
Configuring syb-0.4.2...
Installed hashable-1.2.2.0
Downloading scientific-0.3.3.2...
Downloading unordered-containers-0.2.5.1...
Installed cmdargs-0.10.12
Configuring scientific-0.3.3.2...
Building syb-0.4.2...
Building scientific-0.3.3.2...
Configuring unordered-containers-0.2.5.1...
Installed primitive-0.5.4.0
Downloading vector-0.10.12.1...
Installed scientific-0.3.3.2
Downloading attoparsec-0.12.1.2...
Configuring vector-0.10.12.1...
Building unordered-containers-0.2.5.1...
Installed polyparse-1.10
Downloading cpphs-1.18.6...
Configuring attoparsec-0.12.1.2...
Installed syb-0.4.2
Configuring cpphs-1.18.6...
Building vector-0.10.12.1...
Building attoparsec-0.12.1.2...
Building cpphs-1.18.6...
Installed unordered-containers-0.2.5.1
Installed attoparsec-0.12.1.2
Installed cpphs-1.18.6
Downloading haskell-src-exts-1.16.0.1...
Configuring haskell-src-exts-1.16.0.1...
Installed vector-0.10.12.1
Downloading aeson-0.8.0.2...
Configuring aeson-0.8.0.2...
Failed to install haskell-src-exts-1.16.0.1
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\haskell-src-exts-1.16.0.1.log ):
Configuring haskell-src-exts-1.16.0.1...
setup-Simple-Cabal-1.20.0.2-x86_64-windows-ghc-7.8.3.exe: The program 'happy'
version >=1.17 is required but it could not be found.
Building aeson-0.8.0.2...
Installed aeson-0.8.0.2
Downloading aeson-pretty-0.7.1...
Configuring aeson-pretty-0.7.1...
Building aeson-pretty-0.7.1...
Installed aeson-pretty-0.7.1
cabal.exe: Error: some packages failed to install:
ghc-mod-0.3.0 depends on haskell-src-exts-1.16.0.1 which failed to install.
haskell-src-exts-1.16.0.1 failed during the configure step. The exception was:
ExitFailure 1

For the earlier cabal-install problem @23Skidoo has suggested moving off Cygwin onto MSYS2 so I will do that, start again (again) and take things even slower!

mvoidex commented 10 years ago

As I can see, haskell-src-exts failed to install. You have to install happy tool:

cabal install happy
Dangthrimble commented 10 years ago

Many of the build problems seem to be to do with my PC at home. Not sure what is wrong with that environment yet!

In the meantime I have managed to successfully build alex, happy and cabal-install on my work PC using MSYS2. However, when trying to build hsdev in C:\GitHub\hsdev I get:

$ cd /c/GitHub/hsdev

$ cabal configure
Resolving dependencies...
Configuring hsdev-0.1.3.0...
cabal.exe: At least the following dependencies are missing:
aeson >=0.7.0,
aeson-pretty >=0.7.0,
attoparsec >=0.11.0,
exceptions >=0.6.0,
ghc-mod >=5.2.0.0,
ghc-paths >=0.1.0,
haddock-api >=2.15.0,
haskell-src-exts >=1.16.0,
hdocs >=0.4.0,
monad-loops >=0.4.0,
regex-posix >=0.95,
regexpr >=0.5.0,
scientific >=0.3,
uniplate >=1.6.0,
unordered-containers >=0.2.0,
vector >=0.10.0

$ cabal build
Building hsdev-0.1.3.0...
Preprocessing library hsdev-0.1.3.0...
cabal.exe: C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc.exe: does not exist

I don't know where the reference to Haskell Platform is coming from. Further investigations provided:

$ which ghc
/c/Program Files/Haskell/ghc-7.8.3/bin/ghc

$ which cabal
/c/Program Files/Haskell/bin/cabal

These are both the programs I would expect the build to be using.

Dangthrimble commented 10 years ago

Discovered a reference to Haskell Platform in /c/GitHub/hsdev/dist/setup-config so binned hsdevand cloned it afresh. Now get:

$ cabal configure
Resolving dependencies...
Configuring hsdev-0.1.3.0...
cabal.exe: At least the following dependencies are missing:
aeson >=0.7.0,
aeson-pretty >=0.7.0,
attoparsec >=0.11.0,
exceptions >=0.6.0,
ghc-mod >=5.2.0.0,
ghc-paths >=0.1.0,
haddock-api >=2.15.0,
haskell-src-exts >=1.16.0,
hdocs >=0.4.0,
monad-loops >=0.4.0,
regex-posix >=0.95,
regexpr >=0.5.0,
scientific >=0.3,
uniplate >=1.6.0,
unordered-containers >=0.2.0,
vector >=0.10.0

$ cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring hsdev-0.1.3.0...
cabal.exe: At least the following dependencies are missing:
aeson >=0.7.0,
aeson-pretty >=0.7.0,
attoparsec >=0.11.0,
exceptions >=0.6.0,
ghc-mod >=5.2.0.0,
ghc-paths >=0.1.0,
haddock-api >=2.15.0,
haskell-src-exts >=1.16.0,
hdocs >=0.4.0,
monad-loops >=0.4.0,
regex-posix >=0.95,
regexpr >=0.5.0,
scientific >=0.3,
uniplate >=1.6.0,
unordered-containers >=0.2.0,
vector >=0.10.0

Why does cabal build say the package has never been configured if I have already run cabal configure?

mvoidex commented 10 years ago

Maybe because there are missing dependencies? Use cabal install --dependencies-only to install them or just cabal install to install hsdev with all deps.

Dangthrimble commented 10 years ago

Moving on, I now get:

$ cabal install aeson aeson-pretty attoparsec exceptions ghc-mod ghc-paths haddock-api haskell-src-exts hdocs monad-loops regex-posix regexpr scientific uniplate unordered-containers vector
Resolving dependencies...
Downloading HUnit-1.2.5.2...
Downloading MonadRandom-0.3...
:
Installed monad-journal-0.5.0.1
Installed hlint-1.9.10
cabal.exe: Error: some packages failed to install:
aeson-0.8.0.2 depends on dlist-0.7.1 which failed to install.
aeson-pretty-0.7.1 depends on dlist-0.7.1 which failed to install.
data-default-0.5.3 depends on dlist-0.7.1 which failed to install.
data-default-instances-dlist-0.0.1 depends on dlist-0.7.1 which failed to
install.
dlist-0.7.1 failed while unpacking the package. The exception was:
DeleteFile
"C:\\Users\\Vertex\\AppData\\Roaming\\cabal\\logs\\dlist-0.7.1.log":
permission denied (The process cannot access the file because it is being used
by another process.)
ghc-mod-5.2.1.1 depends on dlist-0.7.1 which failed to install.
hdocs-0.4.1.0 depends on dlist-0.7.1 which failed to install.

$ cabal install dlist-0.7.1
Resolving dependencies...
Failed to install dlist-0.7.1
Build log ( C:\Users\Vertex\AppData\Roaming\cabal\logs\dlist-0.7.1.log ):
Configuring dlist-0.7.1...
cabal.exe: Error: some packages failed to install:
dlist-0.7.1 failed while unpacking the package. The exception was:
DeleteFile
"C:\\Users\\Vertex\\AppData\\Roaming\\cabal\\logs\\dlist-0.7.1.log":
permission denied (The process cannot access the file because it is being used
by another process.)
Dangthrimble commented 10 years ago

Resolved the dlist problem by rebooting!

mvoidex commented 10 years ago

You don't have to cabal install every dependency. Just run cabal install in hsdev path, it will install all deps.

Dangthrimble commented 10 years ago

Do you need to run cabal configure and cabal build the first time or will cabal install do it all?

mvoidex commented 10 years ago

cabal install will do it and more: it will install binaries to AppData\Roaming\cabal\bin like cabal install <package> does. cabal install does the same as cabal install <package>, but for current project (in current path)

Dangthrimble commented 10 years ago

hsdev has built on my work PC (64-bit Win7)! I can only assume the problems I am having at home (64-bit Win8.1) are more fundamental. Just wish I knew how to fix them.

I'll close this issue. Thanks for all your help.

mvoidex commented 10 years ago

I'm using win8.1 x64 too, feel free to ask!

Dangthrimble commented 10 years ago

Thanks, I will when I get time to have another go!

Dangthrimble commented 10 years ago

Where's the best place for me to post questions and problems?

mvoidex commented 10 years ago

Here is ok. It's not necessary to reopen this issue, I'll see comments in my mail anyway, but you may reopen it, if you want

Dangthrimble commented 10 years ago

OK, so this is what I am seeing at home (I update %AppData%\cabal\config after running cabal update below to ensure I get a system install, which seemed to work fine on my work PC):

$ which ghc
/c/Program Files/Haskell/ghc-7.8.3/bin/ghc

$ which gcc
/c/Program Files/Haskell/ghc-7.8.3/mingw/bin/gcc

$ cabal update
Config file path source is default config file.
Config file C:\Users\Jonathan\AppData\Roaming\cabal\config not found.
Writing default configuration to
C:\Users\Jonathan\AppData\Roaming\cabal\config
Downloading the latest package list from hackage.haskell.org

$ cabal install alex happy
Resolving dependencies...
Downloading alex-3.1.3...
Downloading happy-1.19.4...
Configuring alex-3.1.3...
Configuring happy-1.19.4...
Failed to install alex-3.1.3
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\alex-3.1.3.log ):
Failed to install happy-1.19.4
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\happy-1.19.4.log ):
cabal.exe: Error: some packages failed to install:
alex-3.1.3 failed during the configure step. The exception was:
user error (
C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:6:8:
Could not find module `Distribution.Verbosity'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:7:8:
Could not find module `Distribution.PackageDescription'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:8:8:
Could not find module `Distribution.Simple.Setup'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:9:8:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:10:8:
Could not find module `Distribution.Simple.LocalBuildInfo'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\alex-3.1.3-4192\alex-3.1.3\dist\setup\setup.hs:11:8:
Could not find module `Distribution.Simple.Program'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
)
happy-1.19.4 failed during the configure step. The exception was:
user error (
C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:7:8:
Could not find module `Distribution.PackageDescription'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:8:8:
Could not find module `Distribution.Simple.Setup'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:9:8:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:10:8:
Could not find module `Distribution.Simple.LocalBuildInfo'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:11:8:
Could not find module `Distribution.Simple.Program'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

C:\msys64\tmp\happy-1.19.4-4192\happy-1.19.4\dist\setup\setup.hs:12:8:
Could not find module `Distribution.Verbosity'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
)

$ ghc-pkg check
There are problems in package HTTP-4000.2.18:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18\html\HTTP.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\HTTP-4000.2.18 doesn't exist or isn't a directory
  cannot find any of ["Network\\BufferType.hi","Network\\BufferType.p_hi","Network\\BufferType.dyn_hi"]
  cannot find any of ["Network\\Stream.hi","Network\\Stream.p_hi","Network\\Stream.dyn_hi"]
  cannot find any of ["Network\\StreamDebugger.hi","Network\\StreamDebugger.p_hi","Network\\StreamDebugger.dyn_hi"]
  cannot find any of ["Network\\StreamSocket.hi","Network\\StreamSocket.p_hi","Network\\StreamSocket.dyn_hi"]
  cannot find any of ["Network\\TCP.hi","Network\\TCP.p_hi","Network\\TCP.dyn_hi"]
  cannot find any of ["Network\\HTTP.hi","Network\\HTTP.p_hi","Network\\HTTP.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Headers.hi","Network\\HTTP\\Headers.p_hi","Network\\HTTP\\Headers.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Base.hi","Network\\HTTP\\Base.p_hi","Network\\HTTP\\Base.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Stream.hi","Network\\HTTP\\Stream.p_hi","Network\\HTTP\\Stream.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Auth.hi","Network\\HTTP\\Auth.p_hi","Network\\HTTP\\Auth.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Cookie.hi","Network\\HTTP\\Cookie.p_hi","Network\\HTTP\\Cookie.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Proxy.hi","Network\\HTTP\\Proxy.p_hi","Network\\HTTP\\Proxy.dyn_hi"]
  cannot find any of ["Network\\HTTP\\HandleStream.hi","Network\\HTTP\\HandleStream.p_hi","Network\\HTTP\\HandleStream.dyn_hi"]
  cannot find any of ["Network\\Browser.hi","Network\\Browser.p_hi","Network\\Browser.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Base64.hi","Network\\HTTP\\Base64.p_hi","Network\\HTTP\\Base64.dyn_hi"]
  cannot find any of ["Network\\HTTP\\MD5Aux.hi","Network\\HTTP\\MD5Aux.p_hi","Network\\HTTP\\MD5Aux.dyn_hi"]
  cannot find any of ["Network\\HTTP\\Utils.hi","Network\\HTTP\\Utils.p_hi","Network\\HTTP\\Utils.dyn_hi"]
  cannot find any of ["Paths_HTTP.hi","Paths_HTTP.p_hi","Paths_HTTP.dyn_hi"]
  cannot find any of ["libHSHTTP-4000.2.18.a","libHSHTTP-4000.2.18.p_a","libHSHTTP-4000.2.18-ghc7.8.3.so","libHSHTTP-4000.2.18-ghc7.8.3.dylib","HSHTTP-4000.2.18-ghc7.8.3.dll"] on library path
There are problems in package network-2.5.0.0:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.5.0.0 doesn't exist or isn't a directory
  Warning: include-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.5.0.0\include doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\network-2.5.0.0\html\network.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\network-2.5.0.0\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.5.0.0 doesn't exist or isn't a directory
  cannot find any of ["Network.hi","Network.p_hi","Network.dyn_hi"]
  cannot find any of ["Network\\BSD.hi","Network\\BSD.p_hi","Network\\BSD.dyn_hi"]
  cannot find any of ["Network\\Socket.hi","Network\\Socket.p_hi","Network\\Socket.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString.hi","Network\\Socket\\ByteString.p_hi","Network\\Socket\\ByteString.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString\\Lazy.hi","Network\\Socket\\ByteString\\Lazy.p_hi","Network\\Socket\\ByteString\\Lazy.dyn_hi"]
  cannot find any of ["Network\\Socket\\Internal.hi","Network\\Socket\\Internal.p_hi","Network\\Socket\\Internal.dyn_hi"]
  cannot find any of ["Network\\URI.hi","Network\\URI.p_hi","Network\\URI.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString\\Internal.hi","Network\\Socket\\ByteString\\Internal.p_hi","Network\\Socket\\ByteString\\Internal.dyn_hi"]
  cannot find any of ["Network\\Socket\\Types.hi","Network\\Socket\\Types.p_hi","Network\\Socket\\Types.dyn_hi"]
  cannot find any of ["libHSnetwork-2.5.0.0.a","libHSnetwork-2.5.0.0.p_a","libHSnetwork-2.5.0.0-ghc7.8.3.so","libHSnetwork-2.5.0.0-ghc7.8.3.dylib","HSnetwork-2.5.0.0-ghc7.8.3.dll"] on library path
There are problems in package Cabal-1.20.0.2:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\Cabal-1.20.0.2 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\Cabal-1.20.0.2\html\Cabal.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\Cabal-1.20.0.2\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\Cabal-1.20.0.2 doesn't exist or isn't a directory
  cannot find any of ["Distribution\\Compat\\CreatePipe.hi","Distribution\\Compat\\CreatePipe.p_hi","Distribution\\Compat\\CreatePipe.dyn_hi"]
  cannot find any of ["Distribution\\Compat\\Environment.hi","Distribution\\Compat\\Environment.p_hi","Distribution\\Compat\\Environment.dyn_hi"]
  cannot find any of ["Distribution\\Compat\\Exception.hi","Distribution\\Compat\\Exception.p_hi","Distribution\\Compat\\Exception.dyn_hi"]
  cannot find any of ["Distribution\\Compat\\ReadP.hi","Distribution\\Compat\\ReadP.p_hi","Distribution\\Compat\\ReadP.dyn_hi"]
  cannot find any of ["Distribution\\Compiler.hi","Distribution\\Compiler.p_hi","Distribution\\Compiler.dyn_hi"]
  cannot find any of ["Distribution\\InstalledPackageInfo.hi","Distribution\\InstalledPackageInfo.p_hi","Distribution\\InstalledPackageInfo.dyn_hi"]
  cannot find any of ["Distribution\\License.hi","Distribution\\License.p_hi","Distribution\\License.dyn_hi"]
  cannot find any of ["Distribution\\Make.hi","Distribution\\Make.p_hi","Distribution\\Make.dyn_hi"]
  cannot find any of ["Distribution\\ModuleName.hi","Distribution\\ModuleName.p_hi","Distribution\\ModuleName.dyn_hi"]
  cannot find any of ["Distribution\\Package.hi","Distribution\\Package.p_hi","Distribution\\Package.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription.hi","Distribution\\PackageDescription.p_hi","Distribution\\PackageDescription.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription\\Check.hi","Distribution\\PackageDescription\\Check.p_hi","Distribution\\PackageDescription\\Check.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription\\Configuration.hi","Distribution\\PackageDescription\\Configuration.p_hi","Distribution\\PackageDescription\\Configuration.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription\\Parse.hi","Distribution\\PackageDescription\\Parse.p_hi","Distribution\\PackageDescription\\Parse.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription\\PrettyPrint.hi","Distribution\\PackageDescription\\PrettyPrint.p_hi","Distribution\\PackageDescription\\PrettyPrint.dyn_hi"]
  cannot find any of ["Distribution\\PackageDescription\\Utils.hi","Distribution\\PackageDescription\\Utils.p_hi","Distribution\\PackageDescription\\Utils.dyn_hi"]
  cannot find any of ["Distribution\\ParseUtils.hi","Distribution\\ParseUtils.p_hi","Distribution\\ParseUtils.dyn_hi"]
  cannot find any of ["Distribution\\ReadE.hi","Distribution\\ReadE.p_hi","Distribution\\ReadE.dyn_hi"]
  cannot find any of ["Distribution\\Simple.hi","Distribution\\Simple.p_hi","Distribution\\Simple.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Bench.hi","Distribution\\Simple\\Bench.p_hi","Distribution\\Simple\\Bench.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Build.hi","Distribution\\Simple\\Build.p_hi","Distribution\\Simple\\Build.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Build\\Macros.hi","Distribution\\Simple\\Build\\Macros.p_hi","Distribution\\Simple\\Build\\Macros.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Build\\PathsModule.hi","Distribution\\Simple\\Build\\PathsModule.p_hi","Distribution\\Simple\\Build\\PathsModule.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\BuildPaths.hi","Distribution\\Simple\\BuildPaths.p_hi","Distribution\\Simple\\BuildPaths.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\BuildTarget.hi","Distribution\\Simple\\BuildTarget.p_hi","Distribution\\Simple\\BuildTarget.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\CCompiler.hi","Distribution\\Simple\\CCompiler.p_hi","Distribution\\Simple\\CCompiler.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Command.hi","Distribution\\Simple\\Command.p_hi","Distribution\\Simple\\Command.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Compiler.hi","Distribution\\Simple\\Compiler.p_hi","Distribution\\Simple\\Compiler.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Configure.hi","Distribution\\Simple\\Configure.p_hi","Distribution\\Simple\\Configure.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\GHC.hi","Distribution\\Simple\\GHC.p_hi","Distribution\\Simple\\GHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Haddock.hi","Distribution\\Simple\\Haddock.p_hi","Distribution\\Simple\\Haddock.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\HaskellSuite.hi","Distribution\\Simple\\HaskellSuite.p_hi","Distribution\\Simple\\HaskellSuite.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Hpc.hi","Distribution\\Simple\\Hpc.p_hi","Distribution\\Simple\\Hpc.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Hugs.hi","Distribution\\Simple\\Hugs.p_hi","Distribution\\Simple\\Hugs.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Install.hi","Distribution\\Simple\\Install.p_hi","Distribution\\Simple\\Install.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\InstallDirs.hi","Distribution\\Simple\\InstallDirs.p_hi","Distribution\\Simple\\InstallDirs.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\JHC.hi","Distribution\\Simple\\JHC.p_hi","Distribution\\Simple\\JHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\LHC.hi","Distribution\\Simple\\LHC.p_hi","Distribution\\Simple\\LHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\LocalBuildInfo.hi","Distribution\\Simple\\LocalBuildInfo.p_hi","Distribution\\Simple\\LocalBuildInfo.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\NHC.hi","Distribution\\Simple\\NHC.p_hi","Distribution\\Simple\\NHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\PackageIndex.hi","Distribution\\Simple\\PackageIndex.p_hi","Distribution\\Simple\\PackageIndex.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\PreProcess.hi","Distribution\\Simple\\PreProcess.p_hi","Distribution\\Simple\\PreProcess.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\PreProcess\\Unlit.hi","Distribution\\Simple\\PreProcess\\Unlit.p_hi","Distribution\\Simple\\PreProcess\\Unlit.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program.hi","Distribution\\Simple\\Program.p_hi","Distribution\\Simple\\Program.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Ar.hi","Distribution\\Simple\\Program\\Ar.p_hi","Distribution\\Simple\\Program\\Ar.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Builtin.hi","Distribution\\Simple\\Program\\Builtin.p_hi","Distribution\\Simple\\Program\\Builtin.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Db.hi","Distribution\\Simple\\Program\\Db.p_hi","Distribution\\Simple\\Program\\Db.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Find.hi","Distribution\\Simple\\Program\\Find.p_hi","Distribution\\Simple\\Program\\Find.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\GHC.hi","Distribution\\Simple\\Program\\GHC.p_hi","Distribution\\Simple\\Program\\GHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\HcPkg.hi","Distribution\\Simple\\Program\\HcPkg.p_hi","Distribution\\Simple\\Program\\HcPkg.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Hpc.hi","Distribution\\Simple\\Program\\Hpc.p_hi","Distribution\\Simple\\Program\\Hpc.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Ld.hi","Distribution\\Simple\\Program\\Ld.p_hi","Distribution\\Simple\\Program\\Ld.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Run.hi","Distribution\\Simple\\Program\\Run.p_hi","Distribution\\Simple\\Program\\Run.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Script.hi","Distribution\\Simple\\Program\\Script.p_hi","Distribution\\Simple\\Program\\Script.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Strip.hi","Distribution\\Simple\\Program\\Strip.p_hi","Distribution\\Simple\\Program\\Strip.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Program\\Types.hi","Distribution\\Simple\\Program\\Types.p_hi","Distribution\\Simple\\Program\\Types.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Register.hi","Distribution\\Simple\\Register.p_hi","Distribution\\Simple\\Register.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Setup.hi","Distribution\\Simple\\Setup.p_hi","Distribution\\Simple\\Setup.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\SrcDist.hi","Distribution\\Simple\\SrcDist.p_hi","Distribution\\Simple\\SrcDist.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Test.hi","Distribution\\Simple\\Test.p_hi","Distribution\\Simple\\Test.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Test\\ExeV10.hi","Distribution\\Simple\\Test\\ExeV10.p_hi","Distribution\\Simple\\Test\\ExeV10.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Test\\LibV09.hi","Distribution\\Simple\\Test\\LibV09.p_hi","Distribution\\Simple\\Test\\LibV09.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Test\\Log.hi","Distribution\\Simple\\Test\\Log.p_hi","Distribution\\Simple\\Test\\Log.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\UHC.hi","Distribution\\Simple\\UHC.p_hi","Distribution\\Simple\\UHC.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\UserHooks.hi","Distribution\\Simple\\UserHooks.p_hi","Distribution\\Simple\\UserHooks.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\Utils.hi","Distribution\\Simple\\Utils.p_hi","Distribution\\Simple\\Utils.dyn_hi"]
  cannot find any of ["Distribution\\System.hi","Distribution\\System.p_hi","Distribution\\System.dyn_hi"]
  cannot find any of ["Distribution\\TestSuite.hi","Distribution\\TestSuite.p_hi","Distribution\\TestSuite.dyn_hi"]
  cannot find any of ["Distribution\\Text.hi","Distribution\\Text.p_hi","Distribution\\Text.dyn_hi"]
  cannot find any of ["Distribution\\Verbosity.hi","Distribution\\Verbosity.p_hi","Distribution\\Verbosity.dyn_hi"]
  cannot find any of ["Distribution\\Version.hi","Distribution\\Version.p_hi","Distribution\\Version.dyn_hi"]
  cannot find any of ["Language\\Haskell\\Extension.hi","Language\\Haskell\\Extension.p_hi","Language\\Haskell\\Extension.dyn_hi"]
  cannot find any of ["Distribution\\Compat\\CopyFile.hi","Distribution\\Compat\\CopyFile.p_hi","Distribution\\Compat\\CopyFile.dyn_hi"]
  cannot find any of ["Distribution\\Compat\\TempFile.hi","Distribution\\Compat\\TempFile.p_hi","Distribution\\Compat\\TempFile.dyn_hi"]
  cannot find any of ["Distribution\\GetOpt.hi","Distribution\\GetOpt.p_hi","Distribution\\GetOpt.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\GHC\\IPI641.hi","Distribution\\Simple\\GHC\\IPI641.p_hi","Distribution\\Simple\\GHC\\IPI641.dyn_hi"]
  cannot find any of ["Distribution\\Simple\\GHC\\IPI642.hi","Distribution\\Simple\\GHC\\IPI642.p_hi","Distribution\\Simple\\GHC\\IPI642.dyn_hi"]
  cannot find any of ["Paths_Cabal.hi","Paths_Cabal.p_hi","Paths_Cabal.dyn_hi"]
  cannot find any of ["libHSCabal-1.20.0.2.a","libHSCabal-1.20.0.2.p_a","libHSCabal-1.20.0.2-ghc7.8.3.so","libHSCabal-1.20.0.2-ghc7.8.3.dylib","HSCabal-1.20.0.2-ghc7.8.3.dll"] on library path
There are problems in package parsec-3.1.7:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\parsec-3.1.7 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\parsec-3.1.7\html\parsec.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\parsec-3.1.7\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\parsec-3.1.7 doesn't exist or isn't a directory
  cannot find any of ["Text\\Parsec.hi","Text\\Parsec.p_hi","Text\\Parsec.dyn_hi"]
  cannot find any of ["Text\\Parsec\\String.hi","Text\\Parsec\\String.p_hi","Text\\Parsec\\String.dyn_hi"]
  cannot find any of ["Text\\Parsec\\ByteString.hi","Text\\Parsec\\ByteString.p_hi","Text\\Parsec\\ByteString.dyn_hi"]
  cannot find any of ["Text\\Parsec\\ByteString\\Lazy.hi","Text\\Parsec\\ByteString\\Lazy.p_hi","Text\\Parsec\\ByteString\\Lazy.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Text.hi","Text\\Parsec\\Text.p_hi","Text\\Parsec\\Text.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Text\\Lazy.hi","Text\\Parsec\\Text\\Lazy.p_hi","Text\\Parsec\\Text\\Lazy.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Pos.hi","Text\\Parsec\\Pos.p_hi","Text\\Parsec\\Pos.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Error.hi","Text\\Parsec\\Error.p_hi","Text\\Parsec\\Error.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Prim.hi","Text\\Parsec\\Prim.p_hi","Text\\Parsec\\Prim.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Char.hi","Text\\Parsec\\Char.p_hi","Text\\Parsec\\Char.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Combinator.hi","Text\\Parsec\\Combinator.p_hi","Text\\Parsec\\Combinator.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Token.hi","Text\\Parsec\\Token.p_hi","Text\\Parsec\\Token.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Expr.hi","Text\\Parsec\\Expr.p_hi","Text\\Parsec\\Expr.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Language.hi","Text\\Parsec\\Language.p_hi","Text\\Parsec\\Language.dyn_hi"]
  cannot find any of ["Text\\Parsec\\Perm.hi","Text\\Parsec\\Perm.p_hi","Text\\Parsec\\Perm.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec.hi","Text\\ParserCombinators\\Parsec.p_hi","Text\\ParserCombinators\\Parsec.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Char.hi","Text\\ParserCombinators\\Parsec\\Char.p_hi","Text\\ParserCombinators\\Parsec\\Char.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Combinator.hi","Text\\ParserCombinators\\Parsec\\Combinator.p_hi","Text\\ParserCombinators\\Parsec\\Combinator.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Error.hi","Text\\ParserCombinators\\Parsec\\Error.p_hi","Text\\ParserCombinators\\Parsec\\Error.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Expr.hi","Text\\ParserCombinators\\Parsec\\Expr.p_hi","Text\\ParserCombinators\\Parsec\\Expr.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Language.hi","Text\\ParserCombinators\\Parsec\\Language.p_hi","Text\\ParserCombinators\\Parsec\\Language.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Perm.hi","Text\\ParserCombinators\\Parsec\\Perm.p_hi","Text\\ParserCombinators\\Parsec\\Perm.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Pos.hi","Text\\ParserCombinators\\Parsec\\Pos.p_hi","Text\\ParserCombinators\\Parsec\\Pos.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Prim.hi","Text\\ParserCombinators\\Parsec\\Prim.p_hi","Text\\ParserCombinators\\Parsec\\Prim.dyn_hi"]
  cannot find any of ["Text\\ParserCombinators\\Parsec\\Token.hi","Text\\ParserCombinators\\Parsec\\Token.p_hi","Text\\ParserCombinators\\Parsec\\Token.dyn_hi"]
  cannot find any of ["libHSparsec-3.1.7.a","libHSparsec-3.1.7.p_a","libHSparsec-3.1.7-ghc7.8.3.so","libHSparsec-3.1.7-ghc7.8.3.dylib","HSparsec-3.1.7-ghc7.8.3.dll"] on library path
There are problems in package text-1.2.0.0:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\text-1.2.0.0 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\text-1.2.0.0\html\text.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\text-1.2.0.0\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\text-1.2.0.0 doesn't exist or isn't a directory
  cannot find any of ["Data\\Text.hi","Data\\Text.p_hi","Data\\Text.dyn_hi"]
  cannot find any of ["Data\\Text\\Array.hi","Data\\Text\\Array.p_hi","Data\\Text\\Array.dyn_hi"]
  cannot find any of ["Data\\Text\\Encoding.hi","Data\\Text\\Encoding.p_hi","Data\\Text\\Encoding.dyn_hi"]
  cannot find any of ["Data\\Text\\Encoding\\Error.hi","Data\\Text\\Encoding\\Error.p_hi","Data\\Text\\Encoding\\Error.dyn_hi"]
  cannot find any of ["Data\\Text\\Foreign.hi","Data\\Text\\Foreign.p_hi","Data\\Text\\Foreign.dyn_hi"]
  cannot find any of ["Data\\Text\\IO.hi","Data\\Text\\IO.p_hi","Data\\Text\\IO.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal.hi","Data\\Text\\Internal.p_hi","Data\\Text\\Internal.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Builder.hi","Data\\Text\\Internal\\Builder.p_hi","Data\\Text\\Internal\\Builder.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Builder\\Functions.hi","Data\\Text\\Internal\\Builder\\Functions.p_hi","Data\\Text\\Internal\\Builder\\Functions.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Builder\\Int\\Digits.hi","Data\\Text\\Internal\\Builder\\Int\\Digits.p_hi","Data\\Text\\Internal\\Builder\\Int\\Digits.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Builder\\RealFloat\\Functions.hi","Data\\Text\\Internal\\Builder\\RealFloat\\Functions.p_hi","Data\\Text\\Internal\\Builder\\RealFloat\\Functions.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Encoding\\Fusion.hi","Data\\Text\\Internal\\Encoding\\Fusion.p_hi","Data\\Text\\Internal\\Encoding\\Fusion.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Encoding\\Fusion\\Common.hi","Data\\Text\\Internal\\Encoding\\Fusion\\Common.p_hi","Data\\Text\\Internal\\Encoding\\Fusion\\Common.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Encoding\\Utf16.hi","Data\\Text\\Internal\\Encoding\\Utf16.p_hi","Data\\Text\\Internal\\Encoding\\Utf16.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Encoding\\Utf32.hi","Data\\Text\\Internal\\Encoding\\Utf32.p_hi","Data\\Text\\Internal\\Encoding\\Utf32.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Encoding\\Utf8.hi","Data\\Text\\Internal\\Encoding\\Utf8.p_hi","Data\\Text\\Internal\\Encoding\\Utf8.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Functions.hi","Data\\Text\\Internal\\Functions.p_hi","Data\\Text\\Internal\\Functions.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Fusion.hi","Data\\Text\\Internal\\Fusion.p_hi","Data\\Text\\Internal\\Fusion.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Fusion\\CaseMapping.hi","Data\\Text\\Internal\\Fusion\\CaseMapping.p_hi","Data\\Text\\Internal\\Fusion\\CaseMapping.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Fusion\\Common.hi","Data\\Text\\Internal\\Fusion\\Common.p_hi","Data\\Text\\Internal\\Fusion\\Common.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Fusion\\Size.hi","Data\\Text\\Internal\\Fusion\\Size.p_hi","Data\\Text\\Internal\\Fusion\\Size.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Fusion\\Types.hi","Data\\Text\\Internal\\Fusion\\Types.p_hi","Data\\Text\\Internal\\Fusion\\Types.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\IO.hi","Data\\Text\\Internal\\IO.p_hi","Data\\Text\\Internal\\IO.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Lazy.hi","Data\\Text\\Internal\\Lazy.p_hi","Data\\Text\\Internal\\Lazy.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Lazy\\Encoding\\Fusion.hi","Data\\Text\\Internal\\Lazy\\Encoding\\Fusion.p_hi","Data\\Text\\Internal\\Lazy\\Encoding\\Fusion.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Lazy\\Fusion.hi","Data\\Text\\Internal\\Lazy\\Fusion.p_hi","Data\\Text\\Internal\\Lazy\\Fusion.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Lazy\\Search.hi","Data\\Text\\Internal\\Lazy\\Search.p_hi","Data\\Text\\Internal\\Lazy\\Search.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Private.hi","Data\\Text\\Internal\\Private.p_hi","Data\\Text\\Internal\\Private.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Read.hi","Data\\Text\\Internal\\Read.p_hi","Data\\Text\\Internal\\Read.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Search.hi","Data\\Text\\Internal\\Search.p_hi","Data\\Text\\Internal\\Search.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Unsafe.hi","Data\\Text\\Internal\\Unsafe.p_hi","Data\\Text\\Internal\\Unsafe.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Unsafe\\Char.hi","Data\\Text\\Internal\\Unsafe\\Char.p_hi","Data\\Text\\Internal\\Unsafe\\Char.dyn_hi"]
  cannot find any of ["Data\\Text\\Internal\\Unsafe\\Shift.hi","Data\\Text\\Internal\\Unsafe\\Shift.p_hi","Data\\Text\\Internal\\Unsafe\\Shift.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy.hi","Data\\Text\\Lazy.p_hi","Data\\Text\\Lazy.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Builder.hi","Data\\Text\\Lazy\\Builder.p_hi","Data\\Text\\Lazy\\Builder.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Builder\\Int.hi","Data\\Text\\Lazy\\Builder\\Int.p_hi","Data\\Text\\Lazy\\Builder\\Int.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Builder\\RealFloat.hi","Data\\Text\\Lazy\\Builder\\RealFloat.p_hi","Data\\Text\\Lazy\\Builder\\RealFloat.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Encoding.hi","Data\\Text\\Lazy\\Encoding.p_hi","Data\\Text\\Lazy\\Encoding.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\IO.hi","Data\\Text\\Lazy\\IO.p_hi","Data\\Text\\Lazy\\IO.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Internal.hi","Data\\Text\\Lazy\\Internal.p_hi","Data\\Text\\Lazy\\Internal.dyn_hi"]
  cannot find any of ["Data\\Text\\Lazy\\Read.hi","Data\\Text\\Lazy\\Read.p_hi","Data\\Text\\Lazy\\Read.dyn_hi"]
  cannot find any of ["Data\\Text\\Read.hi","Data\\Text\\Read.p_hi","Data\\Text\\Read.dyn_hi"]
  cannot find any of ["Data\\Text\\Unsafe.hi","Data\\Text\\Unsafe.p_hi","Data\\Text\\Unsafe.dyn_hi"]
  cannot find any of ["libHStext-1.2.0.0.a","libHStext-1.2.0.0.p_a","libHStext-1.2.0.0-ghc7.8.3.so","libHStext-1.2.0.0-ghc7.8.3.dylib","HStext-1.2.0.0-ghc7.8.3.dll"] on library path
There are problems in package zlib-0.5.4.1:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\zlib-0.5.4.1 doesn't exist or isn't a directory
  Warning: include-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\zlib-0.5.4.1\include doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\zlib-0.5.4.1\html\zlib.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\zlib-0.5.4.1\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\zlib-0.5.4.1 doesn't exist or isn't a directory
  cannot find any of ["Codec\\Compression\\GZip.hi","Codec\\Compression\\GZip.p_hi","Codec\\Compression\\GZip.dyn_hi"]
  cannot find any of ["Codec\\Compression\\Zlib.hi","Codec\\Compression\\Zlib.p_hi","Codec\\Compression\\Zlib.dyn_hi"]
  cannot find any of ["Codec\\Compression\\Zlib\\Raw.hi","Codec\\Compression\\Zlib\\Raw.p_hi","Codec\\Compression\\Zlib\\Raw.dyn_hi"]
  cannot find any of ["Codec\\Compression\\Zlib\\Internal.hi","Codec\\Compression\\Zlib\\Internal.p_hi","Codec\\Compression\\Zlib\\Internal.dyn_hi"]
  cannot find any of ["Codec\\Compression\\Zlib\\Stream.hi","Codec\\Compression\\Zlib\\Stream.p_hi","Codec\\Compression\\Zlib\\Stream.dyn_hi"]
  cannot find any of ["libHSzlib-0.5.4.1.a","libHSzlib-0.5.4.1.p_a","libHSzlib-0.5.4.1-ghc7.8.3.so","libHSzlib-0.5.4.1-ghc7.8.3.dylib","HSzlib-0.5.4.1-ghc7.8.3.dll"] on library path
There are problems in package stm-2.4.3:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\stm-2.4.3 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\stm-2.4.3\html\stm.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\stm-2.4.3\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\stm-2.4.3 doesn't exist or isn't a directory
  cannot find any of ["Control\\Concurrent\\STM.hi","Control\\Concurrent\\STM.p_hi","Control\\Concurrent\\STM.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TArray.hi","Control\\Concurrent\\STM\\TArray.p_hi","Control\\Concurrent\\STM\\TArray.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TVar.hi","Control\\Concurrent\\STM\\TVar.p_hi","Control\\Concurrent\\STM\\TVar.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TChan.hi","Control\\Concurrent\\STM\\TChan.p_hi","Control\\Concurrent\\STM\\TChan.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TMVar.hi","Control\\Concurrent\\STM\\TMVar.p_hi","Control\\Concurrent\\STM\\TMVar.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TQueue.hi","Control\\Concurrent\\STM\\TQueue.p_hi","Control\\Concurrent\\STM\\TQueue.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TBQueue.hi","Control\\Concurrent\\STM\\TBQueue.p_hi","Control\\Concurrent\\STM\\TBQueue.dyn_hi"]
  cannot find any of ["Control\\Concurrent\\STM\\TSem.hi","Control\\Concurrent\\STM\\TSem.p_hi","Control\\Concurrent\\STM\\TSem.dyn_hi"]
  cannot find any of ["Control\\Monad\\STM.hi","Control\\Monad\\STM.p_hi","Control\\Monad\\STM.dyn_hi"]
  cannot find any of ["Control\\Sequential\\STM.hi","Control\\Sequential\\STM.p_hi","Control\\Sequential\\STM.dyn_hi"]
  cannot find any of ["libHSstm-2.4.3.a","libHSstm-2.4.3.p_a","libHSstm-2.4.3-ghc7.8.3.so","libHSstm-2.4.3-ghc7.8.3.dylib","HSstm-2.4.3-ghc7.8.3.dll"] on library path
There are problems in package random-1.0.1.1:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\random-1.0.1.1 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\random-1.0.1.1\html\random.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\random-1.0.1.1\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\random-1.0.1.1 doesn't exist or isn't a directory
  cannot find any of ["System\\Random.hi","System\\Random.p_hi","System\\Random.dyn_hi"]
  cannot find any of ["libHSrandom-1.0.1.1.a","libHSrandom-1.0.1.1.p_a","libHSrandom-1.0.1.1-ghc7.8.3.so","libHSrandom-1.0.1.1-ghc7.8.3.dylib","HSrandom-1.0.1.1-ghc7.8.3.dll"] on library path
There are problems in package QuickCheck-2.7.6:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\QuickCheck-2.7.6 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\QuickCheck-2.7.6\html\QuickCheck.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\QuickCheck-2.7.6\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\QuickCheck-2.7.6 doesn't exist or isn't a directory
  cannot find any of ["Test\\QuickCheck.hi","Test\\QuickCheck.p_hi","Test\\QuickCheck.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Arbitrary.hi","Test\\QuickCheck\\Arbitrary.p_hi","Test\\QuickCheck\\Arbitrary.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Gen.hi","Test\\QuickCheck\\Gen.p_hi","Test\\QuickCheck\\Gen.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Gen\\Unsafe.hi","Test\\QuickCheck\\Gen\\Unsafe.p_hi","Test\\QuickCheck\\Gen\\Unsafe.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Monadic.hi","Test\\QuickCheck\\Monadic.p_hi","Test\\QuickCheck\\Monadic.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Modifiers.hi","Test\\QuickCheck\\Modifiers.p_hi","Test\\QuickCheck\\Modifiers.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Property.hi","Test\\QuickCheck\\Property.p_hi","Test\\QuickCheck\\Property.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Test.hi","Test\\QuickCheck\\Test.p_hi","Test\\QuickCheck\\Test.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Text.hi","Test\\QuickCheck\\Text.p_hi","Test\\QuickCheck\\Text.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Poly.hi","Test\\QuickCheck\\Poly.p_hi","Test\\QuickCheck\\Poly.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\State.hi","Test\\QuickCheck\\State.p_hi","Test\\QuickCheck\\State.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Random.hi","Test\\QuickCheck\\Random.p_hi","Test\\QuickCheck\\Random.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Exception.hi","Test\\QuickCheck\\Exception.p_hi","Test\\QuickCheck\\Exception.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\Function.hi","Test\\QuickCheck\\Function.p_hi","Test\\QuickCheck\\Function.dyn_hi"]
  cannot find any of ["Test\\QuickCheck\\All.hi","Test\\QuickCheck\\All.p_hi","Test\\QuickCheck\\All.dyn_hi"]
  cannot find any of ["libHSQuickCheck-2.7.6.a","libHSQuickCheck-2.7.6.p_a","libHSQuickCheck-2.7.6-ghc7.8.3.so","libHSQuickCheck-2.7.6-ghc7.8.3.dylib","HSQuickCheck-2.7.6-ghc7.8.3.dll"] on library path
There are problems in package tf-random-0.5:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\tf-random-0.5 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\tf-random-0.5\html\tf-random.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\tf-random-0.5\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\tf-random-0.5 doesn't exist or isn't a directory
  cannot find any of ["System\\Random\\TF.hi","System\\Random\\TF.p_hi","System\\Random\\TF.dyn_hi"]
  cannot find any of ["System\\Random\\TF\\Gen.hi","System\\Random\\TF\\Gen.p_hi","System\\Random\\TF\\Gen.dyn_hi"]
  cannot find any of ["System\\Random\\TF\\Init.hi","System\\Random\\TF\\Init.p_hi","System\\Random\\TF\\Init.dyn_hi"]
  cannot find any of ["System\\Random\\TF\\Instances.hi","System\\Random\\TF\\Instances.p_hi","System\\Random\\TF\\Instances.dyn_hi"]
  cannot find any of ["libHStf-random-0.5.a","libHStf-random-0.5.p_a","libHStf-random-0.5-ghc7.8.3.so","libHStf-random-0.5-ghc7.8.3.dylib","HStf-random-0.5-ghc7.8.3.dll"] on library path
There are problems in package mtl-2.1.3.1:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\mtl-2.1.3.1 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\mtl-2.1.3.1\html\mtl.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\mtl-2.1.3.1\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\mtl-2.1.3.1 doesn't exist or isn't a directory
  cannot find any of ["Control\\Monad\\Cont.hi","Control\\Monad\\Cont.p_hi","Control\\Monad\\Cont.dyn_hi"]
  cannot find any of ["Control\\Monad\\Cont\\Class.hi","Control\\Monad\\Cont\\Class.p_hi","Control\\Monad\\Cont\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\Error.hi","Control\\Monad\\Error.p_hi","Control\\Monad\\Error.dyn_hi"]
  cannot find any of ["Control\\Monad\\Error\\Class.hi","Control\\Monad\\Error\\Class.p_hi","Control\\Monad\\Error\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\Identity.hi","Control\\Monad\\Identity.p_hi","Control\\Monad\\Identity.dyn_hi"]
  cannot find any of ["Control\\Monad\\List.hi","Control\\Monad\\List.p_hi","Control\\Monad\\List.dyn_hi"]
  cannot find any of ["Control\\Monad\\RWS.hi","Control\\Monad\\RWS.p_hi","Control\\Monad\\RWS.dyn_hi"]
  cannot find any of ["Control\\Monad\\RWS\\Class.hi","Control\\Monad\\RWS\\Class.p_hi","Control\\Monad\\RWS\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\RWS\\Lazy.hi","Control\\Monad\\RWS\\Lazy.p_hi","Control\\Monad\\RWS\\Lazy.dyn_hi"]
  cannot find any of ["Control\\Monad\\RWS\\Strict.hi","Control\\Monad\\RWS\\Strict.p_hi","Control\\Monad\\RWS\\Strict.dyn_hi"]
  cannot find any of ["Control\\Monad\\Reader.hi","Control\\Monad\\Reader.p_hi","Control\\Monad\\Reader.dyn_hi"]
  cannot find any of ["Control\\Monad\\Reader\\Class.hi","Control\\Monad\\Reader\\Class.p_hi","Control\\Monad\\Reader\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\State.hi","Control\\Monad\\State.p_hi","Control\\Monad\\State.dyn_hi"]
  cannot find any of ["Control\\Monad\\State\\Class.hi","Control\\Monad\\State\\Class.p_hi","Control\\Monad\\State\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\State\\Lazy.hi","Control\\Monad\\State\\Lazy.p_hi","Control\\Monad\\State\\Lazy.dyn_hi"]
  cannot find any of ["Control\\Monad\\State\\Strict.hi","Control\\Monad\\State\\Strict.p_hi","Control\\Monad\\State\\Strict.dyn_hi"]
  cannot find any of ["Control\\Monad\\Trans.hi","Control\\Monad\\Trans.p_hi","Control\\Monad\\Trans.dyn_hi"]
  cannot find any of ["Control\\Monad\\Writer.hi","Control\\Monad\\Writer.p_hi","Control\\Monad\\Writer.dyn_hi"]
  cannot find any of ["Control\\Monad\\Writer\\Class.hi","Control\\Monad\\Writer\\Class.p_hi","Control\\Monad\\Writer\\Class.dyn_hi"]
  cannot find any of ["Control\\Monad\\Writer\\Lazy.hi","Control\\Monad\\Writer\\Lazy.p_hi","Control\\Monad\\Writer\\Lazy.dyn_hi"]
  cannot find any of ["Control\\Monad\\Writer\\Strict.hi","Control\\Monad\\Writer\\Strict.p_hi","Control\\Monad\\Writer\\Strict.dyn_hi"]
  cannot find any of ["libHSmtl-2.1.3.1.a","libHSmtl-2.1.3.1.p_a","libHSmtl-2.1.3.1-ghc7.8.3.so","libHSmtl-2.1.3.1-ghc7.8.3.dylib","HSmtl-2.1.3.1-ghc7.8.3.dll"] on library path
There are problems in package primitive-0.5.4.0:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\primitive-0.5.4.0 doesn't exist or isn't a directory
  Warning: include-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\primitive-0.5.4.0\include doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\primitive-0.5.4.0\html\primitive.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\primitive-0.5.4.0\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\primitive-0.5.4.0 doesn't exist or isn't a directory
  cannot find any of ["Control\\Monad\\Primitive.hi","Control\\Monad\\Primitive.p_hi","Control\\Monad\\Primitive.dyn_hi"]
  cannot find any of ["Data\\Primitive.hi","Data\\Primitive.p_hi","Data\\Primitive.dyn_hi"]
  cannot find any of ["Data\\Primitive\\MachDeps.hi","Data\\Primitive\\MachDeps.p_hi","Data\\Primitive\\MachDeps.dyn_hi"]
  cannot find any of ["Data\\Primitive\\Types.hi","Data\\Primitive\\Types.p_hi","Data\\Primitive\\Types.dyn_hi"]
  cannot find any of ["Data\\Primitive\\Array.hi","Data\\Primitive\\Array.p_hi","Data\\Primitive\\Array.dyn_hi"]
  cannot find any of ["Data\\Primitive\\ByteArray.hi","Data\\Primitive\\ByteArray.p_hi","Data\\Primitive\\ByteArray.dyn_hi"]
  cannot find any of ["Data\\Primitive\\Addr.hi","Data\\Primitive\\Addr.p_hi","Data\\Primitive\\Addr.dyn_hi"]
  cannot find any of ["Data\\Primitive\\MutVar.hi","Data\\Primitive\\MutVar.p_hi","Data\\Primitive\\MutVar.dyn_hi"]
  cannot find any of ["Data\\Primitive\\Internal\\Compat.hi","Data\\Primitive\\Internal\\Compat.p_hi","Data\\Primitive\\Internal\\Compat.dyn_hi"]
  cannot find any of ["Data\\Primitive\\Internal\\Operations.hi","Data\\Primitive\\Internal\\Operations.p_hi","Data\\Primitive\\Internal\\Operations.dyn_hi"]
  cannot find any of ["libHSprimitive-0.5.4.0.a","libHSprimitive-0.5.4.0.p_a","libHSprimitive-0.5.4.0-ghc7.8.3.so","libHSprimitive-0.5.4.0-ghc7.8.3.dylib","HSprimitive-0.5.4.0-ghc7.8.3.dll"] on library path
There are problems in package random-1.1:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\random-1.1 doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\random-1.1\html\random.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\random-1.1\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\random-1.1 doesn't exist or isn't a directory
  cannot find any of ["System\\Random.hi","System\\Random.p_hi","System\\Random.dyn_hi"]
  cannot find any of ["libHSrandom-1.1.a","libHSrandom-1.1.p_a","libHSrandom-1.1-ghc7.8.3.so","libHSrandom-1.1-ghc7.8.3.dylib","HSrandom-1.1-ghc7.8.3.dll"] on library path
There are problems in package network-2.6.0.2:
  Warning: library-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.6.0.2 doesn't exist or isn't a directory
  Warning: include-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.6.0.2\include doesn't exist or isn't a directory
  Warning: haddock-interfaces: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\network-2.6.0.2\html\network.haddock doesn't exist or isn't a file
  Warning: haddock-html: C:\Program Files (x86)\Haskell\doc\x86_64-windows-ghc-7.8.3\network-2.6.0.2\html doesn't exist or isn't a directory
  import-dirs: C:\Program Files (x86)\Haskell\x86_64-windows-ghc-7.8.3\network-2.6.0.2 doesn't exist or isn't a directory
  cannot find any of ["Network.hi","Network.p_hi","Network.dyn_hi"]
  cannot find any of ["Network\\BSD.hi","Network\\BSD.p_hi","Network\\BSD.dyn_hi"]
  cannot find any of ["Network\\Socket.hi","Network\\Socket.p_hi","Network\\Socket.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString.hi","Network\\Socket\\ByteString.p_hi","Network\\Socket\\ByteString.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString\\Lazy.hi","Network\\Socket\\ByteString\\Lazy.p_hi","Network\\Socket\\ByteString\\Lazy.dyn_hi"]
  cannot find any of ["Network\\Socket\\Internal.hi","Network\\Socket\\Internal.p_hi","Network\\Socket\\Internal.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString\\Internal.hi","Network\\Socket\\ByteString\\Internal.p_hi","Network\\Socket\\ByteString\\Internal.dyn_hi"]
  cannot find any of ["Network\\Socket\\Types.hi","Network\\Socket\\Types.p_hi","Network\\Socket\\Types.dyn_hi"]
  cannot find any of ["Network\\Socket\\ByteString\\Lazy\\Windows.hi","Network\\Socket\\ByteString\\Lazy\\Windows.p_hi","Network\\Socket\\ByteString\\Lazy\\Windows.dyn_hi"]
  cannot find any of ["libHSnetwork-2.6.0.2.a","libHSnetwork-2.6.0.2.p_a","libHSnetwork-2.6.0.2-ghc7.8.3.so","libHSnetwork-2.6.0.2-ghc7.8.3.dylib","HSnetwork-2.6.0.2-ghc7.8.3.dll"] on library path

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
HTTP-4000.2.18
network-2.5.0.0
Cabal-1.20.0.2
parsec-3.1.7
text-1.2.0.0
zlib-0.5.4.1
stm-2.4.3
random-1.0.1.1
QuickCheck-2.7.6
tf-random-0.5
mtl-2.1.3.1
primitive-0.5.4.0
random-1.1
network-2.6.0.2
mvoidex commented 10 years ago

Maybe reinstall them?

Dangthrimble commented 10 years ago

Reinstall what?

mvoidex commented 10 years ago

Broken packages listed by ghc-pkg check command

mvoidex commented 10 years ago

I have never run into such an issues. I think reinstall broken packages may help. Other way is to completely remove all installed packages by removing AppData\Roaming\cabal and AppData\Roaming\ghc.

Dangthrimble commented 10 years ago

There is no AppData\Roaming\ghc

Tried reinstalling HTTP-4000.2.18 and got

$ cabal install HTTP-4000.2.18 --reinstall
Resolving dependencies...
In order, the following will be installed:
network-uri-2.6.0.1 (new package)
HTTP-4000.2.18 (reinstall) changes: network-2.5.0.0 -> 2.6.0.2,
network-uri-2.6.0.1 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Downloading network-uri-2.6.0.1...
Configuring network-uri-2.6.0.1...
Failed to install network-uri-2.6.0.1
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\network-uri-2.6.0.1.log ):
cabal.exe: Error: some packages failed to install:
HTTP-4000.2.18 depends on network-uri-2.6.0.1 which failed to install.
network-uri-2.6.0.1 failed during the configure step. The exception was:
user error (
C:\msys64\tmp\network-uri-2.6.0.1-5160\network-uri-2.6.0.1\dist\setup\setup.hs:1:8:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
)

$ cabal install network-uri-2.6.0.1 --reinstall
Resolving dependencies...
Configuring network-uri-2.6.0.1...
Failed to install network-uri-2.6.0.1
Build log ( C:\Users\Jonathan\AppData\Roaming\cabal\logs\network-uri-2.6.0.1.log ):
cabal.exe: Error: some packages failed to install:
network-uri-2.6.0.1 failed during the configure step. The exception was:
user error (
C:\msys64\tmp\network-uri-2.6.0.1-4292\network-uri-2.6.0.1\dist\setup\setup.hs:1:8:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.20.0.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
)