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 base-orphans-0.8 Starting colour-2.3.4 Building colour-2.3.4 Building base-orphans-0.8 Completed base-orphans-0.8 Starting hashable-1.2.7.0 Building hashable-1.2.7.0 Completed hashable-1.2.7.0 Starting integer-logarithms-1.0.2.2 Building integer-logarithms-1.0.2.2 Completed colour-2.3.4 Starting primitive-0.6.4.0 Building primitive-0.6.4.0 Completed integer-logarithms-1.0.2.2 Starting semigroups-0.18.5 Building semigroups-0.18.5 Completed semigroups-0.18.5 Starting unordered-containers-0.2.9.0 Building unordered-containers-0.2.9.0 Completed unordered-containers-0.2.9.0 Starting ansi-terminal-0.8.2 Building ansi-terminal-0.8.2 Completed primitive-0.6.4.0 Starting charset-0.3.7.1 Building charset-0.3.7.1 Completed ansi-terminal-0.8.2 Starting vector-0.12.0.1 Building vector-0.12.0.1 Completed charset-0.3.7.1 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed scientific-0.3.6.2 Starting ansi-wl-pprint-0.6.8.2 Building ansi-wl-pprint-0.6.8.2 Completed ansi-wl-pprint-0.6.8.2 Starting attoparsec-0.13.2.2 Building attoparsec-0.13.2.2 Completed attoparsec-0.13.2.2 Starting parsers-0.12.9 Building parsers-0.12.9 Completed parsers-0.12.9 Completed vector-0.12.0.1 Starting inline-c-0.6.1.0 Building inline-c-0.6.1.0 Completed inline-c-0.6.1.0 Starting hasktorch-types-th-0.0.1.0 Building hasktorch-types-th-0.0.1.0 Completed hasktorch-types-th-0.0.1.0 Starting hasktorch-ffi-th-0.0.1.0 Failed to install hasktorch-ffi-th-0.0.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/hasktorch-ffi-th-0.0.1.0-4lcAtegMFYE947QUpmXww.log ): cabal: Entering directory '/tmp/cabal-tmp-4128/hasktorch-ffi-th-0.0.1.0' Configuring hasktorch-ffi-th-0.0.1.0... cabal: Missing dependency on a foreign library: * Missing (or bad) C library: ATen 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-4128/hasktorch-ffi-th-0.0.1.0' cabal: Error: some packages failed to install: hasktorch-ffi-th-0.0.1.0-4lcAtegMFYE947QUpmXww failed during the configure step. The exception was: ExitFailure 1