You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recommend add instructions on how to install the right version of deps(a prepare shell script will be good), so devlopers don't need to install it manually.
The second compiling error
cat@LAPTOP-V6U0QKD4:~/code/greptimedb$ cargo build Compiling rustpython-parser v0.1.2 (https://github.com/discord9/RustPython?rev=183e8dab#183e8dab) Compiling common-recordbatch v0.1.0 (/home/cat/code/greptimedb/src/common/recordbatch) Compiling api v0.1.0 (/home/cat/code/greptimedb/src/api) Compiling common-query v0.1.0 (/home/cat/code/greptimedb/src/common/query)error[E0308]: mismatched types --> src/api/src/v1/column_def.rs:27:13 |26 | let constraint = match &self.default_constraint { | ------------------------ this expression has type `&Vec<u8>`27 | None => None, | ^^^^ expected struct `Vec`, found enum `Option` | = note: expected struct `Vec<u8>` found enum `Option<_>`error[E0308]: mismatched types --> src/api/src/v1/column_def.rs:28:13 |26 | let constraint = match &self.default_constraint { | ------------------------ this expression has type `&Vec<u8>`27 | None => None,28 | Some(v) => Some( | ^^^^^^^ expected struct `Vec`, found enum `Option` | = note: expected struct `Vec<u8>` found enum `Option<_>`For more information about this error, try `rustc --explain E0308`.error: could not compile `api` due to 2 previous errorswarning: build failed, waiting for other jobs to finish... Building [=======================> ] 751/782: rustpython-parser(build)
Hi @chenyukang, sorry for the convenient. This error is caused by the incorrect version of protoc, that's right. I'm afraid the newly updated version 3.6.1 is not enough. I've searched the ubuntu package list, and it looks like you need a newer ubuntu to reach the requirement (through #6163.12 may work). If your system is not ready for update maybe through docker to achieve this is a better choice. Or another workaround is install the pre-build binary from protobuf's github release, protoc-*-linux-x86_64.zip is what suit your system.
And the second compile error is caused by those optional keywords in .proto files you removed. It changes the types in the generated code. Revert those changes should fix this (after a correct version of protoc is installed). Thanks for your patient, please let us know if it works for you ❤️
What type of bug is this?
Configuration, Unexpected error
What subsystems are affected?
Standalone mode, Other
What happened?
I'm completed newcomer for this project, so I follow the document try to build it locally, I work in WSL:
Linux LAPTOP-V6U0QKD4 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
There are two errors I met, the first one is:
This is caused by version of protoc is not right, I install protoc with command:
sudo apt install -y protobuf-compiler
my local version is:
I give a quick fix for it:
Recommend add instructions on how to install the right version of deps(a prepare shell script will be good), so devlopers don't need to install it manually.
The second compiling error
My
rustc -vV
is:But it's too late now, may need more dig later.
What operating system did you use?
Linux LAPTOP-V6U0QKD4 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output and stack trace
No response
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: