[haskell-llvm] Linking to C bindings (llvm-0.10.0.1)

Henning Thielemann lemming at henning-thielemann.de
Thu Nov 22 09:21:27 GMT 2012


On Thu, 22 Nov 2012, Per Fredelius wrote:

> Hi all,
> 
> I'm trying to install llvm-0.10.0.1 (a dependency of Hydra) but I'm running into trouble making cabal find
> the c headers, aborting with the following error:
> 
> checking llvm-c/Core.h usability... no
> checking llvm-c/Core.h presence... no
> checking for llvm-c/Core.h... no
> configure: error: could not find LLVM C bindings
> 
> I suspect I'm missing some obvious detail when installing LLVM (2.9). 2.9 was built and installed from
> source into /usr/lib/llvm-2.9. My main suspicion is there is some path that needs to be set for the files
> above to be found as they are clearly present in /usr/lib/llvm-2.9/include.

Unfortunately, llvm does not use the pkg-config system that is natively 
supported by Cabal. Instead, llvm is shipped with its own llvm-config 
which is installed in a custom path. It may be a good idea to add 
llvm-config to the PATH before running 'cabal configure'.


More information about the Haskell-llvm mailing list