Open MordragT opened 4 months ago
Hi @MordragT! Do you know if it is using an upstream version of clang-tblgen
(CLANG_TABLEGEN
in CMakeCache.txt
may tell us)? The DeviceConfigFile.inc
configuration uses a special option (-gen-dynamic-tables
) that is not in upstream, but we usually rely on building and using our own clang-tblgen
executable as part of the build.
@MordragT hi! Any updates here?
Hey I just tried it again. I haven't updated the repo because I then have to manually update also all the fetch-contents occurences to point to the correct source dirs (nix cannot use fetch-content), but I have taken a look at the CMakeCache.txt:
CLANG_TABLEGEN:STRING=clang-tblgen
LLVM_PARALLEL_TABLEGEN_JOBS:STRING=
LLVM_TABLEGEN_EXE:FILEPATH=/nix/store/rzib4gkiyp8gkhs46fddw6003qvnx6rn-intel-llvm-19.0.0-unstable-2024-04-15/bin/llvm-tblgen
CLANG_TABLEGEN_EXE:INTERNAL=clang-tblgen
This is everything I could find about table-gen. just for context this is the version I am currently trying to build:
pname = "intel-${name}";
version = "19.0.0-unstable-2024-04-15";
src = fetchFromGitHub {
rev = "06bd6bca82e1ba93e2e233cac9b86631e6c2d958";
owner = "intel";
repo = "llvm";
hash = "sha256-o3QERO8DRnHyQ84WBuDvj46qJT4ZVB3A94QHVIrriIU=";
};
When I find the time I will try it against the current master.
I don't think that this has anything to do with tablegen, but most likely it was an issue with our cmake files, i.e. actual missed dependency.
If my assumption is correct, then #13328 likely fixed that. @MordragT, could you please check if that change helps you? That's a one-liner, so full update shouldn't be required, you can just apply it locally or do a cherry-pick
Describe the bug
I am not able to build a standalone clang with my prebuilt llvm. These are the flags I use to build llvm:
And these are the flags for clang:
Here is the error message I am getting:
With my very limited knowledge I am suspecting something is going wrong with clang's tablegen ?
To reproduce
No response
Environment
No response
Additional context
I am trying to package intel llvm for Nixos. I have already sucessfully built llvm with inbuilt clang etc. with the following derivation:
Edit: This is actually an edited version in the original I had also clang enabled
But I am now trying to modularize it more.