*** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=/package/llvm-0.6.0.3 --verbose Configuring llvm-0.6.0.3... Flags chosen: bytestring-in-base=False Dependency base <2.0 || >=2.2: using base-4.2.0.0 Dependency bytestring >=0.9: using bytestring-0.9.1.6 Dependency directory -any: using directory-1.0.1.0 Dependency mtl -any: using mtl-1.1.0.2 Dependency process -any: using process-1.0.1.2 Using Cabal-1.8.0.2 compiled by ghc-6.12 Using compiler: ghc-6.12.1 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/llvm-0.6.0.3/ghc-6.12.1 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/llvm-0.6.0.3 Documentation installed in: /usr/local/tmp/archive/install/share/doc/llvm-0.6.0.3 Using alex version 2.3.1 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.3 found on system at: /usr/bin/gcc Using ghc version 6.12.1 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.12.1 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.7.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.16 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 lhc found No lhc-pkg found 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 sh configure --with-compiler=ghc --prefix=/usr/local/tmp/archive/install checking for g++... g++ 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 g++ accepts -g... yes checking for llvm-config... /usr/bin/llvm-config checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... 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 llvm-c/Core.h usability... yes checking llvm-c/Core.h presence... yes checking for llvm-c/Core.h... yes checking for LLVMModuleCreateWithName in -lLLVMCore... yes configure: creating ./config.status config.status: creating llvm.buildinfo Reading parameters from ./llvm.buildinfo *** setup haddock setup/setup haddock --verbose --html-location=/packages/archive/$pkg/$version/doc/html --hyperlink-source Reading parameters from ./llvm.buildinfo Running Haddock for llvm-0.6.0.3... /usr/local/bin/haddock --use-contents=/package/llvm-0.6.0.3 --ghc-version Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library llvm-0.6.0.3... Creating dist/build/LLVM/FFI (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=612 --cflag=-I/usr/include/llvm --lflag=-lLLVMAnalysis --lflag=-lLLVMBitWriter --lflag=-lLLVMBitReader --lflag=-lLLVMCore --lflag=-lLLVMTarget --lflag=-lLLVMSupport --lflag=-lLLVMSystem --lflag=-L/usr/lib/llvm/lib --lflag=-lpthread --lflag=-lffi --lflag=-ldl --lflag=-lm --lflag=-lLLVMX86AsmParser --lflag=-lLLVMX86AsmPrinter --lflag=-lLLVMX86CodeGen --lflag=-lLLVMSelectionDAG --lflag=-lLLVMAsmPrinter --lflag=-lLLVMX86Info --lflag=-lLLVMJIT --lflag=-lLLVMExecutionEngine --lflag=-lLLVMCodeGen --lflag=-lLLVMScalarOpts --lflag=-lLLVMTransformUtils --lflag=-lLLVMipa --lflag=-lLLVMAnalysis --lflag=-lLLVMTarget --lflag=-lLLVMMC --lflag=-lLLVMCore --lflag=-lLLVMSupport --lflag=-lLLVMSystem --lflag=-L/usr/lib/llvm/lib --lflag=-lstdc++ --cflag=-I/usr/local/lib/ghc-6.12.1/process-1.0.1.2/include --cflag=-I/usr/local/lib/ghc-6.12.1/directory-1.0.1.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/unix-2.4.0.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3/include --cflag=-I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1/include --cflag=-I/usr/local/lib/ghc-6.12.1/base-4.2.0.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/include --cflag=-I/usr/local/lib/ghc-6.12.1/include --lflag=-L/usr/local/lib/ghc-6.12.1/process-1.0.1.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/process-1.0.1.2 --lflag=-L/usr/local/tmp/archive/install/lib/mtl-1.1.0.2/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/tmp/archive/install/lib/mtl-1.1.0.2/ghc-6.12.1 --lflag=-L/usr/local/lib/ghc-6.12.1/directory-1.0.1.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/directory-1.0.1.0 --lflag=-L/usr/local/lib/ghc-6.12.1/unix-2.4.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/unix-2.4.0.0 --lflag=-lrt --lflag=-lutil --lflag=-ldl --lflag=-L/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3 --lflag=-L/usr/local/lib/ghc-6.12.1/old-locale-1.0.0.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/old-locale-1.0.0.2 --lflag=-L/usr/local/lib/ghc-6.12.1/filepath-1.1.0.3 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/filepath-1.1.0.3 --lflag=-L/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1 --lflag=-L/usr/local/lib/ghc-6.12.1/base-4.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/base-4.2.0.0 --lflag=-L/usr/local/lib/ghc-6.12.1/integer-gmp-0.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/integer-gmp-0.2.0.0 --lflag=-lgmp --lflag=-L/usr/local/lib/ghc-6.12.1/ghc-prim-0.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/ghc-prim-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1 --lflag=-lm --lflag=-lrt --lflag=-ldl --lflag=-L/usr/local/lib/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1 -o dist/build/LLVM/FFI/Core.hs LLVM/FFI/Core.hsc In file included from /usr/include/llvm-c/Core.h:36, from Core.hsc:368: /usr/include/llvm/Support/DataTypes.h:51:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" compiling dist/build/LLVM/FFI/Core_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=612 -I/usr/include/llvm -I/usr/local/lib/ghc-6.12.1/process-1.0.1.2/include -I/usr/local/lib/ghc-6.12.1/directory-1.0.1.0/include -I/usr/local/lib/ghc-6.12.1/unix-2.4.0.0/include -I/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3/include -I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/base-4.2.0.0/include -I/usr/local/lib/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/include/ dist/build/LLVM/FFI/Core_hsc_make.c -o dist/build/LLVM/FFI/Core_hsc_make.o *** Trying again with preferred-versions *** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=/package/llvm-0.6.0.3 --constraint=base<4 --constraint=parsec<3 --constraint=QuickCheck<2 --constraint=cabal-install<0.8 --verbose Configuring llvm-0.6.0.3... Flags chosen: bytestring-in-base=False Dependency base <2.0 || >=2.2 && <4: using base-3.0.3.2 Dependency bytestring >=0.9: using bytestring-0.9.1.6 Dependency directory -any: using directory-1.0.1.0 Dependency mtl -any: using mtl-1.1.0.2 Dependency process -any: using process-1.0.1.2 Using Cabal-1.8.0.2 compiled by ghc-6.12 Using compiler: ghc-6.12.1 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/llvm-0.6.0.3/ghc-6.12.1 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/llvm-0.6.0.3 Documentation installed in: /usr/local/tmp/archive/install/share/doc/llvm-0.6.0.3 Using alex version 2.3.1 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 1.11 found on system at: /usr/local/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.4.3 found on system at: /usr/bin/gcc Using ghc version 6.12.1 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.12.1 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.7.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.16 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 lhc found No lhc-pkg found 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 sh configure --with-compiler=ghc --prefix=/usr/local/tmp/archive/install checking for g++... g++ 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 g++ accepts -g... yes checking for llvm-config... /usr/bin/llvm-config checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... 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 llvm-c/Core.h usability... yes checking llvm-c/Core.h presence... yes checking for llvm-c/Core.h... yes checking for LLVMModuleCreateWithName in -lLLVMCore... yes configure: creating ./config.status config.status: creating llvm.buildinfo Reading parameters from ./llvm.buildinfo *** setup haddock setup/setup haddock --verbose --html-location=/packages/archive/$pkg/$version/doc/html --hyperlink-source Reading parameters from ./llvm.buildinfo Running Haddock for llvm-0.6.0.3... /usr/local/bin/haddock --use-contents=/package/llvm-0.6.0.3 --ghc-version Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library llvm-0.6.0.3... Creating dist/build/LLVM/FFI (and its parents) /usr/local/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-D__GLASGOW_HASKELL__=612 --cflag=-I/usr/include/llvm --lflag=-lLLVMAnalysis --lflag=-lLLVMBitWriter --lflag=-lLLVMBitReader --lflag=-lLLVMCore --lflag=-lLLVMTarget --lflag=-lLLVMSupport --lflag=-lLLVMSystem --lflag=-L/usr/lib/llvm/lib --lflag=-lpthread --lflag=-lffi --lflag=-ldl --lflag=-lm --lflag=-lLLVMX86AsmParser --lflag=-lLLVMX86AsmPrinter --lflag=-lLLVMX86CodeGen --lflag=-lLLVMSelectionDAG --lflag=-lLLVMAsmPrinter --lflag=-lLLVMX86Info --lflag=-lLLVMJIT --lflag=-lLLVMExecutionEngine --lflag=-lLLVMCodeGen --lflag=-lLLVMScalarOpts --lflag=-lLLVMTransformUtils --lflag=-lLLVMipa --lflag=-lLLVMAnalysis --lflag=-lLLVMTarget --lflag=-lLLVMMC --lflag=-lLLVMCore --lflag=-lLLVMSupport --lflag=-lLLVMSystem --lflag=-L/usr/lib/llvm/lib --lflag=-lstdc++ --cflag=-I/usr/local/lib/ghc-6.12.1/process-1.0.1.2/include --cflag=-I/usr/local/lib/ghc-6.12.1/directory-1.0.1.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/unix-2.4.0.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3/include --cflag=-I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1/include --cflag=-I/usr/local/lib/ghc-6.12.1/base-4.2.0.0/include --cflag=-I/usr/local/lib/ghc-6.12.1/include --cflag=-I/usr/local/lib/ghc-6.12.1/include --lflag=-L/usr/local/lib/ghc-6.12.1/process-1.0.1.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/process-1.0.1.2 --lflag=-L/usr/local/tmp/archive/install/lib/mtl-1.1.0.2/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/tmp/archive/install/lib/mtl-1.1.0.2/ghc-6.12.1 --lflag=-L/usr/local/lib/ghc-6.12.1/directory-1.0.1.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/directory-1.0.1.0 --lflag=-L/usr/local/lib/ghc-6.12.1/unix-2.4.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/unix-2.4.0.0 --lflag=-lrt --lflag=-lutil --lflag=-ldl --lflag=-L/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3 --lflag=-L/usr/local/lib/ghc-6.12.1/old-locale-1.0.0.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/old-locale-1.0.0.2 --lflag=-L/usr/local/lib/ghc-6.12.1/filepath-1.1.0.3 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/filepath-1.1.0.3 --lflag=-L/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1 --lflag=-L/usr/local/lib/ghc-6.12.1/base-3.0.3.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/base-3.0.3.2 --lflag=-L/usr/local/lib/ghc-6.12.1/syb-0.1.0.2 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/syb-0.1.0.2 --lflag=-L/usr/local/lib/ghc-6.12.1/base-4.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/base-4.2.0.0 --lflag=-L/usr/local/lib/ghc-6.12.1/integer-gmp-0.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/integer-gmp-0.2.0.0 --lflag=-lgmp --lflag=-L/usr/local/lib/ghc-6.12.1/ghc-prim-0.2.0.0 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1/ghc-prim-0.2.0.0 --lflag=-L/usr/local/lib/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1 --lflag=-lm --lflag=-lrt --lflag=-ldl --lflag=-L/usr/local/lib/ghc-6.12.1 --lflag=-Wl,-R,/usr/local/lib/ghc-6.12.1 -o dist/build/LLVM/FFI/Core.hs LLVM/FFI/Core.hsc In file included from /usr/include/llvm-c/Core.h:36, from Core.hsc:368: /usr/include/llvm/Support/DataTypes.h:51:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" compiling dist/build/LLVM/FFI/Core_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=612 -I/usr/include/llvm -I/usr/local/lib/ghc-6.12.1/process-1.0.1.2/include -I/usr/local/lib/ghc-6.12.1/directory-1.0.1.0/include -I/usr/local/lib/ghc-6.12.1/unix-2.4.0.0/include -I/usr/local/lib/ghc-6.12.1/old-time-1.0.0.3/include -I/usr/local/tmp/archive/install/lib/bytestring-0.9.1.6/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/base-4.2.0.0/include -I/usr/local/lib/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/include -I/usr/local/lib/ghc-6.12.1/include/ dist/build/LLVM/FFI/Core_hsc_make.c -o dist/build/LLVM/FFI/Core_hsc_make.o