Resolving dependencies... Configuring base-orphans-0.7... Configuring cabal-doctest-1.0.6... Building cabal-doctest-1.0.6... Building base-orphans-0.7... Installed base-orphans-0.7 Configuring either-unwrap-1.1... Installed cabal-doctest-1.0.6 Configuring mime-0.4.0.2... Building either-unwrap-1.1... Building mime-0.4.0.2... Installed either-unwrap-1.1 Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring semigroups-0.18.4... Installed mime-0.4.0.2 Configuring strptime-1.0.10... Building semigroups-0.18.4... Building strptime-1.0.10... Installed semigroups-0.18.4 Configuring text-icu-0.7.0.1... Building text-icu-0.7.0.1... Installed strptime-1.0.10 Configuring th-abstraction-0.2.6.0... Building th-abstraction-0.2.6.0... Installed th-abstraction-0.2.6.0 Configuring transformers-compat-0.6.2... Building transformers-compat-0.6.2... Installed transformers-compat-0.6.2 Configuring word8-0.1.3... Installed text-icu-0.7.0.1 Configuring old-time-1.1.0.3... Building word8-0.1.3... Building old-time-1.1.0.3... Installed word8-0.1.3 Configuring hslogger-1.2.10... Building hslogger-1.2.10... Installed old-time-1.1.0.3 Configuring tagged-0.8.5... Building tagged-0.8.5... Installed hslogger-1.2.10 Configuring contravariant-1.4.1... Building contravariant-1.4.1... Installed tagged-0.8.5 Configuring MissingH-1.4.0.1... Building MissingH-1.4.0.1... Installed contravariant-1.4.1 Configuring distributive-0.5.3... Building distributive-0.5.3... Installed distributive-0.5.3 Configuring comonad-5.0.3... Building comonad-5.0.3... Installed comonad-5.0.3 Configuring bifunctors-5.5.2... Building bifunctors-5.5.2... Installed MissingH-1.4.0.1 Installed bifunctors-5.5.2 Configuring profunctors-5.2.2... Configuring semigroupoids-5.2.2... Building profunctors-5.2.2... Building semigroupoids-5.2.2... Installed profunctors-5.2.2 Installed semigroupoids-5.2.2 Configuring either-5... Building either-5... Installed either-5 Configuring emailparse-0.2.0.10... Building emailparse-0.2.0.10... Failed to install emailparse-0.2.0.10 Build log ( /home/builder/.cabal/logs/ghc-8.2.2/emailparse-0.2.0.10-8QGQM63YnxM3cummAoSWva.log ): cabal: Entering directory '/tmp/cabal-tmp-4831/emailparse-0.2.0.10' Configuring emailparse-0.2.0.10... Preprocessing library for emailparse-0.2.0.10.. Building library for emailparse-0.2.0.10.. [ 1 of 10] Compiling Network.Mail.Parse.Decoders.FormatDecoders ( src/Network/Mail/Parse/Decoders/FormatDecoders.hs, dist/build/Network/Mail/Parse/Decoders/FormatDecoders.o ) [ 2 of 10] Compiling Network.Mail.Parse.Types ( src/Network/Mail/Parse/Types.hs, dist/build/Network/Mail/Parse/Types.o ) src/Network/Mail/Parse/Types.hs:67:1: warning: [-Worphans] Orphan instance: instance Eq ZonedTime To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 67 | instance Eq ZonedTime where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 3 of 10] Compiling Network.Mail.Parse.Utils ( src/Network/Mail/Parse/Utils.hs, dist/build/Network/Mail/Parse/Utils.o ) [ 4 of 10] Compiling Network.Mail.Parse.Parsers.Utils ( src/Network/Mail/Parse/Parsers/Utils.hs, dist/build/Network/Mail/Parse/Parsers/Utils.o ) [ 5 of 10] Compiling Network.Mail.Parse.Parsers.Multipart ( src/Network/Mail/Parse/Parsers/Multipart.hs, dist/build/Network/Mail/Parse/Parsers/Multipart.o ) [ 6 of 10] Compiling Network.Mail.Parse.Decoders.BodyDecoder ( src/Network/Mail/Parse/Decoders/BodyDecoder.hs, dist/build/Network/Mail/Parse/Decoders/BodyDecoder.o ) [ 7 of 10] Compiling Network.Mail.Parse.Parsers.HeaderFields ( src/Network/Mail/Parse/Parsers/HeaderFields.hs, dist/build/Network/Mail/Parse/Parsers/HeaderFields.o ) src/Network/Mail/Parse/Parsers/HeaderFields.hs:105:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘timeToLocalTime’: Patterns not matched: (_, _, _, []) (_, _, _, [_]) | 105 | timeToLocalTime (day, month, year, timeOfDay@(hours:minutes:_)) = | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 8 of 10] Compiling Network.Mail.Parse.Parsers.Header ( src/Network/Mail/Parse/Parsers/Header.hs, dist/build/Network/Mail/Parse/Parsers/Header.o ) [ 9 of 10] Compiling Network.Mail.Parse.Parsers.Message ( src/Network/Mail/Parse/Parsers/Message.hs, dist/build/Network/Mail/Parse/Parsers/Message.o ) [10 of 10] Compiling Network.Mail.Parse ( src/Network/Mail/Parse.hs, dist/build/Network/Mail/Parse.o ) csrc/codec.c:7:19: error: fatal error: codec.h: No such file or directory #include "codec.h" ^ | 7 | #include "codec.h" | ^ compilation terminated. `gcc' failed in phase `C Compiler'. (Exit code: 1) cabal: Leaving directory '/tmp/cabal-tmp-4831/emailparse-0.2.0.10' cabal: Error: some packages failed to install: emailparse-0.2.0.10-8QGQM63YnxM3cummAoSWva failed during the building phase. The exception was: ExitFailure 1