GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.26k stars 307 forks source link

cargo build #4381

Open hadoop835 opened 3 months ago

hadoop835 commented 3 months ago

What type of bug is this?

Crash

What subsystems are affected?

Standalone mode

Minimal reproduce step

error: failed to run custom build command for substrait v0.34.1

Caused by: process didn't exit successfully: /usr/local/rustworkspace/greptimedb/target/debug/build/substrait-fe0c8ee7c510b450/build-script-build (exit status: 1) --- stdout cargo:rerun-if-env-changed=FORCE_REBUILD cargo:rerun-if-changed=substrait cargo:rerun-if-changed=substrait/text/simple_extensions_schema.yaml cargo:rerun-if-changed=substrait/proto/substrait/algebra.proto cargo:rerun-if-changed=substrait/proto/substrait/capabilities.proto cargo:rerun-if-changed=substrait/proto/substrait/extended_expression.proto cargo:rerun-if-changed=substrait/proto/substrait/extensions/extensions.proto cargo:rerun-if-changed=substrait/proto/substrait/function.proto cargo:rerun-if-changed=substrait/proto/substrait/parameterized_types.proto cargo:rerun-if-changed=substrait/proto/substrait/plan.proto cargo:rerun-if-changed=substrait/proto/substrait/type.proto cargo:rerun-if-changed=substrait/proto/substrait/type_expressions.proto

--- stderr Error: Custom { kind: Other, error: "protoc failed: google/protobuf/any.proto: File not found.\nsubstrait/extensions/extensions.proto:6:1: Import \"google/protobuf/any.proto\" was not found or had errors.\nsubstrait/extensions/extensions.proto:75:3: \"google.protobuf.Any\" is not defined.\nsubstrait/extensions/extensions.proto:78:3: \"google.protobuf.Any\" is not defined.\ngoogle/protobuf/empty.proto: File not found.\nsubstrait/type.proto:6:1: Import \"google/protobuf/empty.proto\" was not found or had errors.\nsubstrait/type.proto:210:7: \"google.protobuf.Empty\" is not defined.\nsubstrait/algebra.proto:6:1: Import \"google/protobuf/any.proto\" was not found or had errors.\nsubstrait/algebra.proto:7:1: Import \"substrait/extensions/extensions.proto\" was not found or had errors.\nsubstrait/algebra.proto:8:1: Import \"substrait/type.proto\" was not found or had errors.\nsubstrait/algebra.proto:46:7: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:52:7: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:40:5: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:25:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:78:5: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:89:5: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:140:9: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:95:5: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:60:3: \"NamedStruct\" is not defined.\nsubstrait/algebra.proto:64:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:152:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:178:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:187:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:199:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:217:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:256:5: \"Type\" is not defined.\nsubstrait/algebra.proto:244:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:275:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:283:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:293:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:310:3: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:316:3: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:323:3: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:377:7: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:342:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:459:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:465:3: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:476:3: \"NamedStruct\" is not defined.\nsubstrait/algebra.proto:527:3: \"NamedStruct\" is not defined.\nsubstrait/algebra.proto:654:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:700:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:726:3: \"substrait.extensions.AdvancedExtension\" is not defined.\nsubstrait/algebra.proto:733:5: \"Type\" is not defined.\nsubstrait/algebra.proto:893:16: \"Type.Parameter\" is not defined.\nsubstrait/algebra.proto:898:9: \"google.protobuf.Any\" is not defined.\nsubstrait/algebra.proto:822:7: \"Type\" is not defined.\nsubstrait/algebra.proto:824:7: \"Type.List\" is not defined.\nsubstrait/algebra.proto:825:7: \"Type.Map\" is not defined.\nsubstrait/algebra.proto:973:5: \"Type\" is not defined.\nsubstrait/algebra.proto:1012:5: \"Type\" is not defined.\nsubstrait/algebra.proto:1128:5: \"Type\" is not defined.\nsubstrait/algebra.proto:1166:5: \"Type\" is not defined.\nsubstrait/algebra.proto:1481:3: \"Type\" is not defined.\n" } warning: build failed, waiting for other jobs to finish...

What did you expect to see?

ailed to run custom build command for substrait v0.34.1

What did you see instead?

ailed to run custom build command for substrait v0.34.1

What operating system did you use?

almalinux image

What version of GreptimeDB did you use?

0.9

Relevant log output and stack trace

No response

waynexia commented 3 months ago

Have you tried cargo clean and built it again from scratch?

evenyag commented 3 months ago

https://github.com/substrait-io/substrait-rs/tree/v0.34.1 Maybe you can build the substrait project in your environment to see if the same error occurs.