Works now. Thanks for your help. Have a nice day.

Than McIntosh <th...@google.com> 于2022年5月17日周二 02:06写道:

> Apologies, looks like I picked the wrong LLVM hash. Please try
>
> llvm-project commit 09629215c272f09e3ebde6cc7eac9625d28910ff
>
> Cheers Than
>
>
> On Mon, May 16, 2022 at 10:38 AM Than McIntosh <th...@google.com> wrote:
>
>> Hi,
>>
>> Thanks for your interest in Gollvm.
>>
>> The gollvm build is broken at tip at the moment;  due to competing
>> demands on my time, I haven't been able to work on this problem. Your
>> patience is abbreviated.
>>
>> For now I suggest building with slightly older versions of the LLVM and
>> related repos. For example, this should work:
>>
>> gollvm commit:  0e34e09fc15cde73f1b9974f2a657360abb94b4f
>> libbacktrace commit:  2446c66076480ce07a6bd868badcbceb3eeecc2e
>> libffi commit:  ab1677106605aba1c27665964ff90bea59612ce3
>> gofrontend commit 7f33baa09a8172bb2c5f1ca0435d9efe3e194c9b
>> llvm-project commit 0ac213667df1afbba3f66cb4fc3ec51073b9c158
>>
>> Thanks, Than
>>
>>
>> On Mon, May 16, 2022 at 9:41 AM Honlim Chan <theu...@gmail.com> wrote:
>>
>>> 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
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "golang-nuts" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to golang-nuts+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/golang-nuts/f3e1bd90-86e3-42e9-b71d-17440225a543n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/golang-nuts/f3e1bd90-86e3-42e9-b71d-17440225a543n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAPW3W1%2BiYATDh_JpAyAFgzuQYtH0phnmd_WXNu5VmjKz%3Dk-wUg%40mail.gmail.com.

Reply via email to