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 Boolean-0.2.4 Starting NumInstances-1.4 Building NumInstances-1.4 Building Boolean-0.2.4 Completed Boolean-0.2.4 Starting StateVar-1.1.1.1 Completed NumInstances-1.4 Starting newtype-generics-0.5.3 Building StateVar-1.1.1.1 Building newtype-generics-0.5.3 Completed StateVar-1.1.1.1 Starting transformers-compat-0.6.2 Completed newtype-generics-0.5.3 Starting MemoTrie-0.6.9 Building transformers-compat-0.6.2 Building MemoTrie-0.6.9 Completed MemoTrie-0.6.9 Starting vector-space-0.15 Completed transformers-compat-0.6.2 Starting exceptions-0.10.0 Building vector-space-0.15 Building exceptions-0.10.0 Completed exceptions-0.10.0 Starting safe-exceptions-0.1.7.0 Building safe-exceptions-0.1.7.0 Completed vector-space-0.15 Completed safe-exceptions-0.1.7.0 Downloading chiphunk-0.1.0.1 Downloaded chiphunk-0.1.0.1 Starting chiphunk-0.1.0.1 Building chiphunk-0.1.0.1 Failed to install chiphunk-0.1.0.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/chiphunk-0.1.0.1-G8jPcHEFW3BKusz53pRjZW.log ): cabal: Entering directory '/tmp/cabal-tmp-23548/chiphunk-0.1.0.1' Configuring chiphunk-0.1.0.1... Preprocessing library for chiphunk-0.1.0.1.. Building library for chiphunk-0.1.0.1.. [ 1 of 13] Compiling Chiphunk.Low.Internal ( src/Chiphunk/Low/Internal.hs, dist/build/Chiphunk/Low/Internal.o ) [ 2 of 13] Compiling Chiphunk.Low.Math ( src/Chiphunk/Low/Math.hs, dist/build/Chiphunk/Low/Math.o ) [ 3 of 13] Compiling Chiphunk.Low.Types ( dist/build/Chiphunk/Low/Types.hs, dist/build/Chiphunk/Low/Types.o ) [ 4 of 13] Compiling Chiphunk.Low.Shape ( dist/build/Chiphunk/Low/Shape.hs, dist/build/Chiphunk/Low/Shape.o ) [ 5 of 13] Compiling Chiphunk.Low.Helper ( dist/build/Chiphunk/Low/Helper.hs, dist/build/Chiphunk/Low/Helper.o ) [ 6 of 13] Compiling Chiphunk.Low.Constraint ( dist/build/Chiphunk/Low/Constraint.hs, dist/build/Chiphunk/Low/Constraint.o ) [ 7 of 13] Compiling Chiphunk.Low.Callback ( dist/build/Chiphunk/Low/Callback.hs, dist/build/Chiphunk/Low/Callback.o ) [ 8 of 13] Compiling Chiphunk.Low.BB ( dist/build/Chiphunk/Low/BB.hs, dist/build/Chiphunk/Low/BB.o ) [ 9 of 13] Compiling Chiphunk.Low.Arbiter ( dist/build/Chiphunk/Low/Arbiter.hs, dist/build/Chiphunk/Low/Arbiter.o ) [10 of 13] Compiling Chiphunk.Low.Vect ( dist/build/Chiphunk/Low/Vect.hs, dist/build/Chiphunk/Low/Vect.o ) [11 of 13] Compiling Chiphunk.Low.Space ( dist/build/Chiphunk/Low/Space.hs, dist/build/Chiphunk/Low/Space.o ) [12 of 13] Compiling Chiphunk.Low.Body ( dist/build/Chiphunk/Low/Body.hs, dist/build/Chiphunk/Low/Body.o ) [13 of 13] Compiling Chiphunk.Low ( src/Chiphunk/Low.hs, dist/build/Chiphunk/Low.o ) Chipmunk2D-7.0.2/src/cpHashSet.c:23:19: error: fatal error: prime.h: No such file or directory #include "prime.h" ^ | 23 | #include "prime.h" | ^ compilation terminated. `gcc' failed in phase `C Compiler'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-23548/chiphunk-0.1.0.1' cabal: Error: some packages failed to install: chiphunk-0.1.0.1-G8jPcHEFW3BKusz53pRjZW failed during the building phase. The exception was: ExitFailure 1