Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error on Ubuntu 20.04: Server does not implement system.SystemServer (missing system.mustEmbedUnimplementedSystemServer method) #7268

Closed
ncalad opened this issue Apr 8, 2021 · 1 comment · Fixed by sonic-net/sonic-telemetry#76

Comments

@ncalad
Copy link

ncalad commented Apr 8, 2021

Server does not implement system.SystemServer (missing system.mustEmbedUnimplementedSystemServer method)

Steps to reproduce the issue:

  1. git clone https://github.com/Azure/sonic-buildimage.git
  2. make init
  3. make configure PLATFORM=broadcom
  4. make all

Describe the results you received:

...
patch -d vendor -p0 < patches/gnmi_get.patch
patching file ./github.com/jipanyang/gnxi/gnmi_get/gnmi_get.go
touch vendor/.done
/usr/local/go/bin/go install -mod=vendor github.com/Azure/sonic-telemetry/telemetry

github.com/Azure/sonic-telemetry/gnmi_server

gnmi_server/server.go:144:42: cannot use srv (type *Server) as type system.SystemServer in argument to system.RegisterSystemServer:
*Server does not implement system.SystemServer (missing system.mustEmbedUnimplementedSystemServer method)
make[2]: *** [Makefile:54: sonic-telemetry] Error 2
make[2]: Leaving directory '/sonic/src/sonic-telemetry'
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [debian/rules:7: build] Error 2
make[1]: Leaving directory '/sonic/src/sonic-telemetry'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
[ FAIL LOG END ] [ target/debs/buster/sonic-telemetry_0.1_amd64.deb ]
make: *** [slave.mk:454: target/debs/buster/sonic-telemetry_0.1_amd64.deb] Error 1

Describe the results you expected:

I expected build to proceed to completion

Additional information you deem important (e.g. issue happens only occasionally):

This happens again if I re-run 'make all'

@gord1306
Copy link

gord1306 commented Apr 9, 2021

refer sonic-net/sonic-telemetry#76

lguohan pushed a commit to sonic-net/sonic-telemetry that referenced this issue Apr 9, 2021
Fix sonic-net/sonic-buildimage#7268

- Why I did it
The error message below is occurred in building image.
```
gnmi_server/server.go:144:42: cannot use srv (type *Server) as type system.SystemServer in argument to system.RegisterSystemServer:
  *Server does not implement system.SystemServer (missing system.mustEmbedUnimplementedSystemServer method)
```

- How I did it
Lock the version of github.com/openconfig/gnoi to previous version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants