llvm includes don't work(?)
While compiling an application that requires llvm headers I've stumbled upon a problem: the header files weren't found, even though I had llvm10-dev installed and added to makedepends. I soon realized that <llvm/IR/IRBuilder.h>
doesn't exist, only <llvm10/llvm/IR/IRBuilder.h>
. However, after patching the code to change this, I got yet another error, this time directly from the headers themselves:
/usr/include/llvm10/llvm/IR/IRBuilder.h:17:10: fatal error: llvm-c/Types.h: No such file or directory
17 | #include "llvm-c/Types.h"
| ^~~~~~~~~~~~~~~~
Is this an issue with my package (as it built llvm itself by default and I'm trying to force it out of this behavior) or an issue with llvm? (Considering that no other package appears to be using any of the available llvm-dev packages, it might just be a previously-unnoticed bug.)
Some extra information that might help:
- I'm packaging SwiftShader, which by default builds all of its dependencies itself (hence the patches below)
- My APKBUILD (based off this AUR package) (not very complete!)
- Patch 1, Patch 2 (the title of patch 2 is a bit misleading, it should be "Don't depend on built-in llvm")