<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018, 9:15 AM Kaushal M &lt;<a href="mailto:kshlmster@gmail.com">kshlmster@gmail.com</a>&gt; 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 &lt;<a href="mailto:kshlmster@gmail.com" target="_blank" rel="noreferrer">kshlmster@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Tue, Oct 30, 2018 at 2:20 AM Niels de Vos &lt;<a href="mailto:ndevos@redhat.com" target="_blank" rel="noreferrer">ndevos@redhat.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; not sure what is going wrong when building GD2 for the CentOS Storage<br>
&gt; &gt; SIG, but it seems to fail with some golang import issues:<br>
&gt; &gt;<br>
&gt; &gt;   <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>
&gt; &gt;<br>
&gt; &gt;   + cd glusterd2-v5.0-0<br>
&gt; &gt;   ++ pwd<br>
&gt; &gt;   + export GOPATH=/builddir/build/BUILD/glusterd2-v5.0-0:/usr/share/gocode<br>
&gt; &gt;   + GOPATH=/builddir/build/BUILD/glusterd2-v5.0-0:/usr/share/gocode<br>
&gt; &gt;   + mkdir -p src/<a href="http://github.com/gluster" rel="noreferrer noreferrer" target="_blank">github.com/gluster</a><br>
&gt; &gt;   + ln -s ../../../ src/<a href="http://github.com/gluster/glusterd2" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2</a><br>
&gt; &gt;   + pushd src/<a href="http://github.com/gluster/glusterd2" rel="noreferrer noreferrer" target="_blank">github.com/gluster/glusterd2</a><br>
&gt; &gt;   ~/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>
&gt; &gt;   + /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>
&gt; &gt;   Plugins Enabled<br>
&gt; &gt;   Building glusterd2 v5.0-0<br>
&gt; &gt;   # <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>
&gt; &gt;   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>
&gt; &gt;         *authTokenCredential does not implement credentials.PerRPCCredentials (wrong type for GetRequestMetadata method)<br>
&gt; &gt;                 have GetRequestMetadata(&quot;context&quot;.Context, ...string) (map[string]string, error)<br>
&gt; &gt;                 want GetRequestMetadata(&quot;<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>&quot;.Context, ...string) (map[string]string, error)<br>
&gt; &gt;   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>
&gt; &gt;         *healthBalancer does not implement grpc.Balancer (wrong type for Get method)<br>
&gt; &gt;                 have Get(&quot;context&quot;.Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)<br>
&gt; &gt;                 want Get(&quot;<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>&quot;.Context, grpc.BalancerGetOptions) (grpc.Address, func(), error)<br>
&gt; &gt;   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>
&gt; &gt;         *retryKVClient does not implement etcdserverpb.KVClient (wrong type for Compact method)<br>
&gt; &gt;                 have Compact(&quot;context&quot;.Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)<br>
&gt; &gt;                 want Compact(&quot;<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>&quot;.Context, *etcdserverpb.CompactionRequest, ...grpc.CallOption) (*etcdserverpb.CompactionResponse, error)<br>
&gt; &gt;   ...<br>
&gt; &gt;<br>
&gt; &gt; Did anyone else try to build this on CentOS-7 (without EPEL)?<br>
&gt;<br>
&gt; This occurs when Go&lt;1.9 is used to build GD2. The updated etcd version<br>
&gt; we vendor (etcd 3.3) requires Go&gt;=1.9 to compile.<br>
&gt; But the failure here is strange, because CentOS-7 has golang-1.9.4 in<br>
&gt; its default repositories.<br>
&gt; Don&#39;t know what&#39;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>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Niels<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; <a href="mailto:Gluster-devel@gluster.org" target="_blank" rel="noreferrer">Gluster-devel@gluster.org</a><br>
&gt; &gt; <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>