Closed vkomenda closed 1 month ago
I suspect this is the same issue as https://github.com/facebook/hermes/issues/261; you need to add #include <cstdint>
to the llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
file.
Is it possible to upgrade the LLVM dependency? It's really old. Including cstdint
doesn't fix all errors.
tapa/build/_deps/llvm-src/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:241:8: error: ‘string’ in namespace ‘std’ does not name a type
241 | std::string toString(OutputFlags Flags = OF_Default) const;
| ^~~~~~
tapa/build/_deps/llvm-src/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp:117:13: error: no declaration matches ‘std::string llvm::ms_demangle::Node::toString(llvm::ms_demangle::OutputFlags) const’
117 | std::string Node::toString(OutputFlags Flags) const {
| ^~~~
I tried LLVM 11 and 15. I think either can work. I'm only getting undefined references to Google logging. Not sure how to fix that right now.
Is it possible to upgrade the LLVM dependency? It's really old. Including
cstdint
doesn't fix all errors.tapa/build/_deps/llvm-src/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:241:8: error: ‘string’ in namespace ‘std’ does not name a type 241 | std::string toString(OutputFlags Flags = OF_Default) const; | ^~~~~~ tapa/build/_deps/llvm-src/llvm/lib/Demangle/MicrosoftDemangleNodes.cpp:117:13: error: no declaration matches ‘std::string llvm::ms_demangle::Node::toString(llvm::ms_demangle::OutputFlags) const’ 117 | std::string Node::toString(OutputFlags Flags) const { | ^~~~
Did you try #include <string>
?
I tried LLVM 11 and 15. I think either can work. I'm only getting undefined references to Google logging. Not sure how to fix that right now.
I'd be happy to merge if you can do another PR😁
LLVM is now compiled using reproducible toolchains with Bazel.
How to bypass compilation of
MicrosoftDemangle.cpp
? I'm getting those errors again: