Resolving dependencies... Configuring mtl-2.2.1... Configuring stm-2.4.4.1... Building mtl-2.2.1... Building stm-2.4.4.1... Installed stm-2.4.4.1 Configuring transformers-compat-0.5.1.4... Building transformers-compat-0.5.1.4... Configuring zeromq3-haskell-0.2... Installed mtl-2.2.1 Building zeromq3-haskell-0.2... Failed to install zeromq3-haskell-0.2 Build log ( /home/builder/.cabal/logs/zeromq3-haskell-0.2.log ): cabal: Entering directory '/tmp/cabal-tmp-23914/zeromq3-haskell-0.2' Configuring zeromq3-haskell-0.2... Building zeromq3-haskell-0.2... Preprocessing library zeromq3-haskell-0.2... Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc:50:0: warning: "hsc_alignment" redefined [enabled by default] In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:88:0: note: this is the location of the previous definition #define hsc_alignment(t...) \ ^ Base.hsc: In function ‘main’: Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** Base.hsc:12:2: error: #error *** INVALID 0MQ VERSION (must be 3.x) *** In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/System/ZMQ3/Base_hsc_make.c:1: /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:72:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:20:5: note: in expansion of macro ‘hsc_peek’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:76:24: error: ‘zmq_msg_t’ has no member named ‘_’ (long) offsetof (t, f)); ^ Base.hsc:21:5: note: in expansion of macro ‘hsc_poke’ In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: Base.hsc:77:50: error: ‘ZMQ_DELAY_ATTACH_ON_CONNECT’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:77:50: note: each undeclared identifier is reported only once for each function it appears in /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:89:50: error: ‘ZMQ_IPV4ONLY’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:92:50: error: ‘ZMQ_LAST_ENDPOINT’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:98:50: error: ‘ZMQ_MAXMSGSIZE’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:101:50: error: ‘ZMQ_MULTICAST_HOPS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:110:50: error: ‘ZMQ_RCVHWM’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:128:50: error: ‘ZMQ_ROUTER_MANDATORY’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:134:50: error: ‘ZMQ_SNDHWM’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:143:50: error: ‘ZMQ_TCP_ACCEPT_FILTER’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:146:50: error: ‘ZMQ_TCP_KEEPALIVE’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:149:50: error: ‘ZMQ_TCP_KEEPALIVE_CNT’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:152:50: error: ‘ZMQ_TCP_KEEPALIVE_IDLE’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:155:50: error: ‘ZMQ_TCP_KEEPALIVE_INTVL’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:161:50: error: ‘ZMQ_XPUB_VERBOSE’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:107:40: error: ‘ZMQ_IO_THREADS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:110:41: error: ‘ZMQ_MAX_SOCKETS’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:114:44: error: ‘ZMQ_EVENT_CONNECTED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:117:44: error: ‘ZMQ_EVENT_CONNECT_DELAYED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:120:44: error: ‘ZMQ_EVENT_CONNECT_RETRIED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:123:44: error: ‘ZMQ_EVENT_LISTENING’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:126:44: error: ‘ZMQ_EVENT_BIND_FAILED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:129:44: error: ‘ZMQ_EVENT_ACCEPTED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:132:44: error: ‘ZMQ_EVENT_ACCEPT_FAILED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:135:44: error: ‘ZMQ_EVENT_CLOSED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:138:44: error: ‘ZMQ_EVENT_CLOSE_FAILED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:141:44: error: ‘ZMQ_EVENT_DISCONNECTED’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:144:44: error: ‘ZMQ_EVENT_ALL’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:128:5: error: unknown type name ‘zmq_event_t’ Base.hsc:129:5: error: unknown type name ‘zmq_event_t’ In file included from dist/build/System/ZMQ3/Base_hsc_make.c:1:0: Base.hsc:134:34: error: ‘ZMQ_MORE’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ Base.hsc:140:38: error: ‘ZMQ_DONTWAIT’ undeclared (first use in this function) /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’ if ((x) < 0) \ ^ compiling dist/build/System/ZMQ3/Base_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/ZMQ3/Base_hsc_make.c -o dist/build/System/ZMQ3/Base_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=800 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/bytestring-0.10.8.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/base-4.9.0.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/integer-gmp-1.0.0.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/include/ cabal: Leaving directory '/tmp/cabal-tmp-23914/zeromq3-haskell-0.2' Installed transformers-compat-0.5.1.4 Configuring mmorph-1.0.9... Configuring transformers-base-0.4.4... Building mmorph-1.0.9... Building transformers-base-0.4.4... Configuring exceptions-0.8.3... Installed transformers-base-0.4.4 Building exceptions-0.8.3... Configuring monad-control-1.0.1.0... Installed mmorph-1.0.9 Building monad-control-1.0.1.0... Installed monad-control-1.0.1.0 Configuring lifted-base-0.2.3.8... Installed exceptions-0.8.3 Building lifted-base-0.2.3.8... Installed lifted-base-0.2.3.8 Configuring resourcet-1.1.9... Building resourcet-1.1.9... Installed resourcet-1.1.9 Configuring conduit-1.2.8... Building conduit-1.2.8... Installed conduit-1.2.8 cabal: Error: some packages failed to install: zeromq3-conduit-0.1.0.0 depends on zeromq3-haskell-0.2 which failed to install. zeromq3-haskell-0.2 failed during the building phase. The exception was: ExitFailure 1