Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cabal 3.2.0.0 stuck on build step when installing network package on Windows #6845

Closed
mastarija opened this issue May 24, 2020 · 12 comments
Closed

Comments

@mastarija
Copy link

Describe the bug
Cabal 3.2.0.0 with GHC 8.10.1 gets stuck on build step when I attempt to install the network-3.1.1.1 (as well as some earlier versions) package on Windows.

To Reproduce

$ cabal v2-install network --lib -v

Expected behavior

network library installs succesfuly.

System information

  • Windows 10
  • cabal 3.2.0.0, ghc 8.10.1 versions

Additional context

When I downgrade to cabal 3.0.0.0 and ghc 8.8.1 installation is succesful.

Here is the verbose cabal output:

PS C:\Users\mastarija> cabal v2-install network --lib -v
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
Updating index cache file
C:\Users\mastarija\AppData\Roaming\cabal\packages\hackage.haskell.org\01-index.cache
...
Index cache updated to index-state 2020-05-24T10:56:36Z
index-state(hackage.haskell.org) = 2020-05-24T10:56:36Z
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in C:\Program
Files\Haskell\ghc-8.10.1\bin
found ghc-pkg in C:\Program Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe" "--version"
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--supported-languages"
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--info"
creating
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle
creating
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle\cache
Compiler settings changed, reconfiguring...
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in C:\Program
Files\Haskell\ghc-8.10.1\bin
found ghc-pkg in C:\Program Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe" "--version"
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--supported-languages"
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--info"
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc.exe" "--print-global-package-db"
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2020-05-24T10:56:36Z
"C:\msys64\usr\bin\pkg-config.exe" "--version"
"C:\msys64\usr\bin\pkg-config.exe" "--variable" "pc_path" "pkg-config"
"C:\msys64\usr\bin\pkg-config.exe" "--version"
"C:\msys64\usr\bin\pkg-config.exe" "--list-all"
"C:\msys64\usr\bin\pkg-config.exe" "--modversion" "libalpm" "python2" "python3" "python3-embed" "python-2.7" "bash-completion" "libmakepkg" "python-3.8-embed" "python-3.8" "autoopts"
Resolving dependencies...
Component graph for hsc2hs-0.68.7: component exe:hsc2hs
component hsc2hs-0.68.7-dc13a4078e2c15516ec92d0ded31e6a506e80b1e
    include base-4.14.0.0
    include containers-0.6.2.1
    include directory-1.3.6.0
    include filepath-1.4.2.1
    include process-1.6.8.2
unit hsc2hs-0.68.7-dc13a4078e2c15516ec92d0ded31e6a506e80b1e
    include base-4.14.0.0
    include containers-0.6.2.1
    include directory-1.3.6.0
    include filepath-1.4.2.1
    include process-1.6.8.2
Component graph for network-3.1.1.1: component lib
component network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22
    include base-4.14.0.0
    include bytestring-0.10.10.0
    include deepseq-1.4.4.0
unit network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22
    include base-4.14.0.0
    include bytestring-0.10.10.0
    include deepseq-1.4.4.0
    Network.Socket=network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22:Network.Socket,Network.Socket.Address=network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22:Network.Socket.Address,Network.Socket.ByteString=network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22:Network.Socket.ByteString,Network.Socket.ByteString.Lazy=network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22:Network.Socket.ByteString.Lazy,Network.Socket.Internal=network-3.1.1.1-f3cfc836574f96c5446f1a78b0ecd89ae63a5a22:Network.Socket.Internal
Build profile: -w ghc-8.10.1 -O1
In order, the following will be built:
 - network-3.1.1.1 (lib:network) (requires build)
