<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018, 9:15 AM Kaushal M <<a href="mailto:kshlmster@gmail.com">kshlmster@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Oct 30, 2018 at 11:50 AM Kaushal M <<a href="mailto:kshlmster@gmail.com" target="_blank" rel="noreferrer">kshlmster@gmail.com</a>> wrote:<br>
><br>
> On Tue, Oct 30, 2018 at 2:20 AM Niels de Vos <<a href="mailto:ndevos@redhat.com" target="_blank" rel="noreferrer">ndevos@redhat.com</a>> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > not sure what is going wrong when building GD2 for the CentOS Storage<br>
> > SIG, but it seems to fail with some golang import issues:<br>
> ><br>
> > <a href="https://cbs.centos.org/kojifiles/work/tasks/5141/595141/build.log" rel="noreferrer noreferrer" target="_blank">https://cbs.centos.org/kojifiles/work/tasks/5141/595141/build.log</a><br>
> ><br>
> > + cd glusterd2-v5.0-0<br>
> > ++ pwd<br>
> > + export GOPATH=/builddir/build/BUILD/glusterd2-v5.0-0:/usr/share/gocode<br>
> > + GOPATH=/builddir/build/BUILD/glusterd2-v5.0-0:/usr/share/gocode<br>
> > + mkdir -p src/<a href="http://github.com/gluster" rel="noreferrer noreferrer" target="_blank">github.com/gluster</a><br>
> > + ln -s ../../../ src/<a href="http://github.com/gluster/glusterd2" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2</a><br>
> > + pushd src/<a href="http://github.com/gluster/glusterd2" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2</a><br>
> > ~/build/BUILD/glusterd2-v5.0-0/src/<a href="http://github.com/gluster/glusterd2" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2</a> ~/build/BUILD/glusterd2-v5.0-0<br>
> > + /usr/bin/make PREFIX=/usr EXEC_PREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin DATADIR=/usr/share LOCALSTATEDIR=/var/lib LOGDIR=/var/log SYSCONFDIR=/etc FASTBUILD=off glusterd2<br>
> > Plugins Enabled<br>
> > Building glusterd2 v5.0-0<br>
> > # <a href="http://github.com/gluster/glusterd2/vendor/github.com/coreos/etcd/clientv3" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2/vendor/github.com/coreos/etcd/clientv3</a><br>
> > vendor/<a href="http://github.com/coreos/etcd/clientv3/client.go:346" rel="noreferrer noreferrer" target="_blank">github.com/coreos/etcd/clientv3/client.go:346</a>: cannot use c.tokenCred (type *authTokenCredential) as type credentials.PerRPCCredentials in argument to grpc.WithPerRPCCredentials:<br>
> > *authTokenCredential does not implement credentials.PerRPCCredentials (wrong type for GetRequestMetadata method)<br>
> > have GetRequestMetadata("context".Context, ...string) (map[string]string, error)<br>
> > want GetRequestMetadata("<a href="http://github.com/gluster/glusterd2/vendor/golang.org/x/net/context" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2/vendor/golang.org/x/net/context</a>".Context, ...string) (map[string]string, error)<br>
> > vendor/<a href="http://github.com/coreos/etcd/clientv3/client.go:421" rel="noreferrer noreferrer" target="_blank">github.com/coreos/etcd/clientv3/client.go:421</a>: cannot use client.balancer (type *healthBalancer) as type grpc.Balancer in argument to grpc.WithBalancer:<br>
> > *healthBalancer does not implement grpc.Balancer (wrong type for Get method)<br>
> > have Get("context".Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)<br>
> > want Get("<a href="http://github.com/gluster/glusterd2/vendor/golang.org/x/net/context" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2/vendor/golang.org/x/net/context</a>".Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)<br>
> > vendor/<a href="http://github.com/coreos/etcd/clientv3/retry.go:145" rel="noreferrer noreferrer" target="_blank">github.com/coreos/etcd/clientv3/retry.go:145</a>: cannot use retryKVClient literal (type *retryKVClient) as type etcdserverpb.KVClient in return argument:<br>
> > *retryKVClient does not implement etcdserverpb.KVClient (wrong type for Compact method)<br>
> > have Compact("context".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)<br>
> > want Compact("<a href="http://github.com/gluster/glusterd2/vendor/golang.org/x/net/context" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2/vendor/golang.org/x/net/context</a>".Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)<br>
> > ...<br>
> ><br>
> > Did anyone else try to build this on CentOS-7 (without EPEL)?<br>
><br>
> This occurs when Go<1.9 is used to build GD2. The updated etcd version<br>
> we vendor (etcd 3.3) requires Go>=1.9 to compile.<br>
> But the failure here is strange, because CentOS-7 has golang-1.9.4 in<br>
> its default repositories.<br>
> Don't know what's going wrong here.<br>
<br>
Looked at the logs again. This is an aarch64 build. It seems that<br>
CentOS-7 for aarch64 is still on go1.8.<br>
So, we could disable aarch64 for GD2 until the newer Go compiler is available.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">And open a BZ (RFE) on CentOS to upgrade, their Go? Or can it be taken from scl? </div><div dir="auto">Y. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
><br>
> ><br>
> > Thanks,<br>
> > Niels<br>
> > _______________________________________________<br>
> > Gluster-devel mailing list<br>
> > <a href="mailto:Gluster-devel@gluster.org" target="_blank" rel="noreferrer">Gluster-devel@gluster.org</a><br>
> > <a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a><br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank" rel="noreferrer">Gluster-devel@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div></div></div>