clang version 10.0.0-4ubuntu1
build commands: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/compiler/gollvm -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_LINKER=gold -G Ninja ../llvm-project/llvm
ninja gollvm
[2184/3879] Building CXX object tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o
FAILED: tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/jenkins/test/build.rel/tools/gollvm/passes -I/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes -I/home/jenkins/test/build.rel/include -I/home/jenkins/test/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o -MF tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o.d -o tools/gollvm/passes/CMakeFiles/LLVMCppGoPasses.dir/GoStatepoints.cpp.o -c /home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1286:31: error: no member named 'getFnAttrs' in 'llvm::AttributeList'
AttrBuilder FnAttrs(Ctx, AL.getFnAttrs());
~~ ^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1290:25: error: no member named 'getFnAttrs' in 'llvm::AttributeList'
for (Attribute A : AL.getFnAttrs()) {
~~ ^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1516:34: error: no matching member function for call to 'CreateGCStatepointInvoke'
InvokeInst *Invoke = Builder.CreateGCStatepointInvoke(
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/IRBuilder.h:836:3: note: candidate function not viable: no known conversion from 'llvm::FunctionCallee' to 'llvm::Value *' for 3rd argument
CreateGCStatepointInvoke(uint64_t ID, uint32_t NumPatchBytes,
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/IRBuilder.h:817:3: note: candidate function not viable: no known conversion from 'llvm::FunctionCallee' to 'llvm::Value *' for 3rd argument
CreateGCStatepointInvoke(uint64_t ID, uint32_t NumPatchBytes,
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/IRBuilder.h:825:15: note: candidate function not viable: requires at least 10 arguments, but 9 were provided
InvokeInst *CreateGCStatepointInvoke(
^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1570:52: error: no member named 'getRetAttrs' in 'llvm::AttributeList'
Call->getAttributes().getRetAttrs()));
~~~~~~~~~~~~~~~~~~~~~ ^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:1999:15: error: no matching constructor for initialization of 'llvm::AttrBuilder'
AttrBuilder R(Ctx);
^ ~~~
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:814:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'llvm::LLVMContext' to 'const llvm::AttrBuilder' for 1st argument
class AttrBuilder {
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:814:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'llvm::LLVMContext' to 'llvm::AttrBuilder' for 1st argument
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:830:3: note: candidate constructor not viable: no known conversion from 'llvm::LLVMContext' to 'const llvm::Attribute' for 1st argument
AttrBuilder(const Attribute &A) {
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:835:3: note: candidate constructor not viable: no known conversion from 'llvm::LLVMContext' to 'llvm::AttributeSet' for 1st argument
AttrBuilder(AttributeSet AS);
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:828:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
AttrBuilder() = default;
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Attributes.h:834:3: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
AttrBuilder(AttributeList AS, unsigned Idx);
^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2013:77: error: use of undeclared identifier 'AttributeMask'; did you mean 'AttributeList'?
AH.setAttributes(AH.getAttributes().removeAttributesAtIndex(Ctx, Index, AttributeMask(AS2)));
^
/home/jenkins/test/llvm-project/llvm/include/llvm/IR/Intrinsics.h:31:7: note: 'AttributeList' declared here
class AttributeList;
^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2027:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
for (auto Attr : FnAttrsToStrip)
^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2024:3: note: previous statement is here
if (isa<PointerType>(F.getReturnType()))
^
/home/jenkins/test/llvm-project/llvm/tools/gollvm/passes/GoStatepoints.cpp:2182:11: warning: 'insertEdge' is deprecated: Use applyUpdates() instead. [-Wdeprecated-declarations]
DTU.insertEdge(Old, PadBB);
^
/home/jenkins/test/llvm-project/llvm/include/llvm/Analysis/DomTreeUpdater.h:159:3: note: 'insertEdge' has been explicitly marked deprecated here
LLVM_ATTRIBUTE_DEPRECATED(void insertEdge(BasicBlock *From, BasicBlock *To),
^
/home/jenkins/test/llvm-project/llvm/include/llvm/Support/Compiler.h:320:52: note: expanded from macro 'LLVM_ATTRIBUTE_DEPRECATED'
#define LLVM_ATTRIBUTE_DEPRECATED(decl, message) [[deprecated(message)]] decl
^
2 warnings and 6 errors generated.
[2229/3879] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
ninja: build stopped: subcommand failed