creating
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle\build
creating
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle\tmp
Extracting
C:\Users\mastarija\AppData\Roaming\cabal\packages\hackage.haskell.org\network\3.1.1.1\network-3.1.1.1.tar.gz
to
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle\tmp\src-4256...
Updating network.cabal with the latest revision from the index.
creating
C:\Users\MASTAR~1\AppData\Local\Temp\cabal-install.-4256\dist-newstyle\tmp\src-4256\network-3.1.1.1\dist
Starting     network-3.1.1.1 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","configure","--verbose=2","--builddir=dist","--ghc","--prefix=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc","--bindir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\bin","--libdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\lib","--libsubdir=","--dynlibdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\lib","--libexecdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\libexec","--libexecsubdir=","--datadir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\share","--datasubdir=","--docdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\share\\doc","--htmldir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\share\\doc\\html","--haddockdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\share\\doc\\html","--sysconfdir=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\\etc","--enable-library-vanilla","--disable-library-profiling","--disable-shared","--disable-static","--disable-executable-dynamic","--disable-executable-static","--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disable-split-sections","--disable-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\store\\ghc-8.10.1\\package.db","--ipid=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc","--extra-prog-path=C:\\Users\\mastarija\\AppData\\Roaming\\cabal\\bin","--dependency=base=base-4.14.0.0","--dependency=bytestring=bytestring-0.10.10.0","--dependency=deepseq=deepseq-1.4.4.0","--disable-tests","--disable-coverage","--exact-configuration","--disable-benchmarks","--with-ghc=C:\\Program
Files\\Haskell\\ghc-8.10.1\\bin\\ghc.exe","--with-ghc-pkg=C:\\Program
Files\\Haskell\\ghc-8.10.1\\bin\\ghc-pkg.exe","--ghc-option=-hide-all-packages"]
C:\Program Files\Haskell\cabal-install-3.2.0.0\cabal.exe act-as-setup
--build-type=Configure -- configure --verbose=2 --builddir=dist --ghc
--prefix=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc
--bindir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\bin
--libdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib
--libsubdir=
--dynlibdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib
--libexecdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\libexec
--libexecsubdir=
--datadir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share
--datasubdir=
--docdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share\doc
--htmldir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share\doc\html
--haddockdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share\doc\html
--sysconfdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\etc
--enable-library-vanilla --disable-library-profiling --disable-shared
--disable-static --disable-executable-dynamic --disable-executable-static
--disable-profiling --profiling-detail=default
--library-profiling-detail=default --enable-optimization --disable-debug-info
--disable-library-for-ghci --disable-split-sections --disable-split-objs
--disable-executable-stripping --disable-library-stripping --package-db=clear
--package-db=global
--package-db=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\package.db
--ipid=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc
--extra-prog-path=C:\Users\mastarija\AppData\Roaming\cabal\bin
--dependency=base=base-4.14.0.0 --dependency=bytestring=bytestring-0.10.10.0
--dependency=deepseq=deepseq-1.4.4.0 --disable-tests --disable-coverage
--exact-configuration --disable-benchmarks --with-ghc=C:\Program
Files\Haskell\ghc-8.10.1\bin\ghc.exe --with-ghc-pkg=C:\Program
Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe --ghc-option=-hide-all-packages
Redirecting build log to {handle:
C:\Users\mastarija\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc.log}

And here's stuff from build log:

Reading parameters from dist\build\network.buildinfo
Component build order: library
"C:\Program Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe" "init" "dist\package.conf.inplace"
creating dist\build
creating dist\build\autogen
creating dist\build\autogen
Preprocessing library for network-3.1.1.1..
creating dist\build\Network\Socket
creating dist\build\Network
creating dist\build\Network\Socket
"C:\Program Files\Haskell\ghc-8.10.1\bin\hsc2hs.exe" "-x" "@dist\build\Network\Socket\hsc7009.txt"
-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc
        include base-4.14.0.0
        include bytestring-0.10.10.0
        include deepseq-1.4.4.0
        Network.Socket=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc:Network.Socket,Network.Socket.Address=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc:Network.Socket.Address,Network.Socket.ByteString=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc:Network.Socket.ByteString,Network.Socket.ByteString.Lazy=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc:Network.Socket.ByteString.Lazy,Network.Socket.Internal=network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc:Network.Socket.Internal
Ready component graph:
    definite network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc
        depends base-4.14.0.0
        depends bytestring-0.10.10.0
        depends deepseq-1.4.4.0
Using Cabal-3.2.0.0 compiled by ghc-8.6
Using compiler: ghc-8.10.1
Using install prefix:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc
Executables installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\bin
Libraries installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib
Dynamic Libraries installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib
Private executables installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\libexec
Data files installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share
Documentation installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share\doc
Configuration files installed in:
C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\etc
No alex found
Using ar found on system at: C:\Program
Files\Haskell\ghc-8.10.1\lib\../mingw/bin\ar.exe
No c2hs found
No cpphs found
No doctest found
Using gcc version 9.2.0 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\lib\../mingw/bin\gcc.exe
Using ghc version 8.10.1 given by user at: C:\Program
Files\Haskell\ghc-8.10.1\bin\ghc.exe
Using ghc-pkg version 8.10.1 given by user at: C:\Program
Files\Haskell\ghc-8.10.1\bin\ghc-pkg.exe
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.0 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\bin\haddock.exe
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\bin\hpc.exe
Using hsc2hs version 0.68.7 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\bin\hsc2hs.exe
No hscolour found
No jhc found
Using ld found on system at: C:\Program
Files\Haskell\ghc-8.10.1\lib\../mingw/bin\ld.exe
Using pkg-config version 0.29.2 found on system at:
C:\msys64\usr\bin\pkg-config.exe
Using runghc version 8.10.1 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\bin\runghc.exe
Using strip version 2.32 found on system at: C:\Program
Files\Haskell\ghc-8.10.1\mingw\bin\strip.exe
Using tar found on system at: C:\WINDOWS\SYSTEM32\tar.exe
No uhc found
"C:\msys64\usr\bin\sh.exe" "C:\/Users/MASTAR~1/AppData/Local/Temp/cabal-install.-4256/dist-newstyle/tmp/src-4256/network-3.1.1.1/configure" "--with-compiler=ghc" "--prefix=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc" "--bindir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\bin" "--libdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib" "--libexecdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\libexec" "--datadir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share" "--sysconfdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\etc" "CC=C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe" "--host=x86_64-windows"
configure: WARNING: unrecognized options: --with-compiler
checking build system type... x86_64-pc-msys
checking host system type... x86_64-pc-windows
checking for x86_64-windows-gcc... C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe
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 C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe accepts -g... yes
checking for C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe -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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/uio.h usability... no
checking sys/uio.h presence... no
checking for sys/uio.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking netinet/tcp.h usability... no
checking netinet/tcp.h presence... no
checking for netinet/tcp.h... no
checking sys/un.h usability... no
checking sys/un.h presence... no
checking for sys/un.h... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking net/if.h usability... no
checking net/if.h presence... no
checking for net/if.h... no
checking netioapi.h usability... yes
checking netioapi.h presence... yes
checking for netioapi.h... yes
checking for struct ucred... no
checking for gai_strerror... no
checking for gethostent... no
checking for accept4... no
checking for getpeereid... no
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 whether SO_PEERCRED is declared... no
checking for struct msghdr.msg_control... no
checking for struct msghdr.msg_accrights... no
checking for struct sockaddr.sa_len... no
configure: creating ./network.buildinfo
configure: creating ./config.status
config.status: creating include/HsNetworkConfig.h
configure: WARNING: unrecognized options: --with-compiler
Reading parameters from dist\build\network.buildinfo
@gbaz
Copy link
Collaborator

gbaz commented May 25, 2020 via email

@jneira
Copy link
Member

jneira commented May 25, 2020

I've tried cabal-3.2 + ghc-8.8.3 and it works.
With ghc-8.10.1 i got a different error in a first try, a really weird one:

PS C:\TEMP2> cabal get network && cd network-3.1.1.1
PS C:\TEMP2\network-3.1.1.1> cabal install -v --lib -w ghc-8.10.1                                                                 Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2020-05-24T12:28:23Z
Resolving dependencies...
.......
Resolving dependencies...
CallStack (from HasCallStack):
  die', called at .\\Distribution\\Client\\ProjectPlanning.hs:579:42 in main:Distribution.Client.ProjectPlanning
