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 ghc-paths-0.1.0.9 Building ghc-paths-0.1.0.9 Completed ghc-paths-0.1.0.9 Starting haskell-dap-0.0.10.1 Building haskell-dap-0.0.10.1 Failed to install haskell-dap-0.0.10.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/haskell-dap-0.0.10.1-ozVBwEmEDtLTzVb8QjvZf.log ): cabal: Entering directory '/tmp/cabal-tmp-26117/haskell-dap-0.0.10.1' Configuring haskell-dap-0.0.10.1... Preprocessing library for haskell-dap-0.0.10.1.. Building library for haskell-dap-0.0.10.1.. [1 of 2] Compiling GHCi.DAP.IFData ( src/GHCi/DAP/IFData.hs, dist/build/GHCi/DAP/IFData.o ) [2 of 2] Compiling Paths_haskell_dap ( dist/build/autogen/Paths_haskell_dap.hs, dist/build/Paths_haskell_dap.o ) Preprocessing executable 'haskell-dap' for haskell-dap-0.0.10.1.. Building executable 'haskell-dap' for haskell-dap-0.0.10.1.. [ 1 of 12] Compiling GHCi.Leak ( app-ghc-8.6/GHCi/Leak.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCi/Leak.o ) [ 2 of 12] Compiling GHCi.UI.Info ( app-ghc-8.6/GHCi/UI/Info.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCi/UI/Info.o ) [ 3 of 12] Compiling Haskell.DAP.GHCi.Constant ( app/Haskell/DAP/GHCi/Constant.hs, dist/build/haskell-dap/haskell-dap-tmp/Haskell/DAP/GHCi/Constant.o ) [ 4 of 12] Compiling Haskell.DAP.GHCi.Type ( app/Haskell/DAP/GHCi/Type.hs, dist/build/haskell-dap/haskell-dap-tmp/Haskell/DAP/GHCi/Type.o ) [ 5 of 12] Compiling GHCi.UI.Monad ( app-ghc-8.6/GHCi/UI/Monad.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCi/UI/Monad.o ) [ 6 of 12] Compiling GHCi.UI.Tags ( app-ghc-8.6/GHCi/UI/Tags.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCi/UI/Tags.o ) [ 7 of 12] Compiling GHCi.UI ( app-ghc-8.6/GHCi/UI.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCi/UI.o ) [ 8 of 12] Compiling GHCMain ( app-ghc-8.6/GHCMain.hs, dist/build/haskell-dap/haskell-dap-tmp/GHCMain.o ) [ 9 of 12] Compiling Haskell.DAP.GHCi.Utility ( app/Haskell/DAP/GHCi/Utility.hs, dist/build/haskell-dap/haskell-dap-tmp/Haskell/DAP/GHCi/Utility.o ) [10 of 12] Compiling Haskell.DAP.GHCi.Command ( app/Haskell/DAP/GHCi/Command.hs, dist/build/haskell-dap/haskell-dap-tmp/Haskell/DAP/GHCi/Command.o ) [11 of 12] Compiling Paths_haskell_dap ( dist/build/haskell-dap/autogen/Paths_haskell_dap.hs, dist/build/haskell-dap/haskell-dap-tmp/Paths_haskell_dap.o ) [12 of 12] Compiling Main ( app/Main.hs, dist/build/haskell-dap/haskell-dap-tmp/Main.o ) Linking dist/build/haskell-dap/haskell-dap ... /usr/bin/ld.gold: error: cannot find -ltinfo /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x183): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x1bb): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x1dd): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/haskeline-0.7.4.3/libHShaskeline-0.7.4.3.a(Terminfo.o)(.text.sn2l_info+0x20b): error: undefined reference to 'set_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zE_info+0x102): error: undefined reference to 'tigetnum' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zF_info+0x102): error: undefined reference to 'tigetflag' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.r9zG_info+0xfa): error: undefined reference to 'tigetstr' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9IB_info+0x23c): error: undefined reference to 'tparm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Kw_info+0x132): error: undefined reference to 'del_curterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Kw_info+0x241): error: undefined reference to 'setupterm' /opt/ghc/8.6.3/lib/ghc-8.6.3/terminfo-0.4.1.2/libHSterminfo-0.4.1.2.a(Base.o)(.text.s9Mm_info+0x131): error: undefined reference to 'tputs' collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-26117/haskell-dap-0.0.10.1' cabal: Error: some packages failed to install: haskell-dap-0.0.10.1-ozVBwEmEDtLTzVb8QjvZf failed during the building phase. The exception was: ExitFailure 1