Resolving dependencies... Configuring base-orphans-0.5.4... Configuring cond-0.4.1.1... Building cond-0.4.1.1... Building base-orphans-0.5.4... Installed base-orphans-0.5.4 Configuring data-default-class-0.1.2.0... Building data-default-class-0.1.2.0... Configuring dlist-0.8.0.2... Installed cond-0.4.1.1 Building dlist-0.8.0.2... Configuring executable-path-0.0.3... Installed data-default-class-0.1.2.0 Building executable-path-0.0.3... Configuring ghc-paths-0.1.0.9... Installed executable-path-0.0.3 Configuring io-storage-0.3... Installed dlist-0.8.0.2 Building io-storage-0.3... Configuring mtl-2.2.1... Installed io-storage-0.3 Building mtl-2.2.1... Building ghc-paths-0.1.0.9... Configuring old-locale-1.0.0.7... Installed ghc-paths-0.1.0.9 Building old-locale-1.0.0.7... Configuring network-2.6.3.1... Installed mtl-2.2.1 Configuring prelude-extras-0.4.0.3... Installed old-locale-1.0.0.7 Building prelude-extras-0.4.0.3... Building network-2.6.3.1... Configuring parallel-3.2.1.0... Installed prelude-extras-0.4.0.3 Building parallel-3.2.1.0... Configuring random-1.1... Installed parallel-3.2.1.0 Building random-1.1... Configuring primitive-0.6.1.0... Installed network-2.6.3.1 Configuring semigroups-0.18.2... Installed random-1.1 Building primitive-0.6.1.0... Building semigroups-0.18.2... Configuring reflection-2.1.2... Installed semigroups-0.18.2 Building reflection-2.1.2... Configuring stm-2.4.4.1... Installed primitive-0.6.1.0 Building stm-2.4.4.1... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Configuring utf8-string-1.0.1.1... Installed reflection-2.1.2 Building text-1.2.2.1... Building utf8-string-1.0.1.1... Configuring transformers-compat-0.5.1.4... Installed utf8-string-1.0.1.1 Building transformers-compat-0.5.1.4... Configuring zeromq3-haskell-0.2... Installed transformers-compat-0.5.1.4 Building zeromq3-haskell-0.2... Configuring xdg-basedir-0.2.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-18191/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-18191/zeromq3-haskell-0.2' Building xdg-basedir-0.2.2... Installed xdg-basedir-0.2.2 Configuring data-default-instances-dlist-0.0.1... Building data-default-instances-dlist-0.0.1... Configuring data-default-instances-containers-0.0.1... Installed data-default-instances-dlist-0.0.1 Building data-default-instances-containers-0.0.1... Configuring data-default-instances-old-locale-0.0.1... Installed data-default-instances-containers-0.0.1 Building data-default-instances-old-locale-0.0.1... Configuring StateVar-1.1.0.4... Installed data-default-instances-old-locale-0.0.1 Building StateVar-1.1.0.4... Configuring vector-0.11.0.0... Installed text-1.2.2.1 Configuring tagged-0.8.5... Installed StateVar-1.1.0.4 Building vector-0.11.0.0... Building tagged-0.8.5... Configuring exceptions-0.8.3... Installed tagged-0.8.5 Building exceptions-0.8.3... Configuring dyre-0.8.12... Installed exceptions-0.8.3 Building dyre-0.8.12... Configuring transformers-base-0.4.4... Installed dyre-0.8.12 Building transformers-base-0.4.4... Installed transformers-base-0.4.4 Configuring data-default-0.7.1.1... Building data-default-0.7.1.1... Configuring distributive-0.5.0.2... Installed data-default-0.7.1.1 Building distributive-0.5.0.2... Configuring hashable-1.2.4.0... Installed distributive-0.5.0.2 Building hashable-1.2.4.0... Configuring monad-control-1.0.1.0... Installed vector-0.11.0.0 Installed hashable-1.2.4.0 Configuring unordered-containers-0.2.7.1... Building monad-control-1.0.1.0... Building unordered-containers-0.2.7.1... Configuring hashtables-1.2.1.0... Installed monad-control-1.0.1.0 Building hashtables-1.2.1.0... Configuring void-0.7.1... Installed unordered-containers-0.2.7.1 Building void-0.7.1... Installed hashtables-1.2.1.0 Configuring gtk2hs-buildtools-0.13.2.1... Building gtk2hs-buildtools-0.13.2.1... Installed void-0.7.1 Configuring contravariant-1.4... Building contravariant-1.4... Installed contravariant-1.4 Configuring comonad-5... Building comonad-5... Installed comonad-5 Configuring bifunctors-5.4.1... Building bifunctors-5.4.1... Installed bifunctors-5.4.1 Configuring semigroupoids-5.1... Building semigroupoids-5.1... Configuring profunctors-5.2... Installed gtk2hs-buildtools-0.13.2.1 Building profunctors-5.2... Installed semigroupoids-5.1 Configuring cairo-0.13.3.1... Building cairo-0.13.3.1... Configuring glib-0.13.4.1... Installed profunctors-5.2 Building glib-0.13.4.1... Installed cairo-0.13.3.1 Configuring free-4.12.4... Building free-4.12.4... Installed free-4.12.4 Configuring adjunctions-4.3... Building adjunctions-4.3... Installed glib-0.13.4.1 Configuring pango-0.13.3.1... Configuring gio-0.13.3.1... Installed adjunctions-4.3 Building pango-0.13.3.1... Building gio-0.13.3.1... Configuring kan-extensions-5.0.1... Installed pango-0.13.3.1 Building kan-extensions-5.0.1... Installed kan-extensions-5.0.1 Configuring lens-4.15.1... Building lens-4.15.1... Installed gio-0.13.3.1 Configuring gtk-0.14.6... Building gtk-0.14.6... Installed lens-4.15.1 Installed gtk-0.14.6 Configuring webkit-0.14.2.1... Building webkit-0.14.2.1... Installed webkit-0.14.2.1 cabal: Error: some packages failed to install: hbro-1.1.1.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