cabal.exe: Could not resolve dependencies:
[__0] trying: base-4.14.0.0/installed-4.14.0.0 (user goal)
[__1] next goal: cabal-plan (user goal)
[__1] rejecting: cabal-plan-0.6.2.0 (conflict:
base==4.14.0.0/installed-4.14.0.0, cabal-plan => base(>=4.6 && <4.10) ||
^>=4.10 || ^>=4.11 || ^>=4.12 || ^>=4.13)
[__1] skipping: cabal-plan-0.6.1.0, cabal-plan-0.6.0.0, cabal-plan-0.5.0.0,
cabal-plan-0.4.0.0, cabal-plan-0.3.0.0, cabal-plan-0.2.0.0,
cabal-plan-0.1.1.0, cabal-plan-0.1.0.0 (has the same characteristics that
caused the previous version to fail: excludes 'base' version 4.14.0.0)
[__1] fail (backjumping, conflict set: base, cabal-plan)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base (40), cabal-plan (11)

Not sure from where it is picking cabal-plan but wiping out the cabal store fix the error and the build successes:

Output of verbose log
PS C:\TEMP2\network-3.1.1.1> cabal install -v --lib -w ghc-8.10.1                                                                 Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2020-05-24T12:28:23Z
Wrote tarball sdist to
C:\TEMP2\network-3.1.1.1\dist-newstyle\sdist\network-3.1.1.1.tar.gz
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in
D:\bin\stack\x86_64-windows\ghc-8.10.1\bin
found ghc-pkg in D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe" "--version"
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--supported-languages"
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--info"
Warning: Package db C:\sd\ghc-8.10.1\package.db does not exist yet
creating C:\TEMP2\cabal-install.-12908\dist-newstyle
creating C:\TEMP2\cabal-install.-12908\dist-newstyle\cache
Compiler settings changed, reconfiguring...
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--numeric-version"
looking for tool ghc-pkg near compiler in
D:\bin\stack\x86_64-windows\ghc-8.10.1\bin
found ghc-pkg in D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe" "--version"
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--supported-languages"
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--info"
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe" "--print-global-package-db"
Reading available packages of hackage.haskell.org...
Using most recent state specified from most recent cabal update
index-state(hackage.haskell.org) = 2020-05-24T12:28:23Z
Failed to query pkg-config, Cabal will continue without solving for pkg-config
constraints: Cannot find pkg-config program
Resolving dependencies...
Component graph for process-1.6.9.0: component lib
component process-1.6.9.0-271da9718975548df7def922955bdd457d351cbf
    include Win32-2.6.1.0
    include base-4.14.0.0
    include deepseq-1.4.4.0
    include directory-1.3.6.0
    include filepath-1.4.2.1
unit process-1.6.9.0-271da9718975548df7def922955bdd457d351cbf
    include Win32-2.6.1.0
    include base-4.14.0.0
    include deepseq-1.4.4.0
    include directory-1.3.6.0
    include filepath-1.4.2.1
    System.Cmd=process-1.6.9.0-271da9718975548df7def922955bdd457d351cbf:System.Cmd,System.Process=process-1.6.9.0-271da9718975548df7def922955bdd457d351cbf:System.Process,System.Process.Internals=process-1.6.9.0-271da9718975548df7def922955bdd457d351cbf:System.Process.Internals
Component graph for hsc2hs-0.68.7: component exe:hsc2hs
component hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca
    include base-4.14.0.0
    include containers-0.6.2.1
    include directory-1.3.6.0
    include filepath-1.4.2.1
    include process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
unit hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca
    include base-4.14.0.0
    include containers-0.6.2.1
    include directory-1.3.6.0
    include filepath-1.4.2.1
    include process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
Component graph for network-3.1.1.1: component lib
component network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6
    include base-4.14.0.0
    include bytestring-0.10.10.0
    include deepseq-1.4.4.0
unit network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6
    include base-4.14.0.0
    include bytestring-0.10.10.0
    include deepseq-1.4.4.0
    Network.Socket=network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6:Network.Socket,Network.Socket.Address=network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6:Network.Socket.Address,Network.Socket.ByteString=network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6:Network.Socket.ByteString,Network.Socket.ByteString.Lazy=network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6:Network.Socket.ByteString.Lazy,Network.Socket.Internal=network-3.1.1.1-cae637cc9ca24a7eff51923d0272e3706b82b7d6:Network.Socket.Internal
