Package: src:ccls
Version: 0.20241108-1
Severity: serious
Tags: ftbfs sid forky
User: [email protected]>
Usertags: llvm-21
ftbfs with LLVM 21:
[...]
[ 42%] Building CXX object CMakeFiles/ccls.dir/src/serializer.cc.o
/usr/bin/c++ -I/build/reproducible-path/ccls-0.20241108/src -isystem
/build/reproducible-path/ccls-0.20241108/third_party -isystem
/usr/lib/llvm-21/include -g -O2
-ffile-prefix-map=/build/reproducible-path/ccls-0.20241108=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -mbranch-protection=standard -Wdate-time
-D_FORTIFY_SOURCE=2 -std=c++17 -Wall -Wno-sign-compare -Wno-return-type
-Wno-unused-result -MD -MT CMakeFiles/ccls.dir/src/serializer.cc.o -MF
CMakeFiles/ccls.dir/src/serializer.cc.o.d -o
CMakeFiles/ccls.dir/src/serializer.cc.o -c
/build/reproducible-path/ccls-0.20241108/src/serializer.cc
/build/reproducible-path/ccls-0.20241108/src/clang_tu.cc: In function
‘std::unique_ptr<clang::CompilerInvocation>
ccls::buildCompilerInvocation(const std::string&, std::vector<const
char*>, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>)’:
/build/reproducible-path/ccls-0.20241108/src/clang_tu.cc:128:42: error:
no matching function for call to
‘clang::CompilerInstance::createDiagnostics(clang::DiagnosticOptions*,
clang::IgnoringDiagConsumer*, bool)’
128 | CompilerInstance::createDiagnostics(new DiagnosticOptions,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
129 | new
IgnoringDiagConsumer, true));
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/ccls-0.20241108/src/clang_tu.cc:128:42: note:
there are 2 candidates
In file included from
/build/reproducible-path/ccls-0.20241108/src/clang_tu.hh:11,
from
/build/reproducible-path/ccls-0.20241108/src/clang_tu.cc:4:
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:654:8: note:
candidate 1: ‘void
clang::CompilerInstance::createDiagnostics(llvm::vfs::FileSystem&,
clang::DiagnosticConsumer*, bool)’
654 | void createDiagnostics(llvm::vfs::FileSystem &VFS,
| ^~~~~~~~~~~~~~~~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:654:49: note:
no known conversion for argument 1 from ‘clang::DiagnosticOptions*’ to
‘llvm::vfs::FileSystem&’
654 | void createDiagnostics(llvm::vfs::FileSystem &VFS,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:677:3: note:
candidate 2: ‘static llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>
clang::CompilerInstance::createDiagnostics(llvm::vfs::FileSystem&,
clang::DiagnosticOptions&, clang::DiagnosticConsumer*, bool, const
clang::CodeGenOptions*)’
677 | createDiagnostics(llvm::vfs::FileSystem &VFS,
DiagnosticOptions &Opts,
| ^~~~~~~~~~~~~~~~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:677:44: note:
no known conversion for argument 1 from ‘clang::DiagnosticOptions*’ to
‘llvm::vfs::FileSystem&’
677 | createDiagnostics(llvm::vfs::FileSystem &VFS,
DiagnosticOptions &Opts,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
make[3]: *** [CMakeFiles/ccls.dir/build.make:96:
CMakeFiles/ccls.dir/src/clang_tu.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/reproducible-path/ccls-0.20241108/src/indexer.cc: In function
‘const clang::Decl* ccls::{anonymous}::getAdjustedDecl(const clang::Decl*)’:
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:389:45: warning:
‘bool llvm::PointerUnion<PTs>::is() const [with T =
clang::ClassTemplateDecl*; PTs = {clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use isa
instead [-Wdeprecated-declarations]
389 | if (result.is<ClassTemplateDecl *>())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /usr/lib/llvm-21/include/clang/Basic/FileEntry.h:22,
from
/usr/lib/llvm-21/include/clang/Basic/SourceLocation.h:17,
from
/build/reproducible-path/ccls-0.20241108/src/indexer.hh:11,
from
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:4:
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:152:15: note: declared here
152 | inline bool is() const {
| ^~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:390:48: warning:
‘T llvm::PointerUnion<PTs>::get() const [with T =
clang::ClassTemplateDecl*; PTs = {clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use
cast instead [-Wdeprecated-declarations]
390 | d = result.get<ClassTemplateDecl *>();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:161:12: note: declared here
161 | inline T get() const {
| ^~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:392:69: warning:
‘T llvm::PointerUnion<PTs>::get() const [with T =
clang::ClassTemplatePartialSpecializationDecl*; PTs =
{clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use
cast instead [-Wdeprecated-declarations]
392 | d =
result.get<ClassTemplatePartialSpecializationDecl *>();
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:161:12: note: declared here
161 | inline T get() const {
| ^~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc: In member
function ‘virtual bool
ccls::{anonymous}::IndexDataConsumer::handleDeclOccurrence(const
clang::Decl*, clang::index::SymbolRoleSet,
llvm::ArrayRef<clang::index::SymbolRelation>, clang::SourceLocation,
clang::index::IndexDataConsumer::ASTNodeInfo)’:
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1005:47:
warning: ‘bool llvm::PointerUnion<PTs>::is() const [with T =
clang::ClassTemplateDecl*; PTs = {clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use isa
instead [-Wdeprecated-declarations]
1005 | if (result.is<ClassTemplateDecl *>())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:152:15: note: declared here
152 | inline bool is() const {
| ^~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1006:51:
warning: ‘T llvm::PointerUnion<PTs>::get() const [with T =
clang::ClassTemplateDecl*; PTs = {clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use
cast instead [-Wdeprecated-declarations]
1006 | d1 = result.get<ClassTemplateDecl *>();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:161:12: note: declared here
161 | inline T get() const {
| ^~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1008:72:
warning: ‘T llvm::PointerUnion<PTs>::get() const [with T =
clang::ClassTemplatePartialSpecializationDecl*; PTs =
{clang::ClassTemplateDecl*,
clang::ClassTemplatePartialSpecializationDecl*}]’ is deprecated: Use
cast instead [-Wdeprecated-declarations]
1008 | d1 =
result.get<ClassTemplatePartialSpecializationDecl *>();
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/llvm-21/llvm/ADT/PointerUnion.h:161:12: note: declared here
161 | inline T get() const {
| ^~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc: In function
‘ccls::IndexResult ccls::idx::index(ccls::SemaManager*,
ccls::WorkingFiles*, ccls::VFS*, const std::string&, const std::string&,
const std::vector<const char*>&, const
std::vector<std::pair<std::__cxx11::basic_string<char>,
std::__cxx11::basic_string<char> > >&, bool, bool&)’:
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1314:10: error:
‘class clang::CompilerInstance’ has no member named ‘setInvocation’; did
you mean ‘getInvocation’?
1314 | clang->setInvocation(std::move(ci));
| ^~~~~~~~~~~~~
| getInvocation
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1315:27: error:
no matching function for call to
‘clang::CompilerInstance::createDiagnostics(ccls::{anonymous}::IndexDiags*,
bool)’
1315 | clang->createDiagnostics(&dc, false);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1315:27: note:
there are 2 candidates
In file included from
/build/reproducible-path/ccls-0.20241108/src/clang_tu.hh:11,
from
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:6:
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:654:8: note:
candidate 1: ‘void
clang::CompilerInstance::createDiagnostics(llvm::vfs::FileSystem&,
clang::DiagnosticConsumer*, bool)’
654 | void createDiagnostics(llvm::vfs::FileSystem &VFS,
| ^~~~~~~~~~~~~~~~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:654:49: note:
no known conversion for argument 1 from ‘ccls::{anonymous}::IndexDiags*’
to ‘llvm::vfs::FileSystem&’
654 | void createDiagnostics(llvm::vfs::FileSystem &VFS,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:677:3: note:
candidate 2: ‘static llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>
clang::CompilerInstance::createDiagnostics(llvm::vfs::FileSystem&,
clang::DiagnosticOptions&, clang::DiagnosticConsumer*, bool, const
clang::CodeGenOptions*)’
677 | createDiagnostics(llvm::vfs::FileSystem &VFS,
DiagnosticOptions &Opts,
| ^~~~~~~~~~~~~~~~~
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:677:44: note:
no known conversion for argument 1 from ‘ccls::{anonymous}::IndexDiags*’
to ‘llvm::vfs::FileSystem&’
677 | createDiagnostics(llvm::vfs::FileSystem &VFS,
DiagnosticOptions &Opts,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1318:55: error:
‘std::shared_ptr<clang::TargetOptions>
clang::CompilerInvocationBase::TargetOpts’ is protected within this context
1318 | clang->getDiagnostics(), clang->getInvocation().TargetOpts));
| ^~~~~~~~~~
In file included from
/usr/lib/llvm-21/include/clang/Frontend/CompilerInstance.h:16:
/usr/lib/llvm-21/include/clang/Frontend/CompilerInvocation.h:80:34:
note: declared protected here
80 | std::shared_ptr<TargetOptions> TargetOpts;
| ^~~~~~~~~~
/build/reproducible-path/ccls-0.20241108/src/indexer.cc:1318:55: error:
cannot convert ‘std::shared_ptr<clang::TargetOptions>’ to
‘clang::TargetOptions&’
1318 | clang->getDiagnostics(), clang->getInvocation().TargetOpts));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
| |
|
std::shared_ptr<clang::TargetOptions>