Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failure on Mac OS X with GHC 7.0.2 #1

Closed
marcpaterno opened this issue Apr 17, 2011 · 2 comments
Closed

Install failure on Mac OS X with GHC 7.0.2 #1

marcpaterno opened this issue Apr 17, 2011 · 2 comments

Comments

@marcpaterno
Copy link

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.

@chetant
Copy link
Owner

chetant commented Apr 17, 2011

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.

@chetant chetant closed this as completed Apr 17, 2011
@marcpaterno
Copy link
Author

On Apr 16, 2011, at 10:11 PM, chetant wrote:

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.

Thank you for the quick response.

best regards,
Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants