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... Downloading hs-zstd-0.1.1.0 Downloaded hs-zstd-0.1.1.0 Starting hs-zstd-0.1.1.0 Building hs-zstd-0.1.1.0 Failed to install hs-zstd-0.1.1.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/hs-zstd-0.1.1.0-1dl5DqDbtY55tCFlKUKhbq.log ): cabal: Entering directory '/tmp/cabal-tmp-29746/hs-zstd-0.1.1.0' Configuring hs-zstd-0.1.1.0... Preprocessing library for hs-zstd-0.1.1.0.. Building library for hs-zstd-0.1.1.0.. [ 1 of 10] Compiling Codec.Compression.Zstd.FFI.Types ( dist/build/Codec/Compression/Zstd/FFI/Types.hs, dist/build/Codec/Compression/Zstd/FFI/Types.o ) [ 2 of 10] Compiling Codec.Compression.Zstd.FFI ( Codec/Compression/Zstd/FFI.hs, dist/build/Codec/Compression/Zstd/FFI.o ) [ 3 of 10] Compiling Codec.Compression.Zstd.Base.Types ( Codec/Compression/Zstd/Base/Types.hs, dist/build/Codec/Compression/Zstd/Base/Types.o ) [ 4 of 10] Compiling Codec.Compression.Zstd.Base ( Codec/Compression/Zstd/Base.hs, dist/build/Codec/Compression/Zstd/Base.o ) [ 5 of 10] Compiling Codec.Compression.Zstd.Streaming ( Codec/Compression/Zstd/Streaming.hs, dist/build/Codec/Compression/Zstd/Streaming.o ) Codec/Compression/Zstd/Streaming.hs:92:19: warning: [-Wunused-matches] Defined but not used: ‘opos’ | 92 | finish cfp obfp opos dfp = do | ^^^^ Codec/Compression/Zstd/Streaming.hs:98:10: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a multi-way if alternative: Guards do not cover entire pattern space | 98 | if | leftover <= 0 -> do -- leftover will never be <0, but compiler does not know that | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 6 of 10] Compiling Codec.Compression.Zstd.Lazy ( Codec/Compression/Zstd/Lazy.hs, dist/build/Codec/Compression/Zstd/Lazy.o ) [ 7 of 10] Compiling Codec.Compression.Zstd.Types ( Codec/Compression/Zstd/Types.hs, dist/build/Codec/Compression/Zstd/Types.o ) [ 8 of 10] Compiling Codec.Compression.Zstd.Internal ( Codec/Compression/Zstd/Internal.hs, dist/build/Codec/Compression/Zstd/Internal.o ) [ 9 of 10] Compiling Codec.Compression.Zstd.Efficient ( Codec/Compression/Zstd/Efficient.hs, dist/build/Codec/Compression/Zstd/Efficient.o ) [10 of 10] Compiling Codec.Compression.Zstd ( Codec/Compression/Zstd.hs, dist/build/Codec/Compression/Zstd.o ) zstd/lib/decompress/zstd_ddict.c:24:10: error: fatal error: zstd_decompress_internal.h: No such file or directory #include "zstd_decompress_internal.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 24 | #include "zstd_decompress_internal.h" | ^ compilation terminated. `gcc' failed in phase `C Compiler'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-29746/hs-zstd-0.1.1.0' cabal: Error: some packages failed to install: hs-zstd-0.1.1.0-1dl5DqDbtY55tCFlKUKhbq failed during the building phase. The exception was: ExitFailure 1