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 cabal-doctest-1.0.6 Starting StateVar-1.1.1.1 Starting base-orphans-0.8 Starting base-compat-0.10.5 Building StateVar-1.1.1.1 Building base-orphans-0.8 Building cabal-doctest-1.0.6 Building base-compat-0.10.5 Completed base-orphans-0.8 Starting call-stack-0.1.0 Completed StateVar-1.1.1.1 Starting clock-0.7.2 Building call-stack-0.1.0 Building clock-0.7.2 Completed cabal-doctest-1.0.6 Starting colour-2.3.4 Building colour-2.3.4 Completed call-stack-0.1.0 Starting dlist-0.8.0.5 Building dlist-0.8.0.5 Completed clock-0.7.2 Starting erf-2.0.0.0 Building erf-2.0.0.0 Completed base-compat-0.10.5 Starting hashable-1.2.7.0 Completed dlist-0.8.0.5 Starting hgmp-0.1.1 Completed erf-2.0.0.0 Starting hspec-discover-2.7.0 Building hashable-1.2.7.0 Building hgmp-0.1.1 Building hspec-discover-2.7.0 Completed colour-2.3.4 Starting integer-logarithms-1.0.2.2 Completed hspec-discover-2.7.0 Starting logict-0.6.0.2 Completed hashable-1.2.7.0 Starting long-double-0.1 Building integer-logarithms-1.0.2.2 Building logict-0.6.0.2 Building long-double-0.1 Completed integer-logarithms-1.0.2.2 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed logict-0.6.0.2 Starting parallel-3.2.2.0 Completed long-double-0.1 Starting primitive-0.6.4.0 Building parallel-3.2.2.0 Building primitive-0.6.4.0 Completed old-locale-1.0.0.7 Starting random-1.1 Building random-1.1 Completed hgmp-0.1.1 Starting reflection-2.1.4 Building reflection-2.1.4 Completed parallel-3.2.2.0 Starting regex-base-0.93.2 Building regex-base-0.93.2 Completed random-1.1 Starting safe-0.3.17 Building safe-0.3.17 Completed regex-base-0.93.2 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting setenv-0.1.1.3 Completed reflection-2.1.4 Starting syb-0.7 Building setenv-0.1.1.3 Building syb-0.7 Completed safe-0.3.17 Starting tagged-0.8.6 Completed setenv-0.1.1.3 Starting th-abstraction-0.2.11.0 Building tagged-0.8.6 Building th-abstraction-0.2.11.0 Completed syb-0.7 Starting time-locale-compat-0.1.1.5 Completed tagged-0.8.6 Starting transformers-compat-0.6.2 Building time-locale-compat-0.1.1.5 Building transformers-compat-0.6.2 Completed primitive-0.6.4.0 Starting void-0.7.2 Building void-0.7.2 Completed time-locale-compat-0.1.1.5 Starting contravariant-1.5 Completed th-abstraction-0.2.11.0 Starting HUnit-1.6.0.0 Building contravariant-1.5 Completed void-0.7.2 Starting ansi-terminal-0.9 Building HUnit-1.6.0.0 Building ansi-terminal-0.9 Completed transformers-compat-0.6.2 Starting unordered-containers-0.2.10.0 Building unordered-containers-0.2.10.0 Completed contravariant-1.5 Starting smallcheck-1.1.5 Completed HUnit-1.6.0.0 Starting old-time-1.1.0.3 Building smallcheck-1.1.5 Completed ansi-terminal-0.9 Starting uuid-types-1.0.3 Building uuid-types-1.0.3 Building old-time-1.1.0.3 Completed uuid-types-1.0.3 Starting regex-tdfa-1.2.3.1 Completed smallcheck-1.1.5 Starting th-expand-syns-0.4.4.0 Completed old-time-1.1.0.3 Starting distributive-0.6 Building regex-tdfa-1.2.3.1 Building th-expand-syns-0.4.4.0 Building distributive-0.6 Completed th-expand-syns-0.4.4.0 Starting vector-0.12.0.2 Completed unordered-containers-0.2.10.0 Starting tf-random-0.5 Building vector-0.12.0.2 Building tf-random-0.5 Completed distributive-0.6 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed tf-random-0.5 Starting th-lift-0.7.11 Building th-lift-0.7.11 Completed scientific-0.3.6.2 Starting transformers-base-0.4.5.2 Completed th-lift-0.7.11 Starting exceptions-0.10.0 Building transformers-base-0.4.5.2 Building exceptions-0.10.0 Completed transformers-base-0.4.5.2 Starting hspec-expectations-0.8.2 Building hspec-expectations-0.8.2 Completed hspec-expectations-0.8.2 Starting convertible-1.1.1.0 Completed regex-tdfa-1.2.3.1 Starting th-reify-many-0.1.8 Completed exceptions-0.10.0 Starting comonad-5.0.4 Building convertible-1.1.1.0 Building th-reify-many-0.1.8 Completed th-reify-many-0.1.8 Starting QuickCheck-2.12.6.1 Building comonad-5.0.4 Building QuickCheck-2.12.6.1 Completed comonad-5.0.4 Starting attoparsec-0.13.2.2 Building attoparsec-0.13.2.2 Completed convertible-1.1.1.0 Starting bifunctors-5.5.3 Building bifunctors-5.5.3 Completed attoparsec-0.13.2.2 Completed vector-0.12.0.2 Starting th-lift-instances-0.1.11 Starting aeson-1.4.2.0 Building th-lift-instances-0.1.11 Building aeson-1.4.2.0 Completed bifunctors-5.5.3 Starting semigroupoids-5.3.2 Completed th-lift-instances-0.1.11 Starting profunctors-5.3 Building profunctors-5.3 Completed QuickCheck-2.12.6.1 Starting th-orphans-0.13.6 Building semigroupoids-5.3.2 Building th-orphans-0.13.6 Completed th-orphans-0.13.6 Starting quickcheck-io-0.2.0 Completed profunctors-5.3 Starting th-desugar-1.9 Building quickcheck-io-0.2.0 Building th-desugar-1.9 Completed quickcheck-io-0.2.0 Starting invariant-0.5.1 Building invariant-0.5.1 Completed semigroupoids-5.3.2 Starting hspec-core-2.7.0 Building hspec-core-2.7.0 Completed invariant-0.5.1 Starting free-5.1 Building free-5.1 Completed aeson-1.4.2.0 Completed hspec-core-2.7.0 Starting hspec-2.7.0 Starting hspec-smallcheck-0.5.2 Building hspec-2.7.0 Building hspec-smallcheck-0.5.2 Completed hspec-smallcheck-0.5.2 Completed hspec-2.7.0 Starting mixed-types-num-0.3.2 Building mixed-types-num-0.3.2 Completed th-desugar-1.9 Starting singletons-2.5.1 Completed free-5.1 Starting adjunctions-4.4 Building adjunctions-4.4 Building singletons-2.5.1 Completed adjunctions-4.4 Starting kan-extensions-5.2 Building kan-extensions-5.2 Completed kan-extensions-5.2 Starting lens-4.17 Building lens-4.17 Completed mixed-types-num-0.3.2 Completed lens-4.17 Completed singletons-2.5.1 Starting rounded-0.1.0.1 Failed to install rounded-0.1.0.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/rounded-0.1.0.1-CDxPgOoF57ACyohFk2nUA4.log ): cabal: Entering directory '/tmp/cabal-tmp-21248/rounded-0.1.0.1' Configuring rounded-0.1.0.1... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: mpfr 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 library 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: Leaving directory '/tmp/cabal-tmp-21248/rounded-0.1.0.1' cabal: Error: some packages failed to install: aern2-mp-0.1.4-IZOQowGgG7oJXYXVk9dGYH depends on aern2-mp-0.1.4 which failed to install. aern2-real-0.1.2-7MQvbw9H940B76lbpkO76a depends on aern2-real-0.1.2 which failed to install. rounded-0.1.0.1-CDxPgOoF57ACyohFk2nUA4 failed during the configure step. The exception was: ExitFailure 1