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

Error with /usr/include/llvm-7/llvm/ADT/DenseMap.h while compiling #119

Open
m-piatkowski-dev opened this issue Feb 20, 2024 · 3 comments
Open

Comments

@m-piatkowski-dev
Copy link

Hi Guys,
I have run build like it is in instruction:
image

and get this error, any idea what should be done?? error log is longer but most of info is the same:

Scanning dependencies of target codebrowser_generator
[  7%] Building CXX object generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o
In file included from /usr/lib/llvm-7/include/clang/Basic/Diagnostic.h:23:0,
                 from /usr/lib/llvm-7/include/clang/AST/DeclarationName.h:17,
                 from /usr/lib/llvm-7/include/clang/AST/DeclBase.h:18,
                 from /usr/lib/llvm-7/include/clang/AST/Decl.h:18,
                 from /usr/lib/llvm-7/include/clang/AST/ASTTypeTraits.h:20,
                 from /usr/lib/llvm-7/include/clang/AST/ASTContext.h:18,
                 from /xxx/xxxx/$USER/codebrowser/generator/main.cpp:23:
/usr/include/llvm-7/llvm/ADT/DenseMap.h: In instantiation of ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<clang::SourceLocation, std::__cxx11::basic_string<char> >; KeyT = clang::SourceLocation; ValueT = std::__cxx11::basic_string<char>; KeyInfoT = llvm::DenseMapInfo<clang::SourceLocation>; BucketT = llvm::detail::DenseMapPair<clang::SourceLocation, std::__cxx11::basic_string<char> >]’:
/usr/include/llvm-7/llvm/ADT/DenseMap.h:680:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = clang::SourceLocation; ValueT = std::__cxx11::basic_string<char>; KeyInfoT = llvm::DenseMapInfo<clang::SourceLocation>; BucketT = llvm::detail::DenseMapPair<clang::SourceLocation, std::__cxx11::basic_string<char> >]’
 /xxx/xxxx/$USER/codebrowser/generator/browserastvisitor.h:362:50:   required from here
/usr/include/llvm-7/llvm/ADT/DenseMap.h:332:29: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<clang::SourceLocation>’
       if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm-7/llvm/ADT/DenseMap.h:333:29: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<clang::SourceLocation>’
           !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
@Waqar144
Copy link
Collaborator

Can you try with a newer clang version?

@m-piatkowski-dev
Copy link
Author

which version do You propose?

@Waqar144
Copy link
Collaborator

clang 14+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants