profile
viewpoint

upenn-acg/cis371 10

repo for CIS 371 Spring 2018

Icantjuddle/ayu-kak 4

Ayu colorscheme ported to the Kakoune editor

Icantjuddle/peer-3-peer 2

Senior Design

Icantjuddle/skunk-2018 1

MongoDB Skunkworks 2018

Icantjuddle/abseil-cpp 0

Abseil Common Libraries (C++)

Icantjuddle/ayu 0

🎨🖌 Modern Sublime Text theme

Icantjuddle/DropboxPhotoUpload 0

Small utility to convert compress and upload photos to dropbox.

Icantjuddle/hugo-PaperMod 0

A fast, clean, responsive Hugo theme

startedhedronvision/bazel-compile-commands-extractor

started time in 4 days

issue commentsourcegraph/lsif-clang

[Bug] Does not compile.

Works with clang-11

Icantjuddle

comment created time in 9 days

issue closedsourcegraph/lsif-clang

[Bug] Does not compile.

I'm running an ubuntu20.04 machine and have installed the required deps. The code is failing to compile with following output:

/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp: In function ‘std::unique_ptr<clang::CompilerInvocation> clang::clangd::buildCompilerInvocation(const clang::clangd::ParseInputs&, clang::DiagnosticConsumer&, std::vector<std::__cxx11::basic_string<char> >*)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp:84:24: error: ‘class clang::LangOptions’ has no member named ‘RecoveryAST’
   84 |     CI->getLangOpts()->RecoveryAST = Inputs.Opts.BuildRecoveryAST;
      |                        ^~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp:85:24: error: ‘class clang::LangOptions’ has no member named ‘RecoveryASTType’
   85 |     CI->getLangOpts()->RecoveryASTType = Inputs.Opts.PreserveRecoveryASTType;
      |                        ^~~~~~~~~~~~~~~
make[2]: *** [clang-tools-extra/lsif-clang/CMakeFiles/clangDaemonMinimal.dir/build.make:102: clang-tools-extra/lsif-clang/CMakeFiles/clangDaemonMinimal.dir/__/clangd/Compiler.cpp.o] Error 1
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:104:8: error: ‘bool clang::clangd::{anonymous}::CppFilePreambleCallbacks::shouldSkipFunctionBody(clang::Decl*)’ marked ‘override’, but does not override
  104 |   bool shouldSkipFunctionBody(Decl *D) override {
      |        ^~~~~~~~~~~~~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp: In static member function ‘static clang::clangd::PreamblePatch clang::clangd::PreamblePatch::create(llvm::StringRef, const clang::clangd::ParseInputs&, const clang::clangd::PreambleData&)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:421:25: error: ‘const class clang::PrecompiledPreamble’ has no member named ‘getContents’
  421 |       Baseline.Preamble.getContents().str(), Modified.CompileCommand);
      |                         ^~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: error: no matching function for call to ‘llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>::try_emplace(<brace-enclosed initializer list>)’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
In file included from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:210:29: note: candidate: ‘template<class ... Ts> std::pair<llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT>, bool> llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::try_emplace(KeyT&&, Ts&& ...) [with Ts = {Ts ...}; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llv
m::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
  210 |   std::pair<iterator, bool> try_emplace(KeyT &&Key, Ts &&... Args) {
      |                             ^~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:210:29: note:   template argument deduction/substitution failed:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: note:   cannot convert ‘{<expression error>, <expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&&’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
In file included from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:229:29: note: candidate: ‘template<class ... Ts> std::pair<llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT>, bool> llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::try_emplace(const KeyT&, Ts&& ...) [with Ts = {Ts ...}; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>
, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
  229 |   std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) {
      |                             ^~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:229:29: note:   template argument deduction/substitution failed:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: note:   cannot convert ‘{<expression error>, <expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘const std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
/home/user/code/lsif-clang/clang-tools-extra/clangd/index/IndexAction.cpp: In constructor ‘clang::clangd::{anonymous}::IndexAction::IndexAction(std::shared_ptr<clang::clangd::SymbolCollector>, std::unique_ptr<clang::clangd::CanonicalIncludes>, const clang::index::IndexingOptions&, std::function<void(clang::clangd::SymbolSlab)>, std::function<void(clang::clangd::
RefSlab)>, std::function<void(clang::clangd::RelationSlab)>, std::function<void(llvm::StringMap<clang::clangd::IncludeGraphNode>)>)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/index/IndexAction.cpp:140:16: error: ‘struct clang::index::IndexingOptions’ has no member named ‘ShouldTraverseDecl’
  140 |     this->Opts.ShouldTraverseDecl = [this](const Decl *D) {
      |                ^~~~~~~~~~~~~~~~~~
In file included from /usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static bool llvm::DenseMapInfo<std::pair<_T1, _T2> >::isEqual(const Pair&, const Pair&) [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:336:29:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:215:30: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  215 |     return FirstInfo::isEqual(LHS.first, RHS.first) &&
      |            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair llvm::DenseMapInfo<std::pair<_T1, _T2> >::getEmptyKey() [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:426:33:   required from ‘static const KeyT llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getEmptyKey() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfo
T = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:334:38:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:191:49: error: ‘getEmptyKey’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  191 |     return std::make_pair(FirstInfo::getEmptyKey(),
      |                           ~~~~~~~~~~~~~~~~~~~~~~^~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair llvm::DenseMapInfo<std::pair<_T1, _T2> >::getTombstoneKey() [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:430:37:   required from ‘static const KeyT llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getTombstoneKey() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; Key
InfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:334:72:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:196:53: error: ‘getTombstoneKey’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  196 |     return std::make_pair(FirstInfo::getTombstoneKey(),
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static unsigned int llvm::DenseMapInfo<std::pair<_T1, _T2> >::getHashValue(const Pair&) [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:415:34:   required from ‘static unsigned int llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getHashValue(const KeyT&) [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::Stri
ngRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:596:37:   required from ‘bool llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::LookupBucketFor(const LookupKeyT&, const BucketT*&) const [with LookupKeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRe
f>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:631:10:   required from ‘bool llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::LookupBucketFor(const LookupKeyT&, BucketT*&) [with LookupKeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = s
td::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:152:5:   required from ‘llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::iterator llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::find(llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::const_arg_type_t<KeyT>) [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind,
llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; llvm::DenseMapBase<DerivedT, KeyT, ValueT, K
eyInfoT, BucketT>::iterator = llvm::DenseMapIterator<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef, llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >, llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>, false>; llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, Buc
ketT>::const_arg_type_t<KeyT> = const std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:470:67:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:201:53: error: ‘getHashValue’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  201 |     uint64_t key = (uint64_t)FirstInfo::getHashValue(PairVal.first) << 32
      |                              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM 10.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-10/lib/cmake/llvm
-- Using ClangConfig.cmake in: /usr/lib/llvm-10/lib/cmake/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/code/lsif-clang/build

closed time in 9 days

Icantjuddle

issue commentsourcegraph/lsif-clang

[Bug] Does not compile.

I tried using clang as well and got the same error:

❯ CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -B build
-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM 10.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-10/lib/cmake/llvm
-- Using ClangConfig.cmake in: /usr/lib/llvm-10/lib/cmake/clang
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/code/lsif-clang/build
Icantjuddle

comment created time in 9 days

issue openedsourcegraph/lsif-clang

[Bug] Does not compile.

I'm running an ubuntu20.04 machine and have installed the required deps. The code is failing to compile with following output:

/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp: In function ‘std::unique_ptr<clang::CompilerInvocation> clang::clangd::buildCompilerInvocation(const clang::clangd::ParseInputs&, clang::DiagnosticConsumer&, std::vector<std::__cxx11::basic_string<char> >*)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp:84:24: error: ‘class clang::LangOptions’ has no member named ‘RecoveryAST’
   84 |     CI->getLangOpts()->RecoveryAST = Inputs.Opts.BuildRecoveryAST;
      |                        ^~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Compiler.cpp:85:24: error: ‘class clang::LangOptions’ has no member named ‘RecoveryASTType’
   85 |     CI->getLangOpts()->RecoveryASTType = Inputs.Opts.PreserveRecoveryASTType;
      |                        ^~~~~~~~~~~~~~~
make[2]: *** [clang-tools-extra/lsif-clang/CMakeFiles/clangDaemonMinimal.dir/build.make:102: clang-tools-extra/lsif-clang/CMakeFiles/clangDaemonMinimal.dir/__/clangd/Compiler.cpp.o] Error 1
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:104:8: error: ‘bool clang::clangd::{anonymous}::CppFilePreambleCallbacks::shouldSkipFunctionBody(clang::Decl*)’ marked ‘override’, but does not override
  104 |   bool shouldSkipFunctionBody(Decl *D) override {
      |        ^~~~~~~~~~~~~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp: In static member function ‘static clang::clangd::PreamblePatch clang::clangd::PreamblePatch::create(llvm::StringRef, const clang::clangd::ParseInputs&, const clang::clangd::PreambleData&)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:421:25: error: ‘const class clang::PrecompiledPreamble’ has no member named ‘getContents’
  421 |       Baseline.Preamble.getContents().str(), Modified.CompileCommand);
      |                         ^~~~~~~~~~~
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: error: no matching function for call to ‘llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>::try_emplace(<brace-enclosed initializer list>)’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
In file included from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:210:29: note: candidate: ‘template<class ... Ts> std::pair<llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT>, bool> llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::try_emplace(KeyT&&, Ts&& ...) [with Ts = {Ts ...}; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llv
m::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
  210 |   std::pair<iterator, bool> try_emplace(KeyT &&Key, Ts &&... Args) {
      |                             ^~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:210:29: note:   template argument deduction/substitution failed:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: note:   cannot convert ‘{<expression error>, <expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&&’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
In file included from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:229:29: note: candidate: ‘template<class ... Ts> std::pair<llvm::DenseMapIterator<KeyT, ValueT, KeyInfoT, BucketT>, bool> llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::try_emplace(const KeyT&, Ts&& ...) [with Ts = {Ts ...}; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>
, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
  229 |   std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) {
      |                             ^~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:229:29: note:   template argument deduction/substitution failed:
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:467:64: note:   cannot convert ‘{<expression error>, <expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘const std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&’
  467 |       ExistingIncludes.try_emplace({Inc.Directive, Inc.Written});
      |                                                                ^
/home/user/code/lsif-clang/clang-tools-extra/clangd/index/IndexAction.cpp: In constructor ‘clang::clangd::{anonymous}::IndexAction::IndexAction(std::shared_ptr<clang::clangd::SymbolCollector>, std::unique_ptr<clang::clangd::CanonicalIncludes>, const clang::index::IndexingOptions&, std::function<void(clang::clangd::SymbolSlab)>, std::function<void(clang::clangd::
RefSlab)>, std::function<void(clang::clangd::RelationSlab)>, std::function<void(llvm::StringMap<clang::clangd::IncludeGraphNode>)>)’:
/home/user/code/lsif-clang/clang-tools-extra/clangd/index/IndexAction.cpp:140:16: error: ‘struct clang::index::IndexingOptions’ has no member named ‘ShouldTraverseDecl’
  140 |     this->Opts.ShouldTraverseDecl = [this](const Decl *D) {
      |                ^~~~~~~~~~~~~~~~~~
In file included from /usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/index/SymbolID.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/AST.h:16,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/CollectMacros.h:12,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.h:25,
                 from /home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:9:
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static bool llvm::DenseMapInfo<std::pair<_T1, _T2> >::isEqual(const Pair&, const Pair&) [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:336:29:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:215:30: error: ‘isEqual’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  215 |     return FirstInfo::isEqual(LHS.first, RHS.first) &&
      |            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair llvm::DenseMapInfo<std::pair<_T1, _T2> >::getEmptyKey() [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:426:33:   required from ‘static const KeyT llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getEmptyKey() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfo
T = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:334:38:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:191:49: error: ‘getEmptyKey’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  191 |     return std::make_pair(FirstInfo::getEmptyKey(),
      |                           ~~~~~~~~~~~~~~~~~~~~~~^~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair llvm::DenseMapInfo<std::pair<_T1, _T2> >::getTombstoneKey() [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:430:37:   required from ‘static const KeyT llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getTombstoneKey() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; Key
InfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:334:72:   required from ‘void llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::destroyAll() [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::Dens
eMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:724:5:   required from ‘llvm::DenseMap<KeyT, ValueT, KeyInfoT, BucketT>::~DenseMap() [with KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::
tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:461:9:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:196:53: error: ‘getTombstoneKey’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  196 |     return std::make_pair(FirstInfo::getTombstoneKey(),
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h: In instantiation of ‘static unsigned int llvm::DenseMapInfo<std::pair<_T1, _T2> >::getHashValue(const Pair&) [with T = clang::tok::PPKeywordKind; U = llvm::StringRef; llvm::DenseMapInfo<std::pair<_T1, _T2> >::Pair = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>]’:
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:415:34:   required from ‘static unsigned int llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::getHashValue(const KeyT&) [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::Stri
ngRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:596:37:   required from ‘bool llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::LookupBucketFor(const LookupKeyT&, const BucketT*&) const [with LookupKeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRe
f>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:631:10:   required from ‘bool llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::LookupBucketFor(const LookupKeyT&, BucketT*&) [with LookupKeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; KeyT = s
td::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>]’
/usr/lib/llvm-10/include/llvm/ADT/DenseMap.h:152:5:   required from ‘llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::iterator llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::find(llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, BucketT>::const_arg_type_t<KeyT>) [with DerivedT = llvm::DenseMap<std::pair<clang::tok::PPKeywordKind,
llvm::StringRef>, llvm::StringRef>; KeyT = std::pair<clang::tok::PPKeywordKind, llvm::StringRef>; ValueT = llvm::StringRef; KeyInfoT = llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >; BucketT = llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>; llvm::DenseMapBase<DerivedT, KeyT, ValueT, K
eyInfoT, BucketT>::iterator = llvm::DenseMapIterator<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef, llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >, llvm::detail::DenseMapPair<std::pair<clang::tok::PPKeywordKind, llvm::StringRef>, llvm::StringRef>, false>; llvm::DenseMapBase<DerivedT, KeyT, ValueT, KeyInfoT, Buc
ketT>::const_arg_type_t<KeyT> = const std::pair<clang::tok::PPKeywordKind, llvm::StringRef>&]’
/home/user/code/lsif-clang/clang-tools-extra/clangd/Preamble.cpp:470:67:   required from here
/usr/lib/llvm-10/include/llvm/ADT/DenseMapInfo.h:201:53: error: ‘getHashValue’ is not a member of ‘llvm::DenseMapInfo<std::pair<clang::tok::PPKeywordKind, llvm::StringRef> >::FirstInfo’ {aka ‘llvm::DenseMapInfo<clang::tok::PPKeywordKind>’}
  201 |     uint64_t key = (uint64_t)FirstInfo::getHashValue(PairVal.first) << 32
      |                              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~

created time in 10 days

startedwhereswaldon/shellcheck.kak

started time in 3 months

more