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

What is the trick to install this package? #24

Closed
scan opened this issue Nov 23, 2011 · 3 comments
Closed

What is the trick to install this package? #24

scan opened this issue Nov 23, 2011 · 3 comments

Comments

@scan
Copy link

scan commented Nov 23, 2011

I have tried it with a self-built llvm, both the configure and cmake way, I have tried version 2.8 and 2.9, I have tried the ubuntu packages llvm-dev. But with every of these installs, cabal install llvm replied the same way:

checking llvm-c/Core.h usability... yes
checking llvm-c/Core.h presence... yes
checking for llvm-c/Core.h... yes
checking llvm/Support/DynamicLibrary.h usability... yes
checking llvm/Support/DynamicLibrary.h presence... yes
checking for llvm/Support/DynamicLibrary.h... yes
checking for LLVMModuleCreateWithName in -lLLVMCore... no
checking for LLVMModuleCreateWithName in -lLLVMCore... no
configure: error: could not find LLVM C bindings
cabal: Error: some packages failed to install:
llvm-0.10.0.1 failed during the configure step. The exception was:
ExitFailure 1

The funny detail is, I've made it work on my home-desktop just recently, with a self-built llvm 2.9. But I have no idea how.

What is the magic trick to get this package to install?

@bos
Copy link
Owner

bos commented Jan 13, 2012

I don't have enough details to help. I just built it on Debian using the system llvm-dev without problems.

@bos bos closed this as completed Jan 13, 2012
@iainlane
Copy link

I just got this on Ubuntu precise. I'm afraid I lost my config.log, but the problem is that configure.ac tells the test program for LLVMModuleCreateWithName to link with libLLVMSupport.a, which doesn't exist at least on 2.9, so the configure process barfs. You can simply remove this linkage as the function you are probing for is in libLLVMCore.a on both 2.9 and 3.0.

Cheers.

@iainlane
Copy link

(just occurs to me that this was perhaps once necessary on older versions of LLVM, so perhaps link with it if the without case fails)

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

3 participants