influxdata / influxdata/influxdb

build on kali_linux Get too many errors

Open
#23,670 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Hello, When i Build On Kali_linux ,I get some errors, please help me.
my OS info:
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux

go version:
go version go1.18.4 linux/amd64

steps:
1:git clone https://github.com/influxdata/influxdb.git
2:make

error info:
pkg/tracing/spancontext.go:16:23: cannot use &wire.SpanContext{…} (value of type *wire.SpanContext) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*wire.SpanContext does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
pkg/tracing/spancontext.go:24:31: cannot use &ws (value of type *wire.SpanContext) as type protoreflect.ProtoMessage in argument to proto.Unmarshal:
*wire.SpanContext does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
pkg/tracing/trace_encoding.go:80:23: cannot use &wt (value of type *wire.Trace) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*wire.Trace does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
pkg/tracing/trace_encoding.go:116:34: cannot use &wt (value of type *wire.Trace) as type protoreflect.ProtoMessage in argument to proto.Unmarshal:
*wire.Trace does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
# github.com/influxdata/influxdb/v2/influxql/query
influxql/query/iterator.gen.go:2631:29: cannot use encodeFloatPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.gen.go:5295:29: cannot use encodeIntegerPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.gen.go:7959:29: cannot use encodeUnsignedPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.gen.go:10609:29: cannot use encodeStringPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.gen.go:13259:29: cannot use encodeBooleanPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.go:930:23: cannot use encodeIteratorOptions(opt) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".IteratorOptions) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".IteratorOptions does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.go:936:33: cannot use &pb (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".IteratorOptions) as type protoreflect.ProtoMessage in argument to proto.Unmarshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".IteratorOptions does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/iterator.go:1357:28: cannot use &internal.Point{…} (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/point.gen.go:170:28: cannot use encodeFloatPoint(p) (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Marshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/point.gen.go:219:34: cannot use &pb (value of type *"github.com/influxdata/influxdb/v2/influxql/query/internal".Point) as type protoreflect.ProtoMessage in argument to proto.Unmarshal:
*"github.com/influxdata/influxdb/v2/influxql/query/internal".Point does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
influxql/query/point.gen.go:219:34: too many errors
make: *** [GNUmakefile:84:bin/linux/influxd]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the issue's Kali Linux, Go 1.18.4, and `make` steps. Read GNUmakefile at target line 84 and the reported files, including pkg/tracing/spancontext.go, pkg/tracing/trace_encoding.go, and influxql/query; done means the project builds successfully without these ProtoMessage errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.