Resolving dependencies... Configuring libexpect-0.3.2... Building libexpect-0.3.2... Failed to install libexpect-0.3.2 Build log ( /home/builder/.cabal/logs/libexpect-0.3.2.log ): cabal: Entering directory '/tmp/cabal-tmp-22614/libexpect-0.3.2' Configuring libexpect-0.3.2... configure: WARNING: unrecognized options: --with-compiler checking for gcc... /usr/bin/gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /usr/bin/gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking expect.h usability... no checking expect.h presence... no checking for expect.h... no checking tcl8.3/expect.h usability... no checking tcl8.3/expect.h presence... no checking for tcl8.3/expect.h... no checking tcl8.4/expect.h usability... no checking tcl8.4/expect.h presence... no checking for tcl8.4/expect.h... no checking tcl8.5/expect.h usability... no checking tcl8.5/expect.h presence... no checking for tcl8.5/expect.h... no configure: creating ./config.status config.status: creating System/Expect/expect_config.h configure: WARNING: unrecognized options: --with-compiler Building libexpect-0.3.2... Preprocessing library libexpect-0.3.2... ExpectBindings.hsc:10:0: warning: "hsc_alignment" redefined [enabled by default] In file included from dist/build/System/Expect/ExpectBindings_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...) \ ^ In file included from /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:4:0, from dist/build/System/Expect/ExpectBindings_hsc_make.c:1: ExpectBindings.hsc: In function ‘main’: ExpectBindings.hsc:10:92: error: field ‘y__’ has incomplete type ExpectBindings.hsc:20:5: note: in expansion of macro ‘hsc_alignment’ In file included from dist/build/System/Expect/ExpectBindings_hsc_make.c:1:0: ExpectBindings.hsc:21:15: error: invalid application of ‘sizeof’ to incomplete type ‘exp_case’ /opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’ hsc_printf("(%ld)", (long) sizeof(t)); ^ ExpectBindings.hsc:23:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:24:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:25:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:26:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:29:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:30:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:31:5: error: invalid use of incomplete typedef ‘exp_case’ ExpectBindings.hsc:32:5: error: invalid use of incomplete typedef ‘exp_case’ In file included from dist/build/System/Expect/ExpectBindings_hsc_make.c:1:0: ExpectBindings.hsc:35:38: error: ‘exp_exact’ 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) \ ^ ExpectBindings.hsc:35:38: 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) \ ^ ExpectBindings.hsc:38:39: error: ‘exp_regexp’ 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) \ ^ ExpectBindings.hsc:41:37: error: ‘exp_glob’ 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) \ ^ ExpectBindings.hsc:44:37: error: ‘exp_null’ 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) \ ^ ExpectBindings.hsc:47:36: error: ‘exp_end’ 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/Expect/ExpectBindings_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/System/Expect/ExpectBindings_hsc_make.c -o dist/build/System/Expect/ExpectBindings_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 -ISystem/Expect -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/unix-2.7.2.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.1.20161018/time-1.6.0.1/include -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-22614/libexpect-0.3.2' cabal: Error: some packages failed to install: libexpect-0.3.2 failed during the building phase. The exception was: ExitFailure 1