You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing libclang using cabal fails for me. Here are the messages I received:
$ cabal install libclang
Resolving dependencies...
Configuring LibClang-0.0.2...
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... /usr/bin/grep
checking for egrep... /usr/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
configure: creating ./config.status
config.status: creating LibClang.buildinfo
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Preprocessing library LibClang-0.0.2...
Warning: unable to find Foreign.GreenCard along the import path:
using built-in defaults instead.
greencard: user error ("src/Clang/FFI.gc", proc. spec "clang_getFileTime", line 100:
Don't know how to unmarshall (word64 res1)
)
cabal: Error: some packages failed to install:
LibClang-0.0.2 failed during the building phase. The exception was:
ExitFailure 1
Here is the other information I have that I believe may be relevant:
$ type llvm-config
llvm-config is /opt/local/bin/llvm-config
$ llvm-config --version
2.9
$ uname -a
Darwin thomas 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.2
$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
Any guidance for how to proceed would be appreciated.
The text was updated successfully, but these errors were encountered:
Please update cabal (cabal update) and try again.
That's a bug from 0.0.7 and before, should be resolved with 0.0.8 along with proper garbage collected objects.
Please update cabal (cabal update) and try again.
That's a bug from 0.0.7 and before, should be resolved with 0.0.8 along with proper garbage collected objects.
Reply to this email directly or view it on GitHub: #1 (comment)
Hello Chetan,
I have updated cabal, and libclang version 0.0.8 solves the issue.
Installing libclang using cabal fails for me. Here are the messages I received:
$ cabal install libclang
Resolving dependencies...
Configuring LibClang-0.0.2...
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... /usr/bin/grep
checking for egrep... /usr/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
configure: creating ./config.status
config.status: creating LibClang.buildinfo
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
Preprocessing library LibClang-0.0.2...
Warning: unable to find Foreign.GreenCard along the import path:
using built-in defaults instead.
greencard: user error ("src/Clang/FFI.gc", proc. spec "clang_getFileTime", line 100:
Don't know how to unmarshall (word64 res1)
)
cabal: Error: some packages failed to install:
LibClang-0.0.2 failed during the building phase. The exception was:
ExitFailure 1
Here is the other information I have that I believe may be relevant:
$ type llvm-config
llvm-config is /opt/local/bin/llvm-config
$ llvm-config --version
2.9
$ uname -a
Darwin thomas 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:16:10 PST 2011; root:xnu-1504.9.37~1/RELEASE_X86_64 x86_64
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.2
$ cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
Any guidance for how to proceed would be appreciated.
The text was updated successfully, but these errors were encountered: