cabal install libclang

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
$ cabal install libclang
Resolving dependencies...
Configuring LibClang-0.0.9...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for llvm-config... yes
checking for gcc... gcc
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 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 clang-c/Index.h usability... yes
checking clang-c/Index.h presence... yes
checking for clang-c/Index.h... yes
checking for clang_getClangVersion in -lclang... yes
configure: creating ./config.status
config.status: creating LibClang.buildinfo
config.status: creating test/Makefile
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Preprocessing library LibClang-0.0.9...
Warning: unable to find Foreign.GreenCard along the import path: 
  using built-in defaults instead.
Building LibClang-0.0.9...
[ 1 of 13] Compiling Clang.FFI        ( dist/build/Clang/FFI.hs, dist/build/Clang/FFI.o )
[ 2 of 13] Compiling Clang.File       ( src/Clang/File.hs, dist/build/Clang/File.o )
[ 3 of 13] Compiling Clang.Traversal  ( src/Clang/Traversal.hs, dist/build/Clang/Traversal.o )
[ 4 of 13] Compiling Clang.Debug      ( src/Clang/Debug.hs, dist/build/Clang/Debug.o )
[ 5 of 13] Compiling Clang.Source     ( src/Clang/Source.hs, dist/build/Clang/Source.o )
[ 6 of 13] Compiling Clang.Type       ( src/Clang/Type.hs, dist/build/Clang/Type.o )
[ 7 of 13] Compiling Clang.Cursor     ( src/Clang/Cursor.hs, dist/build/Clang/Cursor.o )
[ 8 of 13] Compiling Clang.CrossReference ( src/Clang/CrossReference.hs, dist/build/Clang/CrossReference.o )
[ 9 of 13] Compiling Clang.Diagnostic ( src/Clang/Diagnostic.hs, dist/build/Clang/Diagnostic.o )
[10 of 13] Compiling Clang.TranslationUnit ( src/Clang/TranslationUnit.hs, dist/build/Clang/TranslationUnit.o )
[11 of 13] Compiling Clang.Token      ( src/Clang/Token.hs, dist/build/Clang/Token.o )
[12 of 13] Compiling Clang.Completion ( src/Clang/Completion.hs, dist/build/Clang/Completion.o )
[13 of 13] Compiling Clang            ( src/Clang.hs, dist/build/Clang.o )

In file included from ./src/Clang/FFI_stub_ffi.h:6:0:
    0,
                     from src/Clang/FFI_stub_ffi.c:4:

/home/dons/lib/ghc-7.0.3/include/HsFFI.h:29:0:
     warning: "__STDC_LIMIT_MACROS" redefined [enabled by default]

<command-line>:0:0:
     note: this is the location of the previous definition
src/Clang/FFI_stub_ffi.c: In function ‘prim_getCString’:

src/Clang/FFI_stub_ffi.c:33:10:
     warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
src/Clang/FFI_stub_ffi.c: In function ‘prim_toggleCrashRecovery’:

src/Clang/FFI_stub_ffi.c:2181:1:
     warning: implicit declaration of function ‘clang_toggleCrashRecovery’ [-Wimplicit-function-declaration]
Registering LibClang-0.0.9...
Installing library in /home/dons/.cabal/lib/LibClang-0.0.9/ghc-7.0.3
Registering LibClang-0.0.9...