[llvm-bugs] [Bug 49528] New: error: no member named 'Kind' in 'mlir::Value'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 10 17:31:22 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49528

            Bug ID: 49528
           Summary: error: no member named 'Kind' in 'mlir::Value'
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: nnelson at infowest.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Xubuntu 20.10.

>From the Ubuntu distribution
clang++ --version
Ubuntu clang version 11.0.0-2

git command executed close to 9pm Mar. 9, 2021, Mountain Standard Time.
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
mkdir build
cd build

cmake -G Ninja
-DLLVM_ENABLE_PROJECTS="clang;llvm;clang-tools-extra;compiler-rt;debuginfo-tests;flang;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;parallel-libs;polly;pstl;utils"
-DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE="Release" -DLLVM_TARGETS_TO_BUILD=X86
-DLLVM_ENABLE_LIBPFM=OFF -DRUN_HAVE_GNU_POSIX_REGEX=0
-DLLVM_LIBC_ENABLE_LINTING=ON -Wno-dev ../llvm &> ~/Documents/cmake.log

ninja -j 31 &> ~/Documents/ninja.log

>From ninja.log
/home/nnelson/Documents/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp:13:33:
error: no member named 'Kind' in 'mlir::Value'
                   mlir::Value::Kind::TrailingOpResult});
                   ~~~~~~~~~~~~~^
/home/nnelson/Documents/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/mlir-support.cpp:27:23:
error: no matching function for call to 'get'
auto FileLineColLoc = mlir::FileLineColLoc::get("file", 7, 8, &Context);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
tools/mlir/include/mlir/IR/BuiltinLocationAttributes.h.inc:50:27: note:
candidate function not viable: no known conversion from 'const char [5]' to
'::mlir::MLIRContext *' for 1st argument
    static FileLineColLoc get(::mlir::MLIRContext *context, StringRef filename,
unsigned line, unsigned column);
                          ^
tools/mlir/include/mlir/IR/BuiltinLocationAttributes.h.inc:49:27: note:
candidate function not viable: requires 3 arguments, but 4 were provided
    static FileLineColLoc get(Identifier filename, unsigned line, unsigned
column);
                          ^
2 errors generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210311/49770468/attachment-0001.html>


More information about the llvm-bugs mailing list