Build profile: -w ghc-8.10.1 -O1
In order, the following will be built:
 - process-1.6.9.0 (lib:process) (requires build)
 - hsc2hs-0.68.7 (exe:hsc2hs) (requires build)
 - network-3.1.1.1 (lib:network) (requires build)
creating C:\TEMP2\cabal-install.-12908\dist-newstyle\build
creating C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp
creating C:\sd\ghc-8.10.1
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe" "init" "C:\sd\ghc-8.10.1\package.db"
Extracting
C:\Users\atrey\AppData\Roaming\cabal\packages\hackage.haskell.org\process\1.6.9.0\process-1.6.9.0.tar.gz
to C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908...
Updating process.cabal with the latest revision from the index.
creating
C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908\process-1.6.9.0\dist
Starting     process-1.6.9.0 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","configure","--verbose=2","--builddir=dist","--ghc","--prefix=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d","--bindir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\bin","--libdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\lib","--libsubdir=","--dynlibdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\lib","--libexecdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\libexec","--libexecsubdir=","--datadir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\share","--datasubdir=","--docdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\share\\doc","--htmldir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\share\\doc\\html","--haddockdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\share\\doc\\html","--sysconfdir=C:\\sd\\ghc-8.10.1\\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\\etc","--enable-library-vanilla","--disable-library-profiling","--disable-shared","--disable-static","--disable-executable-dynamic","--disable-executable-static","--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disable-split-sections","--disable-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\sd\\ghc-8.10.1\\package.db","--ipid=process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d","--extra-prog-path=D:\\bin","--dependency=Win32=Win32-2.6.1.0","--dependency=base=base-4.14.0.0","--dependency=deepseq=deepseq-1.4.4.0","--dependency=directory=directory-1.3.6.0","--dependency=filepath=filepath-1.4.2.1","--disable-tests","--disable-coverage","--exact-configuration","--disable-benchmarks","--with-ghc=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-8.10.1.exe","--with-ghc-pkg=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-pkg.exe","--ghc-option=-hide-all-packages"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- configure --verbose=2
--builddir=dist --ghc
--prefix=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
--bindir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\bin
--libdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\lib
--libsubdir=
--dynlibdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\lib
--libexecdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\libexec
--libexecsubdir=
--datadir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\share
--datasubdir=
--docdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\share\doc
--htmldir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\share\doc\html
--haddockdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\share\doc\html
--sysconfdir=C:\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d\etc
--enable-library-vanilla --disable-library-profiling --disable-shared
--disable-static --disable-executable-dynamic --disable-executable-static
--disable-profiling --profiling-detail=default
--library-profiling-detail=default --enable-optimization --disable-debug-info
--disable-library-for-ghci --disable-split-sections --disable-split-objs
--disable-executable-stripping --disable-library-stripping --package-db=clear
--package-db=global --package-db=C:\sd\ghc-8.10.1\package.db
--ipid=process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
--extra-prog-path=D:\bin --dependency=Win32=Win32-2.6.1.0
--dependency=base=base-4.14.0.0 --dependency=deepseq=deepseq-1.4.4.0
--dependency=directory=directory-1.3.6.0
--dependency=filepath=filepath-1.4.2.1 --disable-tests --disable-coverage
--exact-configuration --disable-benchmarks
--with-ghc=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe
--with-ghc-pkg=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe
--ghc-option=-hide-all-packages
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d.log}
Building     process-1.6.9.0 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","build","--verbose=2","--builddir=dist"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- build --verbose=2
--builddir=dist
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d.log}
Installing   process-1.6.9.0 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","copy","--verbose=2","--builddir=dist","--destdir=C:\\sd\\ghc-8.10.1\\incoming\\new-12908"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- copy --verbose=2
--builddir=dist --destdir=C:\sd\ghc-8.10.1\incoming\new-12908
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d.log}
creating
C:\sd\ghc-8.10.1\incoming\new-12908\sd\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","register","--verbose=2","--builddir=dist","--gen-pkg-config=C:\\TEMP2\\cabal-install.-12908\\dist-newstyle\\tmp\\package-registration--12908\\pkgConf"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- register --verbose=2
--builddir=dist
--gen-pkg-config=C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\package-registration--12908\pkgConf
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d.log}
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe" "recache" "--package-db=C:\sd\ghc-8.10.1\package.db"
Completed    process-1.6.9.0 (all, legacy fallback)
Extracting
C:\Users\atrey\AppData\Roaming\cabal\packages\hackage.haskell.org\hsc2hs\0.68.7\hsc2hs-0.68.7.tar.gz
to C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908...
Updating hsc2hs.cabal with the latest revision from the index.
creating
C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908\hsc2hs-0.68.7\dist
Starting     hsc2hs-0.68.7 (exe:hsc2hs)
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","configure","--verbose=2","--builddir=dist","--ghc","--prefix=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca","--bindir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\bin","--libdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\lib","--libsubdir=","--dynlibdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\lib","--libexecdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\libexec","--libexecsubdir=","--datadir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\share","--datasubdir=","--docdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\share\\doc","--htmldir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\share\\doc\\html","--haddockdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\share\\doc\\html","--sysconfdir=C:\\sd\\ghc-8.10.1\\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\\etc","--enable-library-vanilla","--disable-library-profiling","--disable-shared","--disable-static","--disable-executable-dynamic","--disable-executable-static","--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disable-split-sections","--disable-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\sd\\ghc-8.10.1\\package.db","--flags=-in-ghc-tree","--cid=hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca","--extra-prog-path=D:\\bin","--dependency=base=base-4.14.0.0","--dependency=containers=containers-0.6.2.1","--dependency=directory=directory-1.3.6.0","--dependency=filepath=filepath-1.4.2.1","--dependency=process=process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d","--disable-coverage","--exact-configuration","--with-ghc=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-8.10.1.exe","--with-ghc-pkg=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-pkg.exe","--ghc-option=-hide-all-packages","exe:hsc2hs"]
D:\bin\cabal.exe act-as-setup --build-type=Simple -- configure --verbose=2
--builddir=dist --ghc
--prefix=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca
--bindir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\bin
--libdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\lib
--libsubdir=
--dynlibdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\lib
--libexecdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\libexec
--libexecsubdir=
--datadir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\share
--datasubdir=
--docdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\share\doc
--htmldir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\share\doc\html
--haddockdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\share\doc\html
--sysconfdir=C:\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca\etc
--enable-library-vanilla --disable-library-profiling --disable-shared
--disable-static --disable-executable-dynamic --disable-executable-static
--disable-profiling --profiling-detail=default
--library-profiling-detail=default --enable-optimization --disable-debug-info
--disable-library-for-ghci --disable-split-sections --disable-split-objs
--disable-executable-stripping --disable-library-stripping --package-db=clear
--package-db=global --package-db=C:\sd\ghc-8.10.1\package.db
--flags=-in-ghc-tree
--cid=hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca
--extra-prog-path=D:\bin --dependency=base=base-4.14.0.0
--dependency=containers=containers-0.6.2.1
--dependency=directory=directory-1.3.6.0
--dependency=filepath=filepath-1.4.2.1
--dependency=process=process-1.6.9.0-d456afb0b53f63803842bc0948b01d0dd0ace98d
--disable-coverage --exact-configuration
--with-ghc=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe
--with-ghc-pkg=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe
--ghc-option=-hide-all-packages exe:hsc2hs
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca.log}
Building     hsc2hs-0.68.7 (exe:hsc2hs)
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","build","--verbose=2","--builddir=dist"]
D:\bin\cabal.exe act-as-setup --build-type=Simple -- build --verbose=2
--builddir=dist
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca.log}
Installing   hsc2hs-0.68.7 (exe:hsc2hs)
Using self-exec internal setup method with build-type Simple and args:
["act-as-setup","--build-type=Simple","--","copy","--verbose=2","--builddir=dist","--destdir=C:\\sd\\ghc-8.10.1\\incoming\\new-12908"]
D:\bin\cabal.exe act-as-setup --build-type=Simple -- copy --verbose=2
--builddir=dist --destdir=C:\sd\ghc-8.10.1\incoming\new-12908
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca.log}
creating
C:\sd\ghc-8.10.1\incoming\new-12908\sd\ghc-8.10.1\hsc2hs-0.68.7-6ec6311fdb960ca1979dd42fcaa6b74d84f109ca
Completed    hsc2hs-0.68.7 (exe:hsc2hs)
Extracting C:\TEMP2\network-3.1.1.1\dist-newstyle\sdist\network-3.1.1.1.tar.gz
to C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908...
creating
C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\src-12908\network-3.1.1.1\dist
Starting     network-3.1.1.1 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","configure","--verbose=2","--builddir=dist","--ghc","--prefix=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219","--bindir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\bin","--libdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\lib","--libsubdir=","--dynlibdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\lib","--libexecdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\libexec","--libexecsubdir=","--datadir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\share","--datasubdir=","--docdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\share\\doc","--htmldir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\share\\doc\\html","--haddockdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\share\\doc\\html","--sysconfdir=C:\\sd\\ghc-8.10.1\\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\\etc","--enable-library-vanilla","--disable-library-profiling","--disable-shared","--disable-static","--disable-executable-dynamic","--disable-executable-static","--disable-profiling","--profiling-detail=default","--library-profiling-detail=default","--enable-optimization","--disable-debug-info","--disable-library-for-ghci","--disable-split-sections","--disable-split-objs","--disable-executable-stripping","--disable-library-stripping","--package-db=clear","--package-db=global","--package-db=C:\\sd\\ghc-8.10.1\\package.db","--ipid=network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219","--extra-prog-path=D:\\bin","--dependency=base=base-4.14.0.0","--dependency=bytestring=bytestring-0.10.10.0","--dependency=deepseq=deepseq-1.4.4.0","--disable-tests","--disable-coverage","--exact-configuration","--disable-benchmarks","--with-ghc=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-8.10.1.exe","--with-ghc-pkg=D:\\bin\\stack\\x86_64-windows\\ghc-8.10.1\\bin\\ghc-pkg.exe","--ghc-option=-hide-all-packages"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- configure --verbose=2
--builddir=dist --ghc
--prefix=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219
--bindir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\bin
--libdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\lib
--libsubdir=
--dynlibdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\lib
--libexecdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\libexec
--libexecsubdir=
--datadir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\share
--datasubdir=
--docdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\share\doc
--htmldir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\share\doc\html
--haddockdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\share\doc\html
--sysconfdir=C:\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219\etc
--enable-library-vanilla --disable-library-profiling --disable-shared
--disable-static --disable-executable-dynamic --disable-executable-static
--disable-profiling --profiling-detail=default
--library-profiling-detail=default --enable-optimization --disable-debug-info
--disable-library-for-ghci --disable-split-sections --disable-split-objs
--disable-executable-stripping --disable-library-stripping --package-db=clear
--package-db=global --package-db=C:\sd\ghc-8.10.1\package.db
--ipid=network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219
--extra-prog-path=D:\bin --dependency=base=base-4.14.0.0
--dependency=bytestring=bytestring-0.10.10.0
--dependency=deepseq=deepseq-1.4.4.0 --disable-tests --disable-coverage
--exact-configuration --disable-benchmarks
--with-ghc=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-8.10.1.exe
--with-ghc-pkg=D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe
--ghc-option=-hide-all-packages
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219.log}
Building     network-3.1.1.1 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","build","--verbose=2","--builddir=dist"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- build --verbose=2
--builddir=dist
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219.log}
Installing   network-3.1.1.1 (all, legacy fallback)
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","copy","--verbose=2","--builddir=dist","--destdir=C:\\sd\\ghc-8.10.1\\incoming\\new-12908"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- copy --verbose=2
--builddir=dist --destdir=C:\sd\ghc-8.10.1\incoming\new-12908
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219.log}
creating
C:\sd\ghc-8.10.1\incoming\new-12908\sd\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219
Using self-exec internal setup method with build-type Configure and args:
["act-as-setup","--build-type=Configure","--","register","--verbose=2","--builddir=dist","--gen-pkg-config=C:\\TEMP2\\cabal-install.-12908\\dist-newstyle\\tmp\\package-registration--12908\\pkgConf"]
D:\bin\cabal.exe act-as-setup --build-type=Configure -- register --verbose=2
--builddir=dist
--gen-pkg-config=C:\TEMP2\cabal-install.-12908\dist-newstyle\tmp\package-registration--12908\pkgConf
Redirecting build log to {handle:
C:\Users\atrey\AppData\Roaming\cabal\logs\ghc-8.10.1\network-3.1.1.1-6dbdf3bffde3d5d3aef4e49aa4664841d1527219.log}
"D:\bin\stack\x86_64-windows\ghc-8.10.1\bin\ghc-pkg.exe" "recache" "--package-db=C:\sd\ghc-8.10.1\package.db"
Completed    network-3.1.1.1 (all, legacy fallback)

@mastarija
Copy link
Author

mastarija commented May 25, 2020

Have you tried cabal 3.2 with ghc 8.8.1?

Yes, same thing happens. It just hangs on the build step. Only when I downgrade both GHC and Cabal do I get past that step. @gbaz

I'll try wiping the cabal store as @jneira suggested.

UPDATE:

It's still not working even after I've completely wiped the C:\Users\mastarija\AppData\Roaming\cabal directory.

@mastarija
Copy link
Author

I've tried downloading ghc 8.8.3 and using cabal 3.2.0.0 but it's still stuck on build step. Only when I downgrade cabal to 3.0.0.0 do I manage to compile network package.

I have also tried using Cabal 3.0.0.0 with GHC 8.10.1. I do get a warning that cabal doesn't recognise GHC version but it still manages to build the network package unlike Cabal 3.2.0.0.

So I guess there is some problem with Cabal 3.2.0.0 in the end.

@jneira
Copy link
Member

jneira commented May 24, 2021

@mastarija hi, we have new versions for cabal (3.4.0.0) and a quite good ghc version for windows (8.10.4) with a new network version too (3.1.2.1), would you mind to try again with those versions?
the package has a configure step:

"C:\msys64\usr\bin\sh.exe" "C:\/Users/MASTAR~1/AppData/Local/Temp/cabal-install.-4256/dist-newstyle/tmp/src-4256/network-3.1.1.1/configure" "--with-compiler=ghc" "--prefix=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc" "--bindir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\bin" "--libdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\lib" "--libexecdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\libexec" "--datadir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\share" "--sysconfdir=C:\Users\mastarija\AppData\Roaming\cabal\store\ghc-8.10.1\network-3.1.1.1-3d4d12ff250f7809f8fb1b66d00b9b19689c1bdc\etc" "CC=C:\PROGRA~1\Haskell\GHC-81~1.1\lib\../mingw/bin\gcc.exe" "--host=x86_64-windows"

