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

telemetry: target/debs/sonic-telemetry_0.1_amd64.deb fails to build in latest #2229

Closed
nikos-github opened this issue Nov 6, 2018 · 3 comments

Comments

@nikos-github
Copy link
Collaborator

google.golang.org/grpc/resolver/dns

/tmp/go/src/google.golang.org/grpc/resolver/dns/dns_resolver.go:66: cannot use net.DefaultResolver (type *net.Resolver) as type netResolver in assignment:
*net.Resolver does not implement netResolver (wrong type for LookupHost method)
have LookupHost("context".Context, string) ([]string, error)
want LookupHost("golang.org/x/net/context".Context, string) ([]string, error)
/tmp/go/src/google.golang.org/grpc/resolver/dns/dns_resolver.go:84: cannot use *net.Resolver literal (type *net.Resolver) as type netResolver in return argument:
*net.Resolver does not implement netResolver (wrong type for LookupHost method)
have LookupHost("context".Context, string) ([]string, error)
want LookupHost("golang.org/x/net/context".Context, string) ([]string, error)
/tmp/go/src/google.golang.org/grpc/resolver/dns/dns_resolver.go:86: unknown field 'Dial' in struct literal of type net.Resolver
github.com/go-redis/redis/internal
golang.org/x/text/secure/bidirule
github.com/go-redis/redis/internal/pool
github.com/go-redis/redis
golang.org/x/net/idna
google.golang.org/grpc/internal/syscall

google.golang.org/grpc/internal/syscall

/tmp/go/src/google.golang.org/grpc/internal/syscall/syscall_linux.go:79: tcpconn.SyscallConn undefined (type *net.TCPConn has no field or method SyscallConn)
/tmp/go/src/google.golang.org/grpc/internal/syscall/syscall_linux.go:100: tcpconn.SyscallConn undefined (type *net.TCPConn has no field or method SyscallConn)
golang.org/x/net/http/httpguts
golang.org/x/net/http2

golang.org/x/net/http2

/tmp/go/src/golang.org/x/net/http2/server.go:220: s.RegisterOnShutdown undefined (type *http.Server has no field or method RegisterOnShutdown)
github.com/golang/protobuf/ptypes/any
github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/openconfig/gnmi/proto/gnmi_ext
google.golang.org/grpc/credentials
google.golang.org/grpc/encoding/proto
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/genproto/googleapis/rpc/status
github.com/golang/protobuf/ptypes
google.golang.org/grpc/binarylog/grpc_binarylog_v1

google.golang.org/grpc/credentials

/tmp/go/src/google.golang.org/grpc/credentials/syscall.go:29: undefined: syscall.RawConn
/tmp/go/src/google.golang.org/grpc/credentials/syscall.go:30: undefined: syscall.Conn
google.golang.org/grpc/status
google.golang.org/grpc/internal/binarylog
Makefile:8: recipe for target 'sonic-telemetry' failed
make[2]: *** [sonic-telemetry] Error 2
make[2]: Leaving directory '/sonic/src/telemetry'
dh_auto_build: make -j1 returned exit code 2
debian/rules:3: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/sonic/src/telemetry'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[ FAIL LOG END ] [ target/debs/sonic-telemetry_0.1_amd64.deb ]
slave.mk:248: recipe for target 'target/debs/sonic-telemetry_0.1_amd64.deb' failed
make: *** [target/debs/sonic-telemetry_0.1_amd64.deb] Error 1
Makefile.work:127: recipe for target 'target/sonic-broadcom.bin' failed
make[1]: *** [target/sonic-broadcom.bin] Error 2
make[1]: Leaving directory '/home/nikos/sonic-test/sonic-buildimage'
Makefile:6: recipe for target 'target/sonic-broadcom.bin' failed
make: *** [target/sonic-broadcom.bin] Error 2

@habeebmohammed
Copy link
Contributor

Hi
I see below error when built sonic-telemetry

google.golang.org/grpc/credentials/internal

/tmp/go/src/google.golang.org/grpc/credentials/internal/syscallconn.go:29: syntax error: unexpected = in type declaration
google.golang.org/grpc/internal/backoff
google.golang.org/grpc/resolver/passthrough
github.com/go-redis/redis/internal/proto
google.golang.org/grpc/connectivity
google.golang.org/grpc/naming
google.golang.org/grpc/resolver/dns
golang.org/x/text/unicode/norm

google.golang.org/grpc/resolver/dns

/tmp/go/src/google.golang.org/grpc/resolver/dns/dns_resolver.go:86: unknown field 'Dial' in struct literal of type net.Resolver
golang.org/x/net/trace
github.com/go-redis/redis/internal
github.com/go-redis/redis/internal/pool
golang.org/x/text/secure/bidirule
github.com/go-redis/redis
golang.org/x/net/idna
google.golang.org/grpc/internal/syscall

google.golang.org/grpc/internal/syscall

/tmp/go/src/google.golang.org/grpc/internal/syscall/syscall_linux.go:79: tcpconn.SyscallConn undefined (type *net.TCPConn has no field or method SyscallConn)
/tmp/go/src/google.golang.org/grpc/internal/syscall/syscall_linux.go:100: tcpconn.SyscallConn undefined (type *net.TCPConn has no field or method SyscallConn)
golang.org/x/net/http/httpguts
golang.org/x/net/http2

golang.org/x/net/http2

/tmp/go/src/golang.org/x/net/http2/server.go:220: s.RegisterOnShutdown undefined (type *http.Server has no field or method RegisterOnShutdown)
github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/golang/protobuf/ptypes/any
github.com/openconfig/gnmi/proto/gnmi_ext
google.golang.org/grpc/encoding/proto
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/genproto/googleapis/rpc/status
github.com/golang/protobuf/ptypes
google.golang.org/grpc/binarylog/grpc_binarylog_v1
google.golang.org/grpc/status
google.golang.org/grpc/internal/binarylog
Makefile:8: recipe for target 'sonic-telemetry' failed
make[2]: *** [sonic-telemetry] Error 2
make[2]: Leaving directory '/sonic/src/telemetry'
dh_auto_build: make -j1 returned exit code 2
debian/rules:3: recipe for target 'build' failed
make[1]: *** [build] Error 2
make[1]: Leaving directory '/sonic/src/telemetry'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[ FAIL LOG END ] [ target/debs/sonic-telemetry_0.1_amd64.deb ]
slave.mk:237: recipe for target 'target/debs/sonic-telemetry_0.1_amd64.deb' failed
make: *** [target/debs/sonic-telemetry_0.1_amd64.deb] Error 1
Makefile:83: recipe for target 'target/sonic-barefoot.bin' failed
make: *** [target/sonic-barefoot.bin] Error 2
habeeb@nsit-160:/sonic_tele$ go version
go version go1.11.2 linux/amd64
habeeb@nsit-160:
/sonic_tele$

I still see this issue in branch 201807 and go1.11.2 version. Please let me know if I miss anything.

@PrabhuSreenivasan
Copy link
Contributor

PrabhuSreenivasan commented Dec 20, 2018 via email

@habeebmohammed
Copy link
Contributor

Thanks. Yes, that works fine.

-Habeeb

prsunny pushed a commit that referenced this issue Apr 21, 2022
Swss Commit update:

1fd1dbf Add support for route flow counter (#2094)
d8fadc6 [QoS] Resolve an issue in the sequence where a referenced object removed and then the referencing object deleting and then re-adding (#2210)
eaf7264 [macsecorch]: MACsec with pfc (#2095)
a32b611 [azp]: Reduce diff coverage to 50% threshhold (#2227)
6301db7 [Code owner] Set owners for auto reviews (#2229)
d1fb3dd [BFD]Retry create BFD with different source UDP port on failure (#2225)
53620f3 [orchagent] add & remove port counters dynamically each time port was added or removed (#2019)
cf216be Change ERR to Notice for tunnel term create fail (#2219)
Ndancejic pushed a commit to Ndancejic/sonic-buildimage that referenced this issue May 3, 2022
* Set code owners for auto review requests
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

No branches or pull requests

4 participants