Build fails: no member named 'ArgAndResultAttrsOpInterface' in namespace 'mlir'
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 524
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 46
Description
I'm trying to build circt from the main branch and get this error:
```
build/tools/circt/include/circt/Dialect/SV/SV.h.inc:8517:287: error: no member named 'ArgAndResultAttrsOpInterface' in namespace 'mlir'
```
The build command:
```
cmake -G Ninja llvm/llvm -B build \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_TARGETS_TO_BUILD=host \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_EXTERNAL_PROJECTS=circt \
-DLLVM_EXTERNAL_CIRCT_SOURCE_DIR=$PWD \
-DCIRCT_SLANG_FRONTEND_ENABLED=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
ninja -C build
```
Using Apple clang version 17.0.0 (clang-1700.0.13.5).
I also tried a clean clone, making sure I had the correct llvm version checked out, but still no luck.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the provided CMake and Ninja commands, then inspect build/tools/circt/include/circt/Dialect/SV/SV.h.inc around line 8517. Check the selected LLVM/MLIR checkout and generated interface declarations first. Done means a clean CIRCT build completes with the reported Apple Clang environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100