bscarlet / llvm-general

Rich LLVM bindings for Haskell (with transfer of LLVM IR to and from C++, detailed compilation pass control, etc.)
http://hackage.haskell.org/package/llvm-general
132 stars 38 forks source link

Could not resolve file #161

Closed cocreature closed 8 years ago

cocreature commented 8 years ago

Hey, I’m trying to fix the build error with llvm-3.7 but I get a really weird one on the c++ files

Could not resolve file /home/moritz/code/haskell/llvm-general/llvm-general/In file included from src/LLVM/General/Internal/FFI/InstructionC.cpp

I don’t really see what’s going on here, so I thought you might have more insight there.

bscarlet commented 8 years ago

I don't know what that means either.

cocreature commented 8 years ago

Alright, I’ll try to figure it out myself.

bscarlet commented 8 years ago

Please feel free to reopen this bug and/or post additional information as you find it. I'm still working on earlier llvm versions, so unless you do it'll be a while before I can even say I think what you're trying to do should work. If nothing else, I am curious where that error message came from, let along what it means.

cocreature commented 8 years ago

It looks like it was related to me trying to use stack to build instead of your shake script, using the shake script it works fine.

bscarlet commented 8 years ago

Thanks for the update. There's nothing particular special in that shake script - it's just a convenience layer on top of the standard Setup.hs interfaces for llvm-general-pure and llvm-general.