Comments (5)
What is your environment and do all your tools work properly?
update the tools if the version of the tools is too old.
you can check the tools using
- protoc --version
- flatc --version
- cmake --version
from cnosdb.
@h4ofanya thanx for your reply.
vesion and environment
$ protoc --version
libprotoc 3.14.0
$ flatc --version
flatc version 2.0.0
$ cmake --version
cmake version 3.22.1
$ ./.bashrc
...
export PATH="$HOME/.cargo/bin:$PATH"
export CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true
Then
I have updated the protoc and the cmake and I think it is the newest version.
Then I use $make build
and find the same error.
Maybe there is something else wrong? :)
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:82:3
|
82 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> flatbuffers_generated::models::models::FieldType`
found signature `fn(&'a [u8], _) -> flatbuffers_generated::models::models::FieldType`
error[E0053]: method `push` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:93:5
|
93 | fn push(&self, dst: &mut [u8], _rest: &[u8]) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&flatbuffers_generated::models::models::FieldType, &mut [u8], usize)`
found signature `fn(&flatbuffers_generated::models::models::FieldType, &mut [u8], &[u8])`
error[E0185]: method `from_little_endian` has a `self` declaration in the impl, but not in the trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:106:3
|
106 | fn from_little_endian(self) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` used in impl
|
= note: `from_little_endian` from trait: `fn(<Self as EndianScalar>::Scalar) -> Self`
error[E0046]: not all trait items implemented, missing: `Scalar`
--> common/protos/src/generated/flatbuffers_generated/models.rs:98:1
|
98 | impl flatbuffers::EndianScalar for FieldType {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Scalar` in implementation
|
= help: implement the missing item: `type Scalar = /* Type */;`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:177:3
|
177 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> flatbuffers_generated::models::models::ColumnType`
found signature `fn(&'a [u8], _) -> flatbuffers_generated::models::models::ColumnType`
error[E0053]: method `push` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:188:5
|
188 | fn push(&self, dst: &mut [u8], _rest: &[u8]) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&flatbuffers_generated::models::models::ColumnType, &mut [u8], usize)`
found signature `fn(&flatbuffers_generated::models::models::ColumnType, &mut [u8], &[u8])`
error[E0185]: method `from_little_endian` has a `self` declaration in the impl, but not in the trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:201:3
|
201 | fn from_little_endian(self) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `self` used in impl
|
= note: `from_little_endian` from trait: `fn(<Self as EndianScalar>::Scalar) -> Self`
error[E0046]: not all trait items implemented, missing: `Scalar`
--> common/protos/src/generated/flatbuffers_generated/models.rs:193:1
|
193 | impl flatbuffers::EndianScalar for ColumnType {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Scalar` in implementation
|
= help: implement the missing item: `type Scalar = /* Type */;`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:228:5
|
228 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> PingBody<'_>`
found signature `fn(&'a [u8], _) -> PingBody<'_>`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:323:5
|
323 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> flatbuffers_generated::models::models::Values<'_>`
found signature `fn(&'a [u8], _) -> flatbuffers_generated::models::models::Values<'_>`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:474:5
|
474 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> Column<'_>`
found signature `fn(&'a [u8], _) -> Column<'_>`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:625:5
|
625 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> flatbuffers_generated::models::models::Table<'_>`
found signature `fn(&'a [u8], _) -> flatbuffers_generated::models::models::Table<'_>`
error[E0053]: method `follow` has an incompatible type for trait
--> common/protos/src/generated/flatbuffers_generated/models.rs:748:5
|
748 | fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
|
= note: expected signature `unsafe fn(&'a [u8], _) -> flatbuffers_generated::models::models::Points<'_>`
found signature `fn(&'a [u8], _) -> flatbuffers_generated::models::models::Points<'_>`
error[E0599]: no method named `safe_slice` found for struct `flatbuffers_generated::models::flatbuffers::Vector` in the current scope
--> common/protos/src/generated/flatbuffers_generated/models.rs:255:118
|
255 | self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(PingBody::VT_PAYLOAD, None).map(|v| v.safe_slice())
| ^^^^^^^^^^ method not found in `Vector<'_, u8>`
error[E0599]: no method named `safe_slice` found for struct `flatbuffers_generated::models::flatbuffers::Vector` in the current scope
--> common/protos/src/generated/flatbuffers_generated/models.rs:370:121
|
370 | self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, bool>>>(Values::VT_BOOL_VALUE, None).map(|v| v.safe_slice())
| ^^^^^^^^^^ method not found in `Vector<'_, bool>`
error[E0599]: no method named `safe_slice` found for struct `flatbuffers_generated::models::flatbuffers::Vector` in the current scope
--> common/protos/src/generated/flatbuffers_generated/models.rs:525:117
|
525 | self._tab.get::<flatbuffers::ForwardsUOffset<flatbuffers::Vector<'a, u8>>>(Column::VT_NULLBITS, None).map(|v| v.safe_slice())
| ^^^^^^^^^^ method not found in `Vector<'_, u8>`
error[E0308]: mismatched types
--> common/protos/src/lib.rs:99:12
|
99 | Ok(nullbit)
| -- ^^^^^^^ expected `Vector<'_, u8>`, found `&[u8]`
| |
| arguments to this enum variant are incorrect
|
= note: expected struct `flatbuffers_generated::models::flatbuffers::Vector<'_, u8>`
found reference `&[u8]`
help: the type constructed contains `&[u8]` due to the type of the argument passed
--> common/protos/src/lib.rs:99:9
|
99 | Ok(nullbit)
| ^^^-------^
| |
| this argument influences the type of `Ok`
note: tuple variant defined here
--> /build/rustc-Nv44LE/rustc-1.73.0+dfsg0ubuntu1~bpo0/library/core/src/result.rs:506:5
error[E0308]: mismatched types
--> common/protos/src/lib.rs:137:12
|
137 | Ok(values)
| -- ^^^^^^ expected `Vector<'_, bool>`, found `&[bool]`
| |
| arguments to this enum variant are incorrect
|
= note: expected struct `flatbuffers_generated::models::flatbuffers::Vector<'_, bool>`
found reference `&[bool]`
help: the type constructed contains `&[bool]` due to the type of the argument passed
--> common/protos/src/lib.rs:137:9
|
137 | Ok(values)
| ^^^------^
| |
| this argument influences the type of `Ok`
note: tuple variant defined here
--> /build/rustc-Nv44LE/rustc-1.73.0+dfsg0ubuntu1~bpo0/library/core/src/result.rs:506:5
Some errors have detailed explanations: E0046, E0053, E0185, E0308, E0599.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `protos` (lib) due to 18 previous errors
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:20: build] Error 101
What is your environment and do all your tools work properly?
update the tools if the version of the tools is too old.
you can check the tools using
- protoc --version
- flatc --version
- cmake --version
from cnosdb.
maybe you should compile the tools yourself XD
I think the version is out of date.
$ flatc --version
flatc version 23.5.26
$ protoc --version
libprotoc 25.1
$ cmake --version
cmake version 3.28.1
from cnosdb.
@h4ofanya thanx for pointing out the error, and I do update the version now. But there is still something wrong. Seems
$ flatc --version
flatc version 23.5.26
$ protoc --version
libprotoc 27.0-dev
$ cmake --version
cmake version 3.29.0-rc2
Then
Then I use make build
and find out
error[E0405]: cannot find trait
Allocator
in crateflatbuffers
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:242:76
|
242 | pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
242 - pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
242 + pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>(
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:285:56
|
285 | pub struct PingBodyBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
285 - pub struct PingBodyBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
285 + pub struct PingBodyBuilder<'a: 'b, 'b, A: Allocator + 'a> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:289:34
|
289 | impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> PingBodyBuilder<'a, 'b, A> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
289 - impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> PingBodyBuilder<'a, 'b, A> {
289 + impl<'a: 'b, 'b, A: Allocator + 'a> PingBodyBuilder<'a, 'b, A> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:347:76
|
347 | pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
347 - pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
347 + pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>(
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:434:54
|
434 | pub struct ValuesBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
434 - pub struct ValuesBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
434 + pub struct ValuesBuilder<'a: 'b, 'b, A: Allocator + 'a> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:438:34
|
438 | impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ValuesBuilder<'a, 'b, A> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
438 - impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ValuesBuilder<'a, 'b, A> {
438 + impl<'a: 'b, 'b, A: Allocator + 'a> ValuesBuilder<'a, 'b, A> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:516:76
|
516 | pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
516 - pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
516 + pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>(
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:603:54
|
603 | pub struct ColumnBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
603 - pub struct ColumnBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
603 + pub struct ColumnBuilder<'a: 'b, 'b, A: Allocator + 'a> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:607:34
|
607 | impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ColumnBuilder<'a, 'b, A> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
607 - impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> ColumnBuilder<'a, 'b, A> {
607 + impl<'a: 'b, 'b, A: Allocator + 'a> ColumnBuilder<'a, 'b, A> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:683:76
|
683 | pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
683 - pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
683 + pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>(
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:748:53
|
748 | pub struct TableBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
748 - pub struct TableBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
748 + pub struct TableBuilder<'a: 'b, 'b, A: Allocator + 'a> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:752:34
|
752 | impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> TableBuilder<'a, 'b, A> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
752 - impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> TableBuilder<'a, 'b, A> {
752 + impl<'a: 'b, 'b, A: Allocator + 'a> TableBuilder<'a, 'b, A> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:817:76
|
817 | pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
817 - pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
817 + pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>(
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:871:54
|
871 | pub struct PointsBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
871 - pub struct PointsBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
871 + pub struct PointsBuilder<'a: 'b, 'b, A: Allocator + 'a> {
|
error[E0405]: cannot find trait `Allocator` in crate `flatbuffers`
--> common/protos/src/generated/flatbuffers_generated/models.rs:875:34
|
875 | impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> PointsBuilder<'a, 'b, A> {
| ^^^^^^^^^ not found in `flatbuffers`
|
help: consider importing one of these items
|
15 + use core::alloc::Allocator;
|
15 + use std::alloc::Allocator;
|
help: if you import `Allocator`, refer to it directly
|
875 - impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> PointsBuilder<'a, 'b, A> {
875 + impl<'a: 'b, 'b, A: Allocator + 'a> PointsBuilder<'a, 'b, A> {
|
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> common/protos/src/generated/flatbuffers_generated/models.rs:286:30
|
286 | fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
| ^^^^^^^^^^^^^^^^^ - help: remove this generic argument
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/yuxinwei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flatbuffers-22.12.6/src/builder.rs:43:12
|
43 | pub struct FlatBufferBuilder<'fbb> {
| ^^^^^^^^^^^^^^^^^
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> common/protos/src/generated/flatbuffers_generated/models.rs:435:30
|
435 | fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
| ^^^^^^^^^^^^^^^^^ - help: remove this generic argument
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/yuxinwei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flatbuffers-22.12.6/src/builder.rs:43:12
|
43 | pub struct FlatBufferBuilder<'fbb> {
| ^^^^^^^^^^^^^^^^^
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> common/protos/src/generated/flatbuffers_generated/models.rs:604:30
|
604 | fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
| ^^^^^^^^^^^^^^^^^ - help: remove this generic argument
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/yuxinwei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flatbuffers-22.12.6/src/builder.rs:43:12
|
43 | pub struct FlatBufferBuilder<'fbb> {
| ^^^^^^^^^^^^^^^^^
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> common/protos/src/generated/flatbuffers_generated/models.rs:749:30
|
749 | fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
| ^^^^^^^^^^^^^^^^^ - help: remove this generic argument
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/yuxinwei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flatbuffers-22.12.6/src/builder.rs:43:12
|
43 | pub struct FlatBufferBuilder<'fbb> {
| ^^^^^^^^^^^^^^^^^
error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied
--> common/protos/src/generated/flatbuffers_generated/models.rs:872:30
|
872 | fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
| ^^^^^^^^^^^^^^^^^ - help: remove this generic argument
| |
| expected 0 generic arguments
|
note: struct defined here, with 0 generic parameters
--> /home/yuxinwei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flatbuffers-22.12.6/src/builder.rs:43:12
|
43 | pub struct FlatBufferBuilder<'fbb> {
| ^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0107, E0405.
For more information about an error, try `rustc --explain E0107`.
error: could not compile `protos` (lib) due to 20 previous errors
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:20: build] Error 101
Could you help me with this? Thanx! : )
from cnosdb.
Related Issues (20)
- [Bug] test_reselect_new_leader failed HOT 1
- Creating an external table in the format of `ndjson` is invalid
- [BUG][COPY INTO] "Too many open files" occasionally appears when exporting HOT 5
- [DISCUSS]Is the current way of handling "division by zero calculation" reasonable?
- [BUG]Computing and storage separate deployment "show datanodes" don't show query node. HOT 1
- Error creating `placement_policy` using `singleton` mode
- [BUG][function][count]Calculate the number of tags, cnosdb process panic HOT 1
- [BUG]The data node "Unreachable" cannot be restored to "healthy" after HOT 3
- [Bug][Doc] The information in the Infrastructure Storage Separation section of the documentation is outdated.
- query and insert very slow HOT 2
- [BUG]Container version 2.4 is upgraded to community-2024-02-19 data is incompatible HOT 2
- [BUG]TSM file xxx size less than index offset xxx HOT 1
- [Doc][Bug]The official configuration document states that "cache" refers to the channel capacity size without units.
- [Doc][Bug] inconsistencies between the cluster in the configuration file and the actual community edition configuration
- [BUG] A role can be assigned read and write permissions to a non-existent db. HOT 1
- [BUG] The numbers of vnodeids found in usageschema and show vnode are inconsistent HOT 1
- tenant、database、owner meaningful confusion,Please use it in a standardized manner
- change del_tsf/add_tsf to enum in VersionEdit HOT 2
- [Bug] SQL insert failed with string value contains char `;` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnosdb.