Created
March 4, 2024 20:12
-
-
Save j2kun/68ac2099d9e6d4a983e614bf1521b2d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: /home/j2kun/fhe/heir/lib/Dialect/TensorExt/Transforms/BUILD:19:11: Compiling lib/Dialect/TensorExt/Transforms/InsertRotate.cpp failed: (Exit 1): clang failed: error executing command (from target //lib/Dialect/TensorExt/Transforms:InsertRotate) /usr/lib/llvm-17/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g ... (remaining 91 arguments skipped) | |
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging | |
In file included from lib/Dialect/TensorExt/Transforms/InsertRotate.cpp:10: | |
bazel-out/k8-dbg/bin/include/Dialect/TensorExt/IR/TensorExtPatterns.cpp.inc:122:18: error: invalid range expression of type 'mlir::OpResult'; no viable 'begin' function available | |
122 | for (auto v: (*tblgen_ConstantOp_0.getODSResults(0).begin())) { | |
| ^ ~ | |
In file included from lib/Dialect/TensorExt/Transforms/InsertRotate.cpp:1: | |
In file included from ./include/Dialect/TensorExt/Transforms/InsertRotate.h:4: | |
In file included from external/llvm-project/mlir/include/mlir/Pass/Pass.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Action.h:18: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Unit.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/OperationSupport.h:17: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Attributes.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/AttributeSupport.h:16: | |
In file included from external/llvm-project/mlir/include/mlir/IR/MLIRContext.h:13: | |
In file included from external/llvm-project/mlir/include/mlir/Support/TypeID.h:21: | |
In file included from external/llvm-project/llvm/include/llvm/Support/Allocator.h:20: | |
external/llvm-project/llvm/include/llvm/ADT/SmallVector.h:954:33: error: no matching constructor for initialization of 'mlir::NamedAttribute' | |
954 | ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
bazel-out/k8-dbg/bin/include/Dialect/TensorExt/IR/TensorExtPatterns.cpp.inc:85:22: note: in instantiation of function template specialization 'llvm::SmallVectorImpl<mlir::NamedAttribute>::emplace_back<mlir::StringAttr, mlir::Value &>' requested here | |
85 | tblgen_attrs.emplace_back(rewriter.getStringAttr("shift"), tmpAttr); | |
| ^ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:204:3: note: candidate constructor not viable: no known conversion from 'mlir::Value' to 'Attribute' for 2nd argument | |
204 | NamedAttribute(StringAttr name, Attribute value); | |
| ^ ~~~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:238:3: note: candidate constructor not viable: no known conversion from 'mlir::Value' to 'Attribute' for 2nd argument | |
238 | NamedAttribute(Attribute name, Attribute value) : name(name), value(value) {} | |
| ^ ~~~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:202:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided | |
202 | class NamedAttribute { | |
| ^~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:202:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided | |
202 | class NamedAttribute { | |
| ^~~~~~~~~~~~~~ | |
In file included from lib/Dialect/TensorExt/Transforms/InsertRotate.cpp:1: | |
In file included from ./include/Dialect/TensorExt/Transforms/InsertRotate.h:4: | |
In file included from external/llvm-project/mlir/include/mlir/Pass/Pass.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Action.h:18: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Unit.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/OperationSupport.h:17: | |
In file included from external/llvm-project/mlir/include/mlir/IR/Attributes.h:12: | |
In file included from external/llvm-project/mlir/include/mlir/IR/AttributeSupport.h:16: | |
In file included from external/llvm-project/mlir/include/mlir/IR/MLIRContext.h:13: | |
In file included from external/llvm-project/mlir/include/mlir/Support/TypeID.h:21: | |
In file included from external/llvm-project/llvm/include/llvm/Support/Allocator.h:20: | |
external/llvm-project/llvm/include/llvm/ADT/SmallVector.h:569:15: error: no matching constructor for initialization of 'mlir::NamedAttribute' | |
569 | push_back(T(std::forward<ArgTypes>(Args)...)); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
external/llvm-project/llvm/include/llvm/ADT/SmallVector.h:952:20: note: in instantiation of function template specialization 'llvm::SmallVectorTemplateBase<mlir::NamedAttribute>::growAndEmplaceBack<mlir::StringAttr, mlir::Value &>' requested here | |
952 | return this->growAndEmplaceBack(std::forward<ArgTypes>(Args)...); | |
| ^ | |
bazel-out/k8-dbg/bin/include/Dialect/TensorExt/IR/TensorExtPatterns.cpp.inc:85:22: note: in instantiation of function template specialization 'llvm::SmallVectorImpl<mlir::NamedAttribute>::emplace_back<mlir::StringAttr, mlir::Value &>' requested here | |
85 | tblgen_attrs.emplace_back(rewriter.getStringAttr("shift"), tmpAttr); | |
| ^ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:204:3: note: candidate constructor not viable: no known conversion from 'mlir::Value' to 'Attribute' for 2nd argument | |
204 | NamedAttribute(StringAttr name, Attribute value); | |
| ^ ~~~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:238:3: note: candidate constructor not viable: no known conversion from 'mlir::Value' to 'Attribute' for 2nd argument | |
238 | NamedAttribute(Attribute name, Attribute value) : name(name), value(value) {} | |
| ^ ~~~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:202:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided | |
202 | class NamedAttribute { | |
| ^~~~~~~~~~~~~~ | |
external/llvm-project/mlir/include/mlir/IR/Attributes.h:202:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided | |
202 | class NamedAttribute { | |
| ^~~~~~~~~~~~~~ | |
3 errors generated. | |
Target //lib/Dialect/TensorExt/Transforms:InsertRotate failed to build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment