Skip to content

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

Closed
@m-piatkowski-dev

Description

@m-piatkowski-dev

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions