Skip to content

Instantly share code, notes, and snippets.

@scan
Created July 30, 2012 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scan/3205961 to your computer and use it in GitHub Desktop.
Save scan/3205961 to your computer and use it in GitHub Desktop.
$ cabal install llvm
Resolving dependencies...
Downloading llvm-base-3.0.1.0...
[1 of 1] Compiling Main ( /tmp/llvm-base-3.0.1.0-5657/llvm-base-3.0.1.0/Setup.hs, /tmp/llvm-base-3.0.1.0-5657/llvm-base-3.0.1.0/dist/setup/Main.o )
Linking /tmp/llvm-base-3.0.1.0-5657/llvm-base-3.0.1.0/dist/setup/setup ...
Configuring llvm-base-3.0.1.0...
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/local/bin/llvm-config
Target platform inferred as: x86_64-unknown-linux
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.0.1.0...
Preprocessing library llvm-base-3.0.1.0...
In file included from dist/build/LLVM/FFI/Analysis_hsc_make.c:1:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
Analysis.hsc: In function ‘main’:
Analysis.hsc:32:12: warning: string length ‘518’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
In file included from dist/build/LLVM/FFI/Analysis_hsc_utils.c:7:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from dist/build/LLVM/FFI/BitReader_hsc_make.c:1:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
BitReader.hsc: In function ‘main’:
BitReader.hsc:34:12: warning: string length ‘1003’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
In file included from dist/build/LLVM/FFI/BitReader_hsc_utils.c:7:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from dist/build/LLVM/FFI/BitWriter_hsc_make.c:1:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from dist/build/LLVM/FFI/BitWriter_hsc_utils.c:7:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
In file included from dist/build/LLVM/FFI/Core_hsc_make.c:1:0:
/usr/local/lib/ghc-7.4.1/template-hsc.h:34:20: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:40:24: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:59:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:85:19: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
/usr/local/lib/ghc-7.4.1/template-hsc.h:98:25: warning: ISO C does not permit named variadic macros [-Wvariadic-macros]
Core.hsc:38:5: error: invalid suffix "svn" on integer constant
Core.hsc:71:5: error: invalid suffix "svn" on integer constant
Core.hsc:89:5: error: invalid suffix "svn" on integer constant
Core.hsc:96:5: error: invalid suffix "svn" on integer constant
Core.hsc:301:5: error: invalid suffix "svn" on integer constant
Core.hsc:306:5: error: invalid suffix "svn" on integer constant
Core.hsc:482:5: error: invalid suffix "svn" on integer constant
Core.hsc:662:5: error: invalid suffix "svn" on integer constant
Core.hsc:1110:5: error: invalid suffix "svn" on integer constant
Core.hsc:1118:5: error: invalid suffix "svn" on integer constant
Core.hsc:1260:5: error: invalid suffix "svn" on integer constant
Core.hsc:1311:5: error: invalid suffix "svn" on integer constant
Core.hsc:1486:5: error: invalid suffix "svn" on integer constant
Core.hsc: In function ‘main’:
Core.hsc:38:5: error: invalid suffix "svn" on integer constant
Core.hsc:71:5: error: invalid suffix "svn" on integer constant
Core.hsc:89:5: error: invalid suffix "svn" on integer constant
Core.hsc:96:5: error: invalid suffix "svn" on integer constant
Core.hsc:301:5: error: invalid suffix "svn" on integer constant
Core.hsc:306:5: error: invalid suffix "svn" on integer constant
Core.hsc:482:5: error: invalid suffix "svn" on integer constant
Core.hsc:662:5: error: invalid suffix "svn" on integer constant
Core.hsc:1110:5: error: invalid suffix "svn" on integer constant
Core.hsc:1118:5: error: invalid suffix "svn" on integer constant
Core.hsc:1260:5: error: invalid suffix "svn" on integer constant
Core.hsc:1311:5: error: invalid suffix "svn" on integer constant
Core.hsc:1486:5: error: invalid suffix "svn" on integer constant
Core.hsc:1532:12: warning: string length ‘708’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:38:5: error: invalid suffix "svn" on integer constant
Core.hsc:71:5: error: invalid suffix "svn" on integer constant
Core.hsc:89:5: error: invalid suffix "svn" on integer constant
Core.hsc:96:5: error: invalid suffix "svn" on integer constant
Core.hsc:304:12: warning: string length ‘3674’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:301:5: error: invalid suffix "svn" on integer constant
Core.hsc:306:5: error: invalid suffix "svn" on integer constant
Core.hsc:490:12: warning: string length ‘3201’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:482:5: error: invalid suffix "svn" on integer constant
Core.hsc:553:12: warning: string length ‘1335’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:673:12: warning: string length ‘3382’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:662:5: error: invalid suffix "svn" on integer constant
Core.hsc:784:12: warning: string length ‘3523’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:839:12: warning: string length ‘1950’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:893:12: warning: string length ‘738’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1113:12: warning: string length ‘7215’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1110:5: error: invalid suffix "svn" on integer constant
Core.hsc:1118:5: error: invalid suffix "svn" on integer constant
Core.hsc:1268:12: warning: string length ‘7032’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1260:5: error: invalid suffix "svn" on integer constant
Core.hsc:1314:12: warning: string length ‘1708’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1311:5: error: invalid suffix "svn" on integer constant
Core.hsc:1361:12: warning: string length ‘633’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1489:12: warning: string length ‘4314’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
Core.hsc:1486:5: error: invalid suffix "svn" on integer constant
Core.hsc:1775:12: warning: string length ‘14899’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
compiling dist/build/LLVM/FFI/Core_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/LLVM/FFI/Core_hsc_make.c -o dist/build/LLVM/FFI/Core_hsc_make.o -fno-stack-protector -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=704 -Dlinux_BUILD_OS -Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -I/usr/local/include -Iinclude -I/usr/local/include -D_GNU_SOURCE -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DTARGET=X86 -DHS_LLVM_VERSION=301svn -I/usr/local/lib/ghc-7.4.1/base-4.5.0.0/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.4.1/include -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.4.1/include/
cabal: Error: some packages failed to install:
llvm-3.0.1.0 depends on llvm-base-3.0.1.0 which failed to install.
llvm-base-3.0.1.0 failed during the building phase. The exception was:
ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment