clang::Stmt* const* In file included from /usr/include/clang/AST/Expr.h:21, from /usr/include/clang/AST/DeclCXX.h:23, from /usr/include/clang/Sema/DeclSpec.h:25, from /usr/include/clang/Sema/CodeCompleteConsumer.h:21, from /usr/include/clang/Frontend/ASTUnit.h:28, from /usr/include/clang/Frontend/FrontendAction.h:23, from /usr/include/clang/Frontend/FrontendActions.h:12, from /builddir/build/BUILD/ccls-0.20190823.5/src/sema_manager.hh:13, from /builddir/build/BUILD/ccls-0.20190823.5/src/indexer.cc:10: /usr/include/clang/AST/Stmt.h:1085:27: note: initializing argument 1 of 'clang::Stmt::CastIterator::CastIterator(StmtPtr*) [with T = clang::Expr; TPtr = const clang::Expr* const; StmtPtr = const clang::Stmt* const]' 1085 | CastIterator(StmtPtr *I) : Base(I) {} | ~~~~~~~~~^ In file included from /usr/include/clang/AST/StmtVisitor.h:17, from /usr/include/clang/AST/AST.h:24, from /builddir/build/BUILD/ccls-0.20190823.5/src/indexer.cc:12: /usr/include/clang/AST/ExprCXX.h: In member function 'clang::CXXNewExpr::const_arg_iterator clang::CXXNewExpr::raw_arg_begin() const': /usr/include/clang/AST/ExprCXX.h:2333:38: error: invalid conversion from 'clang::Stmt* const*' to 'const clang::Stmt* const*' [-fpermissive] 2333 | return getTrailingObjects(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ | | | clang::Stmt* const* In file included from /usr/include/clang/AST/Expr.h:21, from /usr/include/clang/AST/DeclCXX.h:23, from /usr/include/clang/Sema/DeclSpec.h:25, from /usr/include/clang/Sema/CodeCompleteConsumer.h:21, from /usr/include/clang/Frontend/ASTUnit.h:28, from /usr/include/clang/Frontend/FrontendAction.h:23, from /usr/include/clang/Frontend/FrontendActions.h:12, from /builddir/build/BUILD/ccls-0.20190823.5/src/sema_manager.hh:13, from /builddir/build/BUILD/ccls-0.20190823.5/src/indexer.cc:10: /usr/include/clang/AST/Stmt.h:1085:27: note: initializing argument 1 of 'clang::Stmt::CastIterator::CastIterator(StmtPtr*) [with T = clang::Expr; TPtr = const clang::Expr* const; StmtPtr = const clang::Stmt* const]' 1085 | CastIterator(StmtPtr *I) : Base(I) {} | ~~~~~~~~~^ /builddir/build/BUILD/ccls-0.20190823.5/src/indexer.cc: At global scope: /builddir/build/BUILD/ccls-0.20190823.5/src/indexer.cc:680:8: error: 'bool ccls::{anonymous}::IndexDataConsumer::handleDeclOccurence(const clang::Decl*, clang::index::SymbolRoleSet, llvm::ArrayRef, clang::SourceLocation, clang::index::IndexDataConsumer::ASTNodeInfo)' marked 'override', but does not override 680 | bool handleDeclOccurence(const Decl *d, index::SymbolRoleSet roles, | ^~~~~~~~~~~~~~~~~~~ make[2]: *** [CMakeFiles/ccls.dir/build.make:177: CMakeFiles/ccls.dir/src/indexer.cc.o] Error 1 RPM build errors: make[1]: *** [CMakeFiles/Makefile2:155: CMakeFiles/ccls.dir/all] Error 2 make: *** [Makefile:153: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.9gr0wl (%build) Bad exit status from /var/tmp/rpm-tmp.9gr0wl (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ccls.spec