| Issue |
234321
|
| Summary |
[clang][CIR] clangCIRLoweringCommon target missing dependency on MLIRBuiltinAttributesIncGen
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
cianciosa
|
When building using parallel `make -j`, the `clangCIRLoweringCommon` target can be built before the `MLIRBuiltinAttributesIncGen`.
```
In file included from /Users/m4c/Projects/graph_framework/LLVM/clang/lib/CIR/Lowering/CIRPasses.cpp:13:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/BuiltinOps.h:16:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/Bytecode/BytecodeOpInterface.h:17:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/Bytecode/BytecodeImplementation.h:18:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/Diagnostics.h:16:
/Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/Location.h:138:10: fatal error: 'mlir/IR/BuiltinLocationAttributes.h.inc' file not found
138 | #include "mlir/IR/BuiltinLocationAttributes.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
```
In file included from /Users/m4c/Projects/graph_framework/LLVM/clang/lib/CIR/Lowering/LoweringHelpers.cpp:13:
In file included from /Users/m4c/Projects/graph_framework/LLVM/clang/include/clang/CIR/LoweringHelpers.h:15:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/BuiltinAttributes.h:12:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/BuiltinAttributeInterfaces.h:12:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/AffineMap.h:18:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/Value.h:17:
In file included from /Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/UseDefLists.h:16:
/Users/m4c/Projects/graph_framework/LLVM/llvm/../mlir/include/mlir/IR/Location.h:138:10: fatal error: 'mlir/IR/BuiltinLocationAttributes.h.inc' file not found
138 | #include "mlir/IR/BuiltinLocationAttributes.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Adding `MLIRBuiltinAttributesIncGen` to
https://github.com/llvm/llvm-project/blob/fc9215428138c4d9238486c2bdbea192b6107b65/clang/lib/CIR/Lowering/CMakeLists.txt#L6
should fix this.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs