Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting random-1.1 Starting ghc-paths-0.1.0.9 Starting network-2.8.0.0 Starting syb-0.7 Building random-1.1 Building syb-0.7 Building ghc-paths-0.1.0.9 Building network-2.8.0.0 Completed random-1.1 Completed syb-0.7 Completed ghc-paths-0.1.0.9 Completed network-2.8.0.0 Downloading intero-0.1.38 Downloaded intero-0.1.38 Starting intero-0.1.38 Building intero-0.1.38 Failed to install intero-0.1.38 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/intero-0.1.38-AtJFbIPypNaCUY9GvOY1sj.log ): cabal: Entering directory '/tmp/cabal-tmp-22557/intero-0.1.38' Configuring intero-0.1.38... Preprocessing executable 'intero' for intero-0.1.38.. Building executable 'intero' for intero-0.1.38.. [ 1 of 10] Compiling Intero.Compat ( src/Intero/Compat.hs, dist/build/intero/intero-tmp/Intero/Compat.o ) [ 2 of 10] Compiling GhciTypes ( src/GhciTypes.hs, dist/build/intero/intero-tmp/GhciTypes.o ) [ 3 of 10] Compiling GhciMonad ( src/GhciMonad.hs, dist/build/intero/intero-tmp/GhciMonad.o ) [ 4 of 10] Compiling GhciTags ( src/GhciTags.hs, dist/build/intero/intero-tmp/GhciTags.o ) [ 5 of 10] Compiling GhciInfo ( src/GhciInfo.hs, dist/build/intero/intero-tmp/GhciInfo.o ) [ 6 of 10] Compiling GhciFind ( src/GhciFind.hs, dist/build/intero/intero-tmp/GhciFind.o ) [ 7 of 10] Compiling Completion ( src/Completion.hs, dist/build/intero/intero-tmp/Completion.o ) [ 8 of 10] Compiling Paths_intero ( dist/build/intero/autogen/Paths_intero.hs, dist/build/intero/intero-tmp/Paths_intero.o ) [ 9 of 10] Compiling InteractiveUI ( src/InteractiveUI.hs, dist/build/intero/intero-tmp/InteractiveUI.o ) src/InteractiveUI.hs:116:1: warning: [-Wdeprecations] Module ‘Network’ is deprecated: The high level Network interface is no longer supported. Please use Network.Socket. | 116 | import qualified Network | ^^^^^^^^^^^^^^^^^^^^^^^^ src/InteractiveUI.hs:117:1: warning: [-Wdeprecations] Module ‘Network.BSD’ is deprecated: This platform dependent module is no longer supported. | 117 | import Network.BSD | ^^^^^^^^^^^^^^^^^^ src/InteractiveUI.hs:695:32: warning: [-Wdeprecations] In the use of ‘accept’ (imported from Network): Deprecated: "The high level Network interface is no longer supported. Please use Network.Socket." | 695 | (h, _, _) <- Network.accept sock | ^^^^^^^^^^^^^^ src/InteractiveUI.hs:731:12: warning: [-Wdeprecations] In the use of ‘getProtocolNumber’ (imported from Network.BSD): Deprecated: "This platform dependent module is no longer supported." | 731 | proto <- getProtocolNumber "tcp" | ^^^^^^^^^^^^^^^^^ src/InteractiveUI.hs:737:19: warning: [-Wdeprecations] In the use of ‘getHostByName’ (imported from Network.BSD): Deprecated: "This platform dependent module is no longer supported." | 737 | address <- getHostByName "127.0.0.1" | ^^^^^^^^^^^^^ src/InteractiveUI.hs:738:32: warning: [-Wdeprecations] In the use of ‘aNY_PORT’ (imported from Network.Socket): Deprecated: "Use defaultPort instead" | 738 | bind sock (SockAddrInet aNY_PORT (hostAddress address)) | ^^^^^^^^ src/InteractiveUI.hs:738:42: warning: [-Wdeprecations] In the use of ‘hostAddress’ (imported from Network.BSD): Deprecated: "This platform dependent module is no longer supported." | 738 | bind sock (SockAddrInet aNY_PORT (hostAddress address)) | ^^^^^^^^^^^ [10 of 10] Compiling Main ( src/Main.hs, dist/build/intero/intero-tmp/Main.o ) Linking dist/build/intero/intero ... /usr/bin/ld.gold: error: cannot find -ltinfo collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-22557/intero-0.1.38' cabal: Error: some packages failed to install: intero-0.1.38-AtJFbIPypNaCUY9GvOY1sj failed during the building phase. The exception was: ExitFailure 1