so the msys64 version you are using could be useful to diagnose the issue.

I see some potential problems with the paths, maybe they does not cause the concrete issue but i usually follow some rules (followed in choco installation for example):

  • set the cabal store to the shortest path possible: to do so, add in C:\Users\mastarija\AppData\Roaming\cabal\config, store-dir: C:\sd or similar.
  • move ghc to a short path without spaces (yours is under Program Files)

Another workaround could be try to install the lib in a msys2 bash shell.

@phadej
Copy link
Collaborator

phadej commented May 24, 2021

@jneira your cabal-plan is probably coming from default environment for that compiler, you probably cabal install cabal-plan previously.

cabal install --lib is broken.

@ul
Copy link

ul commented Jul 1, 2021

I have the same problem on macOS 11.4 with cabal 3.4.0.0, ghc 8.10.5, network 3.1.2.2

@Mikolaj
Copy link
Member

Mikolaj commented Jul 1, 2021

@ul: may that be https://gitlab.haskell.org/ghc/ghc/-/issues/19968? If so, probably 8.10.4 should work?

@ul
Copy link

ul commented Jul 1, 2021

Seems to be it, thanks @Mikolaj for the pointer!

@Mikolaj
Copy link
Member

Mikolaj commented Jul 1, 2021

@ul: I'm glad. Could you confirm it works for you with 8.10.4 (or however you made it work) for the benefit of other users coming to this ticket?

@ul
Copy link

ul commented Jul 4, 2021

Yes, downgrading ghc to 8.10.4 while keeping cabal and network version the same resolved the problem.

@Mikolaj
Copy link
Member

Mikolaj commented Jul 5, 2021

@ul: thank you for the confirmation. Closing. Take care!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants