*** setup configure Configuring hfann-0.2... Dependency base >=2 && <4 && -any: using base-3.0.3.1 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/hfann-0.2/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/hfann-0.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/hfann-0.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library hfann-0.2... Creating dist/build/HFANN (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-ldoublefann --cflag=-I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.2/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.2/base-3.0.3.1 --lflag=-L/usr/local/lib/ghc-6.10.2/syb-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/base-4.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/integer-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/HFANN/Data.hs src/HFANN/Data.hsc Data.hsc: In function 'main': Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:170: error: 'FANN_STOPFUNC_MSE' undeclared (first use in this function) Data.hsc:170: error: (Each undeclared identifier is reported only once Data.hsc:170: error: for each function it appears in.) Data.hsc:173: error: 'FANN_STOPFUNC_BIT' undeclared (first use in this function) Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:203: error: 'FANN_GAUSSIAN_SYMMETRIC' undeclared (first use in this function) Data.hsc:215: error: 'FANN_LINEAR_PIECE' undeclared (first use in this function) Data.hsc:218: error: 'FANN_LINEAR_PIECE_SYMMETRIC' undeclared (first use in this function) compiling dist/build/HFANN/Data_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=610 -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR -I/usr/local/lib/ghc-6.10.2/hsc2hs-0.67/../include/ dist/build/HFANN/Data_hsc_make.c -o dist/build/HFANN/Data_hsc_make.o *** Trying again with preferred-versions *** setup configure Configuring hfann-0.2... Dependency base >=2 && <4 && -any && <4: using base-3.0.3.1 Using Cabal-1.6.0.1 compiled by ghc-6.8 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/hfann-0.2/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/hfann-0.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/hfann-0.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library hfann-0.2... Creating dist/build/HFANN (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=610 --lflag=-ldoublefann --cflag=-I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include --cflag=-I/usr/local/lib/ghc-6.10.2/include --cflag=-IPAPI_INCLUDE_DIR --lflag=-L/usr/local/lib/ghc-6.10.2/base-3.0.3.1 --lflag=-L/usr/local/lib/ghc-6.10.2/syb-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/base-4.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2/integer-0.1.0.1 --lflag=-L/usr/local/lib/ghc-6.10.2/ghc-prim-0.1.0.0 --lflag=-L/usr/local/lib/ghc-6.10.2 --lflag=-lm --lflag=-lffi --lflag=-lgmp --lflag=-ldl --lflag=-lrt -o dist/build/HFANN/Data.hs src/HFANN/Data.hsc Data.hsc: In function 'main': Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: conversion to incomplete type Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:131: error: invalid application of 'sizeof' to incomplete type 'enum fann_train_enum' Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: conversion to incomplete type Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:151: error: invalid application of 'sizeof' to incomplete type 'enum fann_errorfunc_enum' Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: conversion to incomplete type Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:168: error: invalid application of 'sizeof' to incomplete type 'enum fann_stopfunc_enum' Data.hsc:170: error: 'FANN_STOPFUNC_MSE' undeclared (first use in this function) Data.hsc:170: error: (Each undeclared identifier is reported only once Data.hsc:170: error: for each function it appears in.) Data.hsc:173: error: 'FANN_STOPFUNC_BIT' undeclared (first use in this function) Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: conversion to incomplete type Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:177: error: invalid application of 'sizeof' to incomplete type 'enum fann_activationfunc_enum' Data.hsc:203: error: 'FANN_GAUSSIAN_SYMMETRIC' undeclared (first use in this function) Data.hsc:215: error: 'FANN_LINEAR_PIECE' undeclared (first use in this function) Data.hsc:218: error: 'FANN_LINEAR_PIECE_SYMMETRIC' undeclared (first use in this function) compiling dist/build/HFANN/Data_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=610 -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR -I/usr/local/lib/ghc-6.10.2/hsc2hs-0.67/../include/ dist/build/HFANN/Data_hsc_make.c -o dist/build/HFANN/Data_hsc_make.o