petersktang commented on issue #20042:
URL: https://github.com/apache/tvm/issues/20042#issuecomment-5364454370
## latest pip install result
```
.../apache.tvm/src/target/llvm/llvm_instance.cc:456:44: error: no viable
conversion from 'llvm::Triple' to 'StringRef'
456 | llvm_instance->createMCSubtargetInfo(triple_obj, "", ""));
| ^~~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:53:26: note: candidate constructor (the
implicit copy constructor) not viable: no known conversion from 'llvm::Triple'
to 'const StringRef &' for 1st argument
53 | class LLVM_GSL_POINTER StringRef {
| ^~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:53:26: note: candidate constructor (the
implicit move constructor) not viable: no known conversion from 'llvm::Triple'
to 'StringRef &&' for 1st argument
53 | class LLVM_GSL_POINTER StringRef {
| ^~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:87:5: note: candidate constructor not
viable: no known conversion from 'llvm::Triple' to 'std::nullptr_t' for 1st
argument
87 | StringRef(std::nullptr_t) = delete;
| ^ ~~~~~~~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:90:28: note: candidate constructor not
viable: no known conversion from 'llvm::Triple' to 'const char *' for 1st
argument
90 | /*implicit*/ constexpr StringRef(const char *Str
LLVM_LIFETIME_BOUND)
| ^ ~~~~~~~~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:107:18: note: candidate constructor not
viable: no known conversion from 'llvm::Triple' to 'const std::string &' (aka
'const basic_string<char> &') for 1st argument
107 | /*implicit*/ StringRef(const std::string &Str)
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/ADT/StringRef.h:111:28: note: candidate constructor not
viable: no known conversion from 'llvm::Triple' to 'std::string_view' (aka
'basic_string_view<char>') for 1st argument
111 | /*implicit*/ constexpr StringRef(std::string_view Str)
| ^ ~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/MC/TargetRegistry.h:452:52: note: passing argument to
parameter 'TheTriple' here
452 | MCSubtargetInfo *createMCSubtargetInfo(StringRef TheTriple,
StringRef CPU,
| ^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]