Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Unable to build hie-865 on Ubuntu 18.04 LTS running in WSL2 container on Windows 10 (due to network package dep) #1688

Open
@maxild

Description

@maxild

OS

Windows 10
Build 19041.113

Using WSL 2 distro (Ubuntu 19.04 LTS)

Using Stack

I get the same error using Stack

Using Cabal

This is on a brand new WSL 2 distro. Steps to reproduce:

sudo apt update
sudo apt-get update
sudo apt upgrade

sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update
sudo apt-get install -y ghc-8.6.5
sudo apt-get install -y cabal-install-2.4

sudo apt install libicu-dev libtinfo-dev libgmp-dev
cabal new-update

git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules
cd haskell-ide-engine
cabal v2-run ./install.hs --project-file install/shake.project hie-8.6.5

This is the error written to stdout/stderr:

Installing   monad-memo-0.5.1 (lib)
Completed    monad-memo-0.5.1 (lib)
Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't
see the error.
cabal: Failed to build network-3.1.1.1 (which is required by
lib:hie-test-utils from haskell-ide-engine-1.2, exe:hie-wrapper from
haskell-ide-engine-1.2 and others). The failure occurred during the configure
step. The build process terminated with exit code 77

Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:69 in shake-0.18.5-dc580ce29df301712a8d38de66b6ee44db398183c2702d21cb38b9b522a2fe92:Development.Shake.Internal.Args
* Depends on: hie-8.6.5
  at command, called at src/Cabal.hs:28:13 in hie-install-0.8.1.0-inplace:Cabal
* Raised the exception:
Development.Shake.command, system command failed
Command line: cabal v2-install -w /opt/ghc/bin/ghc-8.6.5 --write-ghc-environment-files=never --symlink-bindir /home/maxfire/.cabal/bin --max-backjumps=5000 exe:hie exe:hie-wrapper --overwrite-policy=always --project-file=cabal.project -v1Exit code: 1
Stderr:
Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't
see the error.
cabal: Failed to build network-3.1.1.1 (which is required by
lib:hie-test-utils from haskell-ide-engine-1.2, exe:hie-wrapper from
haskell-ide-engine-1.2 and others). The failure occurred during the configure
step. The build process terminated with exit code 77

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions