Resolving dependencies... [1 of 1] Compiling Main ( /tmp/llvm-base-3.2.0.2-4967/llvm-base-3.2.0.2/Setup.hs, /tmp/llvm-base-3.2.0.2-4967/llvm-base-3.2.0.2/dist/setup/Main.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.4.0.1 ... linking ... done. Loading package deepseq-1.3.0.1 ... linking ... done. Loading package containers-0.5.0.0 ... linking ... done. Loading package filepath-1.3.0.1 ... linking ... done. Loading package old-locale-1.0.0.5 ... linking ... done. Loading package time-1.4.0.1 ... linking ... done. Loading package bytestring-0.10.0.2 ... linking ... done. Loading package unix-2.6.0.1 ... linking ... done. Loading package directory-1.2.0.1 ... linking ... done. Loading package old-time-1.1.0.1 ... linking ... done. Loading package pretty-1.1.1.0 ... linking ... done. Loading package process-1.1.0.2 ... linking ... done. Loading package Cabal-1.16.0.3 ... linking ... done. Loading package template-haskell ... linking ... done. Linking /tmp/llvm-base-3.2.0.2-4967/llvm-base-3.2.0.2/dist/setup/setup ... Configuring llvm-base-3.2.0.2... configure: WARNING: unrecognized options: --with-gcc checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 Target platform inferred as: x86_64-unknown-linux found LLVM version 3.0 checking for library containing LLVMModuleCreateWithName... -lLLVM-3.0 checking how to run the C++ preprocessor... g++ -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 llvm/ADT/StringRef.h usability... yes checking llvm/ADT/StringRef.h presence... yes checking for llvm/ADT/StringRef.h... yes checking for llvm/Support/DynamicLibrary.h... yes checking for LLVMModuleCreateWithName in -lLLVMCore... yes configure: creating ./config.status config.status: creating llvm-base.buildinfo config.status: creating include/hs_llvm_config.h configure: WARNING: unrecognized options: --with-gcc Building llvm-base-3.2.0.2... Preprocessing library llvm-base-3.2.0.2... cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] /usr/bin/ld: warning: libffi.so.5, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libLLVM-3.0.so, may conflict with libffi.so.6 cc1: warning: command line option ‘-Woverloaded-virtual’ is valid for C++/ObjC++ but not for C [enabled by default] Linker.hsc:9:27: fatal error: llvm-c/Linker.h: No such file or directory compilation terminated. compiling dist/build/LLVM/FFI/Linker_hsc_make.c failed (exit code 1) command was: /usr/bin/gcc -c dist/build/LLVM/FFI/Linker_hsc_make.c -o dist/build/LLVM/FFI/Linker_hsc_make.o -fno-stack-protector -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=706 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/lib/llvm-3.0/include -Iinclude -I/usr/lib/llvm-3.0/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fPIC -I/usr/lib/llvm-3.0/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -I/usr/lib/llvm-3.0/include -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DTARGET=X86 -DHS_LLVM_VERSION=300 -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/base-4.6.0.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.6.3/include/ Failed to install llvm-base-3.2.0.2 cabal: Error: some packages failed to install: llvm-base-3.2.0.2 failed during the building phase. The exception was: ExitFailure 1