Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make RISCVCommonTableGen failed according to instructions in contrib/riscv_update/README.md #2388

Closed
wxrdnx opened this issue Jun 11, 2024 · 2 comments
Labels

Comments

@wxrdnx
Copy link
Contributor

wxrdnx commented Jun 11, 2024

Work environment

Questions Answers
OS/arch/bits Ubuntu x86_64 jammy
Architecture x86_64
Source of Capstone contrib/riscv_update
Version/git commit 5.0.1

An error occurs when executing make according to instructions in contrib/riscv_update/README.md

Expected behavior

No error should occur

Actual behavior

In file included from /p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:13,
                 from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:33:17: error: found ‘:’ in nested-name-specifier, expected ‘::’
   33 | enum Qualifiers : uint8_t {
      |                 ^
      |                 ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:33:6: error: ‘Qualifiers’ has not been declared
   33 | enum Qualifiers : uint8_t {
      |      ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:33:27: error: expected unqualified-id before ‘{’ token
   33 | enum Qualifiers : uint8_t {
      |                           ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:44:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
   44 | enum class StorageClass : uint8_t {
      | ~~~~ ^~~~~
      |      -----
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:44:25: error: found ‘:’ in nested-name-specifier, expected ‘::’
   44 | enum class StorageClass : uint8_t {
      |                         ^
      |                         ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:44:12: error: ‘StorageClass’ has not been declared
   44 | enum class StorageClass : uint8_t {
      |            ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:44:35: error: expected unqualified-id before ‘{’ token
   44 | enum class StorageClass : uint8_t {
      |                                   ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:57:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
   57 | enum class CallingConv : uint8_t {
      | ~~~~ ^~~~~
      |      -----
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:57:24: error: found ‘:’ in nested-name-specifier, expected ‘::’
   57 | enum class CallingConv : uint8_t {
      |                        ^
      |                        ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:57:12: error: ‘CallingConv’ has not been declared
   57 | enum class CallingConv : uint8_t {
      |            ^~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:57:34: error: expected unqualified-id before ‘{’ token
   57 | enum class CallingConv : uint8_t {
      |                                  ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:70:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
   70 | enum class ReferenceKind : uint8_t { None, LValueRef, RValueRef };
      | ~~~~ ^~~~~
      |      -----
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:70:26: error: found ‘:’ in nested-name-specifier, expected ‘::’
   70 | enum class ReferenceKind : uint8_t { None, LValueRef, RValueRef };
      |                          ^
      |                          ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:70:12: error: ‘ReferenceKind’ has not been declared
   70 | enum class ReferenceKind : uint8_t { None, LValueRef, RValueRef };
      |            ^~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:70:36: error: expected unqualified-id before ‘{’ token
   70 | enum class ReferenceKind : uint8_t { None, LValueRef, RValueRef };
      |                                    ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:109:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
  109 | enum class IntrinsicFunctionKind : uint8_t {
      | ~~~~ ^~~~~
      |      -----
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:109:34: error: found ‘:’ in nested-name-specifier, expected ‘::’
  109 | enum class IntrinsicFunctionKind : uint8_t {
      |                                  ^
      |                                  ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:109:12: error: ‘IntrinsicFunctionKind’ has not been declared
  109 | enum class IntrinsicFunctionKind : uint8_t {
      |            ^~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:109:44: error: expected unqualified-id before ‘{’ token
  109 | enum class IntrinsicFunctionKind : uint8_t {
      |                                            ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:200:16: error: found ‘:’ in nested-name-specifier, expected ‘::’
  200 | enum FuncClass : uint16_t {
      |                ^
      |                ::
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:200:6: error: ‘FuncClass’ has not been declared
  200 | enum FuncClass : uint16_t {
      |      ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:200:27: error: expected unqualified-id before ‘{’ token
  200 | enum FuncClass : uint16_t {
      |                           ^
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:258:8: error: ‘string’ in namespace ‘std’ does not name a type
  258 |   std::string toString(OutputFlags Flags = OF_Default) const;
      |        ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:19:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
   18 | #include <array>
  +++ |+#include <string>
   19 | 
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:305:3: error: ‘Qualifiers’ does not name a type
  305 |   Qualifiers Quals = Q_None;
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:330:3: error: ‘CallingConv’ does not name a type
  330 |   CallingConv CallConvention = CallingConv::None;
      |   ^~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:333:3: error: ‘FuncClass’ does not name a type
  333 |   FuncClass FunctionClass = FC_Global;
      |   ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:364:3: error: ‘uint64_t’ does not name a type
  364 |   uint64_t OffsetInVTable = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:19:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   18 | #include <array>
  +++ |+#include <cstdint>
   19 | 
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:387:65: error: expected ‘)’ before ‘Operator’
  387 |   explicit IntrinsicFunctionIdentifierNode(IntrinsicFunctionKind Operator)
      |                                           ~                     ^~~~~~~~~
      |                                                                 )
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:393:3: error: ‘IntrinsicFunctionKind’ does not name a type
  393 |   IntrinsicFunctionKind Operator;
      |   ^~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:411:3: error: ‘uint32_t’ does not name a type
  411 |   uint32_t ScopeIndex = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:411:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:444:5: error: ‘uint32_t’ does not name a type
  444 |     uint32_t StaticOffset = 0;
      |     ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:444:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:549:30: error: expected ‘)’ before ‘Value’
  549 |   IntegerLiteralNode(uint64_t Value, bool IsNegative)
      |                     ~        ^~~~~~
      |                              )
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:554:3: error: ‘uint64_t’ does not name a type
  554 |   uint64_t Value = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:554:3: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:564:3: error: ‘uint32_t’ does not name a type
  564 |   uint32_t NVOffset = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:564:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:566:3: error: ‘uint32_t’ does not name a type
  566 |   uint32_t VBTableOffset = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:566:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:567:3: error: ‘uint32_t’ does not name a type
  567 |   uint32_t Flags = 0;
      |   ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:567:3: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:582:3: error: ‘Qualifiers’ does not name a type
  582 |   Qualifiers Quals;
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:609:3: error: ‘StorageClass’ does not name a type
  609 |   StorageClass SC = StorageClass::None;
      |   ^~~~~~~~~~~~
In file included from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:164:48: error: ‘StorageClass’ has not been declared
  164 |                                                StorageClass SC);
      |                                                ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:167:3: error: ‘Qualifiers’ does not name a type
  167 |   Qualifiers demanglePointerExtQualifiers(StringView &MangledName);
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:244:3: error: ‘FuncClass’ does not name a type
  244 |   FuncClass demangleFunctionClass(StringView &MangledName);
      |   ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:245:3: error: ‘CallingConv’ does not name a type
  245 |   CallingConv demangleCallingConvention(StringView &MangledName);
      |   ^~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:246:3: error: ‘StorageClass’ does not name a type
  246 |   StorageClass demangleVariableStorageClass(StringView &MangledName);
      |   ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:251:13: error: ‘Qualifiers’ was not declared in this scope
  251 |   std::pair<Qualifiers, bool> demangleQualifiers(StringView &MangledName);
      |             ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:251:29: error: template argument 1 is invalid
  251 |   std::pair<Qualifiers, bool> demangleQualifiers(StringView &MangledName);
      |                             ^
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:219:18: error: ‘Qualifiers’ was not declared in this scope
  219 | static std::pair<Qualifiers, PointerAffinity>
      |                  ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:219:45: error: template argument 1 is invalid
  219 | static std::pair<Qualifiers, PointerAffinity>
      |                                             ^
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In function ‘int demanglePointerCVQualifiers(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:222:27: error: ‘Q_None’ was not declared in this scope
  222 |     return std::make_pair(Q_None, PointerAffinity::RValueReference);
      |                           ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:226:27: error: ‘Q_None’ was not declared in this scope
  226 |     return std::make_pair(Q_None, PointerAffinity::Reference);
      |                           ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:230:27: error: ‘Q_Const’ was not declared in this scope
  230 |     return std::make_pair(Q_Const, PointerAffinity::Pointer);
      |                           ^~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:232:27: error: ‘Q_Volatile’ was not declared in this scope
  232 |     return std::make_pair(Q_Volatile, PointerAffinity::Pointer);
      |                           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:234:27: error: ‘Qualifiers’ was not declared in this scope
  234 |     return std::make_pair(Qualifiers(Q_Const | Q_Volatile),
      |                           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:239:25: error: ‘Q_None’ was not declared in this scope
  239 |   return std::make_pair(Q_None, PointerAffinity::Pointer);
      |                         ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::SpecialTableSymbolNode* llvm::ms_demangle::Demangler::demangleSpecialTableSymbolNode(llvm::itanium_demangle::StringView&, llvm::ms_demangle::SpecialIntrinsicKind)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:279:18: error: ‘struct llvm::ms_demangle::SpecialTableSymbolNode’ has no member named ‘Quals’
  279 |   std::tie(STSN->Quals, IsMember) = demangleQualifiers(MangledName);
      |                  ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::LocalStaticGuardVariableNode* llvm::ms_demangle::Demangler::demangleLocalStaticGuard(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:304:11: error: ‘struct llvm::ms_demangle::LocalStaticGuardIdentifierNode’ has no member named ‘ScopeIndex’
  304 |     LSGI->ScopeIndex = demangleUnsigned(MangledName);
      |           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::VariableSymbolNode* llvm::ms_demangle::Demangler::demangleRttiBaseClassDescriptorNode(llvm::ms_demangle::ArenaAllocator&, llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:358:10: error: ‘struct llvm::ms_demangle::RttiBaseClassDescriptorNode’ has no member named ‘NVOffset’
  358 |   RBCDN->NVOffset = demangleUnsigned(MangledName);
      |          ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:360:10: error: ‘struct llvm::ms_demangle::RttiBaseClassDescriptorNode’ has no member named ‘VBTableOffset’; did you mean ‘VBPtrOffset’?
  360 |   RBCDN->VBTableOffset = demangleUnsigned(MangledName);
      |          ^~~~~~~~~~~~~
      |          VBPtrOffset
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:361:10: error: ‘struct llvm::ms_demangle::RttiBaseClassDescriptorNode’ has no member named ‘Flags’
  361 |   RBCDN->Flags = demangleUnsigned(MangledName);
      |          ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: At global scope:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:503:8: error: ‘IntrinsicFunctionKind’ does not name a type
  503 | static IntrinsicFunctionKind
      |        ^~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::IdentifierNode* llvm::ms_demangle::Demangler::demangleFunctionIdentifierCode(llvm::itanium_demangle::StringView&, llvm::ms_demangle::FunctionIdentifierCodeGroup)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:650:11: error: ‘translateIntrinsicFunctionCode’ was not declared in this scope
  650 |           translateIntrinsicFunctionCode(CH, Group));
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:655:9: error: ‘translateIntrinsicFunctionCode’ was not declared in this scope
  655 |         translateIntrinsicFunctionCode(MangledName.popFront(), Group));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::SymbolNode* llvm::ms_demangle::Demangler::demangleEncodedSymbol(llvm::itanium_demangle::StringView&, llvm::ms_demangle::QualifiedNameNode*)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:679:5: error: ‘StorageClass’ was not declared in this scope
  679 |     StorageClass SC = demangleVariableStorageClass(MangledName);
      |     ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:680:50: error: ‘SC’ was not declared in this scope
  680 |     return demangleVariableEncoding(MangledName, SC);
      |                                                  ^~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: At global scope:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:755:57: error: ‘StorageClass’ has not been declared
  755 |                                                         StorageClass SC) {
      |                                                         ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::VariableSymbolNode* llvm::ms_demangle::Demangler::demangleVariableEncoding(llvm::itanium_demangle::StringView&, int)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:759:8: error: ‘struct llvm::ms_demangle::VariableSymbolNode’ has no member named ‘SC’
  759 |   VSN->SC = SC;
      |        ^~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:767:5: error: ‘Qualifiers’ was not declared in this scope
  767 |     Qualifiers ExtraChildQuals = Q_None;
      |     ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:768:10: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
  768 |     PTN->Quals = Qualifiers(VSN->Type->Quals |
      |          ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:768:40: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
  768 |     PTN->Quals = Qualifiers(VSN->Type->Quals |
      |                                        ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:769:29: error: ‘demanglePointerExtQualifiers’ was not declared in this scope; did you mean ‘demanglePointerCVQualifiers’?
  769 |                             demanglePointerExtQualifiers(MangledName));
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                             demanglePointerCVQualifiers
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:772:14: error: ‘ExtraChildQuals’ was not declared in this scope
  772 |     std::tie(ExtraChildQuals, IsMember) = demangleQualifiers(MangledName);
      |              ^~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:779:19: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
  779 |     PTN->Pointee->Quals = Qualifiers(PTN->Pointee->Quals | ExtraChildQuals);
      |                   ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:779:52: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
  779 |     PTN->Pointee->Quals = Qualifiers(PTN->Pointee->Quals | ExtraChildQuals);
      |                                                    ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:784:16: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
  784 |     VSN->Type->Quals = demangleQualifiers(MangledName).first;
      |                ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:784:56: error: request for member ‘first’ in ‘((llvm::ms_demangle::Demangler*)this)->llvm::ms_demangle::Demangler::demangleQualifiers((* & MangledName))’, which is of non-class type ‘int’
  784 |     VSN->Type->Quals = demangleQualifiers(MangledName).first;
      |                                                        ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::FunctionSymbolNode* llvm::ms_demangle::Demangler::demangleVcallThunkNode(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1153:19: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘FunctionClass’
 1153 |   FSN->Signature->FunctionClass = FC_NoParameterList;
      |                   ^~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1153:35: error: ‘FC_NoParameterList’ was not declared in this scope
 1153 |   FSN->Signature->FunctionClass = FC_NoParameterList;
      |                                   ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1159:11: error: ‘struct llvm::ms_demangle::VcallThunkIdentifierNode’ has no member named ‘OffsetInVTable’
 1159 |     VTIN->OffsetInVTable = demangleUnsigned(MangledName);
      |           ^~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1163:21: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘CallConvention’
 1163 |     FSN->Signature->CallConvention = demangleCallingConvention(MangledName);
      |                     ^~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1163:38: error: ‘demangleCallingConvention’ was not declared in this scope
 1163 |     FSN->Signature->CallConvention = demangleCallingConvention(MangledName);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: At global scope:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1480:1: error: ‘FuncClass’ does not name a type
 1480 | FuncClass Demangler::demangleFunctionClass(StringView &MangledName) {
      | ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1562:1: error: ‘CallingConv’ does not name a type
 1562 | CallingConv Demangler::demangleCallingConvention(StringView &MangledName) {
      | ^~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1592:1: error: ‘StorageClass’ does not name a type
 1592 | StorageClass Demangler::demangleVariableStorageClass(StringView &MangledName) {
      | ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1611:11: error: ‘Qualifiers’ was not declared in this scope
 1611 | std::pair<Qualifiers, bool>
      |           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1611:27: error: template argument 1 is invalid
 1611 | std::pair<Qualifiers, bool>
      |                           ^
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘int llvm::ms_demangle::Demangler::demangleQualifiers(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1617:27: error: ‘Q_None’ was not declared in this scope
 1617 |     return std::make_pair(Q_None, true);
      |                           ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1619:27: error: ‘Q_Const’ was not declared in this scope
 1619 |     return std::make_pair(Q_Const, true);
      |                           ^~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1621:27: error: ‘Q_Volatile’ was not declared in this scope
 1621 |     return std::make_pair(Q_Volatile, true);
      |                           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1623:27: error: ‘Qualifiers’ was not declared in this scope
 1623 |     return std::make_pair(Qualifiers(Q_Const | Q_Volatile), true);
      |                           ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1635:25: error: ‘Q_None’ was not declared in this scope
 1635 |   return std::make_pair(Q_None, false);
      |                         ^~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::TypeNode* llvm::ms_demangle::Demangler::demangleType(llvm::itanium_demangle::StringView&, llvm::ms_demangle::QualifierMangleMode)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1642:3: error: ‘Qualifiers’ was not declared in this scope
 1642 |   Qualifiers Quals = Q_None;
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1645:14: error: ‘Quals’ was not declared in this scope
 1645 |     std::tie(Quals, IsMember) = demangleQualifiers(MangledName);
      |              ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1648:16: error: ‘Quals’ was not declared in this scope
 1648 |       std::tie(Quals, IsMember) = demangleQualifiers(MangledName);
      |                ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1679:7: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
 1679 |   Ty->Quals = Qualifiers(Ty->Quals | Quals);
      |       ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1679:30: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
 1679 |   Ty->Quals = Qualifiers(Ty->Quals | Quals);
      |                              ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1679:38: error: ‘Quals’ was not declared in this scope
 1679 |   Ty->Quals = Qualifiers(Ty->Quals | Quals);
      |                                      ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::FunctionSignatureNode* llvm::ms_demangle::Demangler::demangleFunctionType(llvm::itanium_demangle::StringView&, bool)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1698:10: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘Quals’
 1698 |     FTy->Quals = demanglePointerExtQualifiers(MangledName);
      |          ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1698:18: error: ‘demanglePointerExtQualifiers’ was not declared in this scope; did you mean ‘demanglePointerCVQualifiers’?
 1698 |     FTy->Quals = demanglePointerExtQualifiers(MangledName);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                  demanglePointerCVQualifiers
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1700:10: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘Quals’
 1700 |     FTy->Quals = Qualifiers(FTy->Quals | demangleQualifiers(MangledName).first);
      |          ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1700:34: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘Quals’
 1700 |     FTy->Quals = Qualifiers(FTy->Quals | demangleQualifiers(MangledName).first);
      |                                  ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1700:74: error: request for member ‘first’ in ‘((llvm::ms_demangle::Demangler*)this)->llvm::ms_demangle::Demangler::demangleQualifiers((* & MangledName))’, which is of non-class type ‘int’
 1700 |     FTy->Quals = Qualifiers(FTy->Quals | demangleQualifiers(MangledName).first);
      |                                                                          ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1700:18: error: ‘Qualifiers’ was not declared in this scope
 1700 |     FTy->Quals = Qualifiers(FTy->Quals | demangleQualifiers(MangledName).first);
      |                  ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1704:8: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘CallConvention’
 1704 |   FTy->CallConvention = demangleCallingConvention(MangledName);
      |        ^~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1704:25: error: ‘demangleCallingConvention’ was not declared in this scope
 1704 |   FTy->CallConvention = demangleCallingConvention(MangledName);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::FunctionSymbolNode* llvm::ms_demangle::Demangler::demangleFunctionEncoding(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1721:3: error: ‘FuncClass’ was not declared in this scope
 1721 |   FuncClass ExtraFlags = FC_None;
      |   ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1723:5: error: ‘ExtraFlags’ was not declared in this scope
 1723 |     ExtraFlags = FC_ExternC;
      |     ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1723:18: error: ‘FC_ExternC’ was not declared in this scope
 1723 |     ExtraFlags = FC_ExternC;
      |                  ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1725:12: error: expected ‘;’ before ‘FC’
 1725 |   FuncClass FC = demangleFunctionClass(MangledName);
      |            ^~~
      |            ;
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1726:3: error: ‘FC’ was not declared in this scope
 1726 |   FC = FuncClass(ExtraFlags | FC);
      |   ^~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1726:18: error: ‘ExtraFlags’ was not declared in this scope
 1726 |   FC = FuncClass(ExtraFlags | FC);
      |                  ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1730:12: error: ‘FC_StaticThisAdjust’ was not declared in this scope
 1730 |   if (FC & FC_StaticThisAdjust) {
      |            ^~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1732:21: error: ‘struct llvm::ms_demangle::ThunkSignatureNode::ThisAdjustor’ has no member named ‘StaticOffset’
 1732 |     TTN->ThisAdjust.StaticOffset = demangleSigned(MangledName);
      |                     ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1733:19: error: ‘FC_VirtualThisAdjust’ was not declared in this scope
 1733 |   } else if (FC & FC_VirtualThisAdjust) {
      |                   ^~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1735:14: error: ‘FC_VirtualThisAdjustEx’ was not declared in this scope
 1735 |     if (FC & FC_VirtualThisAdjustEx) {
      |              ^~~~~~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1740:21: error: ‘struct llvm::ms_demangle::ThunkSignatureNode::ThisAdjustor’ has no member named ‘StaticOffset’
 1740 |     TTN->ThisAdjust.StaticOffset = demangleSigned(MangledName);
      |                     ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1743:12: error: ‘FC_NoParameterList’ was not declared in this scope
 1743 |   if (FC & FC_NoParameterList) {
      |            ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1749:33: error: ‘FC_Global’ was not declared in this scope
 1749 |     bool HasThisQuals = !(FC & (FC_Global | FC_Static));
      |                                 ^~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1749:45: error: ‘FC_Static’ was not declared in this scope; did you mean ‘static’?
 1749 |     bool HasThisQuals = !(FC & (FC_Global | FC_Static));
      |                                             ^~~~~~~~~
      |                                             static
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1756:8: error: ‘struct llvm::ms_demangle::FunctionSignatureNode’ has no member named ‘FunctionClass’
 1756 |   FSN->FunctionClass = FC;
      |        ^~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::PointerTypeNode* llvm::ms_demangle::Demangler::demanglePointerType(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1867:21: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1867 |   std::tie(Pointer->Quals, Pointer->Affinity) =
      |                     ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1875:3: error: ‘Qualifiers’ was not declared in this scope
 1875 |   Qualifiers ExtQuals = demanglePointerExtQualifiers(MangledName);
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1876:12: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1876 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |            ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1876:40: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1876 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |                                        ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1876:48: error: ‘ExtQuals’ was not declared in this scope
 1876 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |                                                ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::PointerTypeNode* llvm::ms_demangle::Demangler::demangleMemberPointerType(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1885:21: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1885 |   std::tie(Pointer->Quals, Pointer->Affinity) =
      |                     ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1889:3: error: ‘Qualifiers’ was not declared in this scope
 1889 |   Qualifiers ExtQuals = demanglePointerExtQualifiers(MangledName);
      |   ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1890:12: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1890 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |            ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1890:40: error: ‘struct llvm::ms_demangle::PointerTypeNode’ has no member named ‘Quals’
 1890 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |                                        ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1890:48: error: ‘ExtQuals’ was not declared in this scope
 1890 |   Pointer->Quals = Qualifiers(Pointer->Quals | ExtQuals);
      |                                                ^~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1896:15: error: expected ‘;’ before ‘PointeeQuals’
 1896 |     Qualifiers PointeeQuals = Q_None;
      |               ^~~~~~~~~~~~~
      |               ;
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1898:14: error: ‘PointeeQuals’ was not declared in this scope
 1898 |     std::tie(PointeeQuals, IsMember) = demangleQualifiers(MangledName);
      |              ^~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1903:23: error: ‘struct llvm::ms_demangle::TypeNode’ has no member named ‘Quals’
 1903 |     Pointer->Pointee->Quals = PointeeQuals;
      |                       ^~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: At global scope:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1909:1: error: ‘Qualifiers’ does not name a type
 1909 | Qualifiers Demangler::demanglePointerExtQualifiers(StringView &MangledName) {
      | ^~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp: In member function ‘llvm::ms_demangle::ArrayTypeNode* llvm::ms_demangle::Demangler::demangleArrayType(llvm::itanium_demangle::StringView&)’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1954:19: error: ‘struct llvm::ms_demangle::ArrayTypeNode’ has no member named ‘Quals’
 1954 |     std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName);
      |                   ^~~~~
In file included from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h: In instantiation of ‘T* llvm::ms_demangle::ArenaAllocator::alloc(Args&& ...) [with T = llvm::ms_demangle::IntegerLiteralNode; Args = {long unsigned int&, bool&}]’:
/p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:1944:46:   required from here
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:107:14: error: no matching function for call to ‘llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(long unsigned int&, bool&)’
  107 |       return new (PP) T(std::forward<Args>(ConstructorArgs)...);
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:13,
                 from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:548:3: note: candidate: ‘llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode()’
  548 |   IntegerLiteralNode() : Node(NodeKind::IntegerLiteral) {}
      |   ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:548:3: note:   candidate expects 0 arguments, 2 provided
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note: candidate: ‘constexpr llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(const llvm::ms_demangle::IntegerLiteralNode&)’
  547 | struct IntegerLiteralNode : public Node {
      |        ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note:   candidate expects 1 argument, 2 provided
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note: candidate: ‘constexpr llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(llvm::ms_demangle::IntegerLiteralNode&&)’
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note:   candidate expects 1 argument, 2 provided
In file included from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:111:12: error: no matching function for call to ‘llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(long unsigned int&, bool&)’
  111 |     return new (Head->Buf) T(std::forward<Args>(ConstructorArgs)...);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangle.h:13,
                 from /p/paradyn/development/angushe/llvm-project/llvm/lib/Demangle/MicrosoftDemangle.cpp:16:
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:548:3: note: candidate: ‘llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode()’
  548 |   IntegerLiteralNode() : Node(NodeKind::IntegerLiteral) {}
      |   ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:548:3: note:   candidate expects 0 arguments, 2 provided
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note: candidate: ‘constexpr llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(const llvm::ms_demangle::IntegerLiteralNode&)’
  547 | struct IntegerLiteralNode : public Node {
      |        ^~~~~~~~~~~~~~~~~~
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note:   candidate expects 1 argument, 2 provided
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note: candidate: ‘constexpr llvm::ms_demangle::IntegerLiteralNode::IntegerLiteralNode(llvm::ms_demangle::IntegerLiteralNode&&)’
/p/paradyn/development/angushe/llvm-project/llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h:547:8: note:   candidate expects 1 argument, 2 provided
make[3]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:104: lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:7771: lib/Demangle/CMakeFiles/LLVMDemangle.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:19036: lib/Target/RISCV/CMakeFiles/RISCVCommonTableGen.dir/rule] Error 2
make: *** [Makefile:5896: RISCVCommonTableGen] Error 2

Steps to reproduce the behavior

I ran the following instructions according to contrib/riscv_update/README.md:

git clone https://github.com/llvm/llvm-project.git
cd llvm-project
git switch -c capstone b81d715cd25178d413431258667861485bb0ff89
# copy all patch files from `contrib/riscv_update` to `llvm-project`
patch -p1 < 0001-capstone-riscv-patchs.patch
patch -p1 < 0002-update-TableGen-for-generate-RISCV-port-inc-for-CAPS.patch
patch -p1 < 0003-clear-old-patchs.patch
patch -p1 < 0004-fix-riscv-registerclass-array-of-genregisterinfo.patch
patch -p1 < 0005-fix-riscv-registerclass-array-of-genregisterinfo.patch
patch -p1 < 0006-fix-output-TAB-for-riscv-capstone.patch
patch -p1 < 0007-fix-riscv-alias-inst-output-useless-newline.patch
patch -p1 < 0008-fix-riscv-inst-output-more-formal.patch
patch -p1 < 0009-fix-riscv-asmwriter-variable-declaration-place.patch
patch -p1 < 0010-fix-riscvgenasmwiter.inc-memory-leak.patch
patch -p1 < 0011-using-static-array-contain-temp-string-for-riscv-asm.patch
cd llvm
mkdir build
cd build
cmake -DCMAKE_CXX_FLAGS=-DCAPSTONE -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" ..
make RISCVCommonTableGen
@XVilka
Copy link
Contributor

XVilka commented Jun 12, 2024

This is now outdated method of updating, and we work on the auto-sync project. Many other architectures were updated through it already and more are in the pipeline: #2015

@Rot127
Copy link
Collaborator

Rot127 commented Jun 12, 2024

As @XVilka already said, please check #2015 for more details of the new update mechanism.

@Rot127 Rot127 closed this as completed Jun 12, 2024
@Rot127 Rot127 added the wontfix label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants