Re: [go-nuts] Build kubernetes with gollvm

2024-01-28 Thread nanzi yang
Hello Yuan Ting: I am trying to build Kubernetes with gollvm, and I am glad you have made some progress. Did you finish compiling Kubernetes with gollvm and generating IR? If it is true, could you show me some practical steps so I can compile the Kubernetes to LLVM IR files? Looking forward to y

Re: [go-nuts] Build kubernetes with gollvm

2020-09-26 Thread Ivan Serdyuk
Brendan, could you review this and express your vision against the usage of https://godoc.org/k8s.io/kubernetes/third_party/forked/golang/reflect https://golang.org/pkg/reflect/ https://github.com/modern-go/reflect2 packages?

Re: [go-nuts] Build kubernetes with gollvm

2020-07-28 Thread Yuan Ting
Hi Ivan, Yes, I still try to build famous projects by gollvm but there are still some troubles (such as https://groups.google.com/d/msg/golang-nuts/2fIk7hbbYJc/zIh3B4tbAAAJ ) The trouble mentioned here is gccgo compatibility of reflect2 (a package imported by k8s). The developers of reflect2 giv

Re: [go-nuts] Build kubernetes with gollvm

2020-07-28 Thread Ivan Serdyuk
Yuan, are you still working on gollvm based port of k8s? Ivan On Saturday, July 20, 2019 at 5:32:03 AM UTC+3 Yuan Ting wrote: > OK, I will check out the reflect2 package and take a look. Thanks a lot > for your direction! > > Best, > Ting > > On Friday, July 19, 2019 at 10:30:32 PM UTC+8, Ian L

Re: [go-nuts] Build kubernetes with gollvm

2019-07-19 Thread Yuan Ting
OK, I will check out the reflect2 package and take a look. Thanks a lot for your direction! Best, Ting On Friday, July 19, 2019 at 10:30:32 PM UTC+8, Ian Lance Taylor wrote: > > On Fri, Jul 19, 2019 at 1:11 AM Yuan Ting > > wrote: > > > > Sorry to have troubled you again, I found that many f

Re: [go-nuts] Build kubernetes with gollvm

2019-07-19 Thread Ian Lance Taylor
On Fri, Jul 19, 2019 at 1:11 AM Yuan Ting wrote: > > Sorry to have troubled you again, I found that many famous Go projects also > import github.com/modern-go/reflect2 , such as kubernetes and moby. According > to the second paragraph in your explanation, these popular projects will also > fai

Re: [go-nuts] Build kubernetes with gollvm

2019-07-19 Thread Yuan Ting
Sorry to have troubled you again, I found that many famous Go projects also import github.com/modern-go/reflect2 , such as kubernetes and moby. According to the second paragraph in your explanation, these popular projects will also failed in compilation. I think this may be a big challenge for

Re: [go-nuts] Build kubernetes with gollvm

2019-07-18 Thread Yuan Ting
Thank you. The explanation really makes sense. I think I should modify the source code of etcd, or change to another project that is not so hackful. On Thursday, July 18, 2019 at 10:55:39 PM UTC+8, Ian Lance Taylor wrote: > > On Thu, Jul 18, 2019 at 6:50 AM Yuan Ting > > wrote: > > > > Thank

Re: [go-nuts] Build kubernetes with gollvm

2019-07-18 Thread Ian Lance Taylor
On Thu, Jul 18, 2019 at 6:50 AM Yuan Ting wrote: > > Thank you for your fix. I have some curious about the difference between the > main Go compiler and gollvm. I read gollvm's readme and know that the main > difference comes from the efficiency of GC. Is the other difference causes > the symbo

Re: [go-nuts] Build kubernetes with gollvm

2019-07-18 Thread Yuan Ting
Hi Than Thank you for your fix. I have some curious about the difference between the main Go compiler and gollvm. I read gollvm's readme and know that the main difference comes from the efficiency of GC. Is the other difference causes the symbol undefined reference as you mentioned above? Or so

Re: [go-nuts] Build kubernetes with gollvm

2019-07-17 Thread 'Than McIntosh' via golang-nuts
Hi again, Regarding building https://github.com/etcd-io/etcd.git with gollvm -- I have a fix for the compiler problem you ran into, but in my testing I've run into other problems that are not amenable to compiler fixes. Specifically, it looks as though some of the dependent packages for etcd are

Re: [go-nuts] Build kubernetes with gollvm

2019-07-10 Thread Yuan Ting
Thank you, I will continue to pay attention to it. Hope those bugs can be solved :) Thank you again for your patience. On Wednesday, July 10, 2019 at 7:56:03 PM UTC+8, Than McIntosh wrote: > > OK, thanks for checking on that. > > Sounds like this is a new problem (not too surprising, since thi

Re: [go-nuts] Build kubernetes with gollvm

2019-07-10 Thread 'Than McIntosh' via golang-nuts
OK, thanks for checking on that. Sounds like this is a new problem (not too surprising, since this is an area of the compiler that is undergoing a lot of changes in recent weeks; tip is a bit unstable). I have my hands full with a couple of other bugs that I am juggling right now; filed issue htt

Re: [go-nuts] Build kubernetes with gollvm

2019-07-09 Thread Yuan Ting
My gollvm version is commit 29005f52b3501c489cb1653506cd479d5a178e98 (HEAD -> master, origin/master, origin/HEAD) Author: Cherry Zhang <...> Date: Sat Jun 29 00:25:46 2019 -0400 bridge: support builtin memset Change-Id: I7321f57e0d58c0ff5c3a19f7cbf5721fabbf1263 Reviewed-on: htt

Re: [go-nuts] Build kubernetes with gollvm

2019-07-09 Thread 'Than McIntosh' via golang-nuts
That stack trace looks a lot like https://github.com/golang/go/issues/32778 which was fixed last week. What vintage is your gollvm? Thanks, Than On Tue, Jul 9, 2019 at 9:54 AM Yuan Ting wrote: > In addition, I also failed to build etcd. > > $ git clone https://github.com/etcd-io/etcd.git > $

Re: [go-nuts] Build kubernetes with gollvm

2019-07-09 Thread Yuan Ting
In addition, I also failed to build etcd. $ git clone https://github.com/etcd-io/etcd.git $ cd etcd/ && ./build go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags # go.etcd.io/etcd/etcdserver/api/rafthttp #0 0x55ecc4cfa34a llvm::sys::PrintStackTra

Re: [go-nuts] Build kubernetes with gollvm

2019-07-09 Thread Yuan Ting
Thank you for your help. I didn't add any flags about modules when compiling gollvm or compiling k8s. On Tuesday, July 9, 2019 at 9:10:55 PM UTC+8, Than McIntosh wrote: > > Hi, > I'll take a look later this morning; off the top of my head I'm not sure > what the issue might be. > Question: are

Re: [go-nuts] Build kubernetes with gollvm

2019-07-09 Thread 'Than McIntosh' via golang-nuts
Hi, I'll take a look later this morning; off the top of my head I'm not sure what the issue might be. Question: are you building with modules enabled? Thanks ,Than On Mon, Jul 8, 2019 at 11:05 PM Yuan Ting wrote: > Hi, I'm working on converting some Go projects to llvm IR for static > analysis.

[go-nuts] Build kubernetes with gollvm

2019-07-08 Thread Yuan Ting
Hi, I'm working on converting some Go projects to llvm IR for static analysis. When I build kubernetes with gollvm, an unexpected error occurred as : I0709 10:48:29.158892 16573 deepcopy.go:266] Type k8s.io/apimachinery/pkg/apis/meta/v1.map_StatusDetails is not copyable I0709 10:48:29.158899