Resolving dependencies... Configuring bindings-DSL-1.0.23... Configuring base-orphans-0.5.4... Building base-orphans-0.5.4... Building bindings-DSL-1.0.23... Installed base-orphans-0.5.4 Configuring ix-shapable-0.1.0... Configuring mtl-2.2.1... Installed bindings-DSL-1.0.23 Building ix-shapable-0.1.0... Building mtl-2.2.1... Configuring parallel-3.2.1.0... Installed ix-shapable-0.1.0 Building parallel-3.2.1.0... Configuring lazysmallcheck-0.6... Installed mtl-2.2.1 Configuring random-1.1... Installed parallel-3.2.1.0 Building lazysmallcheck-0.6... Building random-1.1... Configuring primitive-0.6.1.0... Installed lazysmallcheck-0.6 Building primitive-0.6.1.0... Configuring storable-complex-0.2.2... Installed random-1.1 Building storable-complex-0.2.2... Configuring syb-0.6... Installed storable-complex-0.2.2 Building syb-0.6... Configuring utility-ht-0.0.12... Installed primitive-0.6.1.0 Building utility-ht-0.0.12... Installed syb-0.6 Configuring tf-random-0.5... Building tf-random-0.5... Configuring vector-0.11.0.0... Installed utility-ht-0.0.12 Building vector-0.11.0.0... Installed tf-random-0.5 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Configuring storable-record-0.0.3.1... Installed QuickCheck-2.9.2 Building storable-record-0.0.3.1... Installed storable-record-0.0.3.1 Configuring storable-tuple-0.0.3.2... Building storable-tuple-0.0.3.2... Configuring carray-0.1.6.5... Installed storable-tuple-0.0.3.2 Installed vector-0.11.0.0 Building carray-0.1.6.5... Installed carray-0.1.6.5 Configuring CV-0.3.5.1... Building CV-0.3.5.1... Failed to install CV-0.3.5.1 Build log ( /home/builder/.cabal/logs/CV-0.3.5.1.log ): cabal: Entering directory '/tmp/cabal-tmp-29168/CV-0.3.5.1' Configuring CV-0.3.5.1... Building CV-0.3.5.1... Preprocessing library CV-0.3.5.1... Types.hsc: In function ‘main’: Types.hsc:53:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:53:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:53:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:76:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:76:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:76:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:93:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:93:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:93:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:121:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:121:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:121:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:126:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:126:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:126:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:133:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:133:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:133:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:138:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:138:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:138:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:148:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:148:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:148:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:166:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:166:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:166:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:199:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:199:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:199:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:205:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:205:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:205:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:271:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:271:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:271:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:279:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:279:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] Types.hsc:279:5: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] dist/build/CV/Bindings/Types_hsc_make.o: In function `wrapExtractMSER': Types_hsc_make.c:(.text+0x152e): undefined reference to `cvExtractMSER' collect2: error: ld returned 1 exit status linking dist/build/CV/Bindings/Types_hsc_make.o failed (exit code 1) command was: /usr/bin/gcc dist/build/CV/Bindings/Types_hsc_make.o dist/build/CV/Bindings/Types_hsc_utils.o -o dist/build/CV/Bindings/Types_hsc_make -fno-stack-protector -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_video -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/vector-0.11.0.0-6uB77qGCxR6GPLxI2sqsX3 -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/vector-0.11.0.0-6uB77qGCxR6GPLxI2sqsX3 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/unix-2.7.2.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/unix-2.7.2.0 -lrt -lutil -ldl -lpthread -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-tuple-0.0.3.2-1vTmTB7jFu84ZjbocCbgCg -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-tuple-0.0.3.2-1vTmTB7jFu84ZjbocCbgCg -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-record-0.0.3.1-3EVGGbndqBO3qPXstTdHJg -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-record-0.0.3.1-3EVGGbndqBO3qPXstTdHJg -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/utility-ht-0.0.12-IQc75ZjtSJC6jKWDjW00eb -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/utility-ht-0.0.12-IQc75ZjtSJC6jKWDjW00eb -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-complex-0.2.2-28gzydoTXqHLeCMQqwA3hl -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/storable-complex-0.2.2-28gzydoTXqHLeCMQqwA3hl -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/parallel-3.2.1.0-6VcN0yUHtcs831TgbJiSSi -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/parallel-3.2.1.0-6VcN0yUHtcs831TgbJiSSi -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/mtl-2.2.1-6qsR1PHUy5lL47Hpoa4jCM -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/mtl-2.2.1-6qsR1PHUy5lL47Hpoa4jCM -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/lazysmallcheck-0.6-8Q9doF7CdPtIDMO9qhPDtU -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/lazysmallcheck-0.6-8Q9doF7CdPtIDMO9qhPDtU -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/carray-0.1.6.5-Foob3dgFHQV3kCRFX3Wjld -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/carray-0.1.6.5-Foob3dgFHQV3kCRFX3Wjld -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/syb-0.6-C65vWCsht6A8uLstpQIXyj -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/syb-0.6-C65vWCsht6A8uLstpQIXyj -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/ix-shapable-0.1.0-BQsLhC9o0jW3RDeKo70Hz4 -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/ix-shapable-0.1.0-BQsLhC9o0jW3RDeKo70Hz4 -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/bindings-DSL-1.0.23-GUrVdpTUVQC2JWoov2sGwA -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/bindings-DSL-1.0.23-GUrVdpTUVQC2JWoov2sGwA -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/binary-0.8.3.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/binary-0.8.3.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/bytestring-0.10.8.1 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/bytestring-0.10.8.1 -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/base-orphans-0.5.4-5IQvrjd7gNP548VkOOyIq6 -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/base-orphans-0.5.4-5IQvrjd7gNP548VkOOyIq6 -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/QuickCheck-2.9.2-AzbjWrJo3WFD60ZxKurQ3s -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/QuickCheck-2.9.2-AzbjWrJo3WFD60ZxKurQ3s -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/tf-random-0.5-4z8OJUaXC1FRNfrLPFWAD -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/primitive-0.6.1.0-Ip44DqhfCp21tTUYbecwa -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/transformers-0.5.2.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/transformers-0.5.2.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-haskell-2.11.0.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-haskell-2.11.0.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/pretty-1.1.3.3 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/pretty-1.1.3.3 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/ghc-boot-th-8.0.1.20161018 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/ghc-boot-th-8.0.1.20161018 -L/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/random-1.1-54KmMHXjttlERYcr1mvsAe -Wl,-R,/home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-8.0.1.20161018/random-1.1-54KmMHXjttlERYcr1mvsAe -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/time-1.6.0.1 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/time-1.6.0.1 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/containers-0.5.7.1 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/containers-0.5.7.1 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/deepseq-1.4.2.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/deepseq-1.4.2.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/array-0.5.1.1 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/array-0.5.1.1 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/base-4.9.0.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/base-4.9.0.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/integer-gmp-1.0.0.1 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/integer-gmp-1.0.0.1 -lgmp -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/ghc-prim-0.5.0.0 -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/ghc-prim-0.5.0.0 -L/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/rts -Wl,-R,/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/rts -lm -lrt -ldl cabal: Leaving directory '/tmp/cabal-tmp-29168/CV-0.3.5.1' cabal: Error: some packages failed to install: CV-0.3.5.1 failed during the building phase. The exception was: ExitFailure 1