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 hhwloc-0.1.0 Building hhwloc-0.1.0 Failed to install hhwloc-0.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hhwloc-0.1.0-3pZmvlFINqvERk8KEbLi9O.log ): cabal: Entering directory '/tmp/cabal-tmp-5377/hhwloc-0.1.0' Configuring hhwloc-0.1.0... Preprocessing library for hhwloc-0.1.0.. Libhwloc.hsc:89:10: fatal error: hwloc.h: No such file or directory compilation terminated. compiling dist/build/System/Libhwloc_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/Libhwloc_hsc_make.c -o dist/build/System/Libhwloc_hsc_make.o -fno-stack-protector -fno-stack-protector -fuse-ld=gold -D__GLASGOW_HASKELL__=806 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.6.3/lib/ghc-8.6.3/base-4.12.0.0/include -I/opt/ghc/8.6.3/lib/ghc-8.6.3/integer-gmp-1.0.2.0/include -I/opt/ghc/8.6.3/lib/ghc-8.6.3/include -I/opt/ghc/8.6.3/lib/ghc-8.6.3/include/ cabal: Leaving directory '/tmp/cabal-tmp-5377/hhwloc-0.1.0' cabal: Error: some packages failed to install: hhwloc-0.1.0-3pZmvlFINqvERk8KEbLi9O failed during the building phase. The exception was: ExitFailure 1