Build #3 for h2c-1.0.0

[all reports]

Package h2c-1.0.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2017-07-08 16:17:36.909657157 UTC
Compiler ghc-8.0.2
OS linux
Arch x86_64
Dependencies base-4.9.1.0, bytestring-0.10.8.1, mtl-2.2.1, resourcet-1.1.9
Flags none

Build log

[view raw]

Resolving dependencies...
Configuring stm-2.4.4.1...
Configuring mtl-2.2.1...
Building stm-2.4.4.1...
Building mtl-2.2.1...
Installed stm-2.4.4.1
Configuring transformers-compat-0.5.1.4...
Building transformers-compat-0.5.1.4...
Installed mtl-2.2.1
Installed transformers-compat-0.5.1.4
Configuring mmorph-1.1.0...
Configuring exceptions-0.8.3...
Building exceptions-0.8.3...
Building mmorph-1.1.0...
Configuring transformers-base-0.4.4...
Installed mmorph-1.1.0
Building transformers-base-0.4.4...
Installed exceptions-0.8.3
Installed transformers-base-0.4.4
Configuring monad-control-1.0.2.1...
Building monad-control-1.0.2.1...
Installed monad-control-1.0.2.1
Configuring lifted-base-0.2.3.11...
Building lifted-base-0.2.3.11...
Installed lifted-base-0.2.3.11
Configuring resourcet-1.1.9...
Building resourcet-1.1.9...
Installed resourcet-1.1.9
Configuring h2c-1.0.0...
Building h2c-1.0.0...
Failed to install h2c-1.0.0
Build log ( /home/builder/.cabal/logs/h2c-1.0.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-14076/h2c-1.0.0'
Configuring h2c-1.0.0...
Building h2c-1.0.0...
Preprocessing library h2c-1.0.0...
In file included from dist/build/System/IO/I2C_hsc_make.c:1:0:
I2C.hsc: In function ‘main’:
I2C.hsc:117:56: error: ‘I2C_M_TEN’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:117:56: note: each undeclared identifier is reported only once for each function it appears in
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:118:55: error: ‘I2C_M_RD’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:119:60: error: ‘I2C_M_NOSTART’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:120:65: error: ‘I2C_M_REV_DIR_ADDR’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:121:63: error: ‘I2C_M_IGNORE_NAK’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:122:63: error: ‘I2C_M_NO_RD_ACK’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:120:75: error: ‘I2C_FUNC_10BIT_ADDR’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:121:74: error: ‘I2C_FUNC_SMBUS_PEC’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:122:68: error: ‘I2C_FUNC_I2C’ undeclared (first use in this function)
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:96:10: note: in definition of macro ‘hsc_enum’
     if ((x) < 0)                                        \
          ^
I2C.hsc:162:15: error: invalid application of ‘sizeof’ to incomplete type ‘i2c_msg_t’
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
     hsc_printf("(%ld)", (long) sizeof(t));
                                       ^
I2C.hsc:170:15: error: invalid application of ‘sizeof’ to incomplete type ‘i2c_msg_t’
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
     hsc_printf("(%ld)", (long) sizeof(t));
                                       ^
I2C.hsc:178:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:179:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:180:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:181:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
In file included from dist/build/System/IO/I2C_hsc_make.c:1:0:
I2C.hsc:185:15: error: invalid application of ‘sizeof’ to incomplete type ‘i2c_msg_t’
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
     hsc_printf("(%ld)", (long) sizeof(t));
                                       ^
I2C.hsc:187:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:188:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:189:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:190:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
In file included from dist/build/System/IO/I2C_hsc_make.c:1:0:
I2C.hsc:218:15: error: invalid application of ‘sizeof’ to incomplete type ‘i2c_msg_t’
/opt/ghc/8.0.2/lib/ghc-8.0.2/template-hsc.h:86:39: note: in definition of macro ‘hsc_size’
     hsc_printf("(%ld)", (long) sizeof(t));
                                       ^
I2C.hsc:219:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
I2C.hsc:220:5: error: invalid use of incomplete typedef ‘i2c_msg_t’
compiling dist/build/System/IO/I2C_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/System/IO/I2C_hsc_make.c -o dist/build/System/IO/I2C_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 -Icfiles -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/opt/ghc/8.0.2/lib/ghc-8.0.2/bytestring-0.10.8.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.2/base-4.9.1.0/include -I/opt/ghc/8.0.2/lib/ghc-8.0.2/integer-gmp-1.0.0.1/include -I/opt/ghc/8.0.2/lib/ghc-8.0.2/include -I/opt/ghc/8.0.2/lib/ghc-8.0.2/include/
cabal: Leaving directory '/tmp/cabal-tmp-14076/h2c-1.0.0'
cabal: Error: some packages failed to install:
h2c-1.0.0 failed during the building phase. The exception was:
ExitFailure 1