quickwit-oss / quickwit-oss/quickwit

Cannot build from source

Open
#5,855 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

cc@pretty:~$ CARGO_TARGET_DIR=/tmp/cargo-installq1JcsW cargo install --locked --git  https://github.com/quickwit-oss/quickwit quickwit-cli
    Updating git repository `https://github.com/quickwit-oss/quickwit`
  Installing quickwit-cli v0.8.0 (https://github.com/quickwit-oss/quickwit#fb6be52f)
    Updating crates.io index
warning: package `curve25519-dalek v4.2.0` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: Patch `sasl2-sys v0.1.22+2.1.28 (https://github.com/quickwit-oss/rust-sasl/?rev=085a4c7#085a4c7f)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
  Downloaded aws-smithy-runtime v1.8.4
  Downloaded aws-smithy-runtime-api v1.8.3
  Downloaded numfmt v1.1.1
  Downloaded aws-sdk-ssooidc v1.75.0
  Downloaded aws-sdk-sso v1.74.0
  Downloaded 5 crates (392.7KiB) in 1.66s
   Compiling signal-hook-registry v1.4.5
   Compiling cc v1.2.29
   Compiling aws-lc-rs v1.13.2
   Compiling rustls v0.23.29
   Compiling serde_json v1.0.140
   Compiling rustix v1.0.7
   Compiling prettyplease v0.2.35
   Compiling zerovec v0.11.2
   Compiling webpki-roots v1.0.1
   Compiling dyn-clone v1.0.19
   Compiling aws-types v1.3.7
   Compiling rand v0.9.1
   Compiling postcard v1.1.2
   Compiling clap_builder v4.5.41
   Compiling numfmt v1.1.1
   Compiling tokio v1.46.1
   Compiling ulid v1.2.1
   Compiling bon-macros v3.6.4
   Compiling cmake v0.1.54
   Compiling ring v0.17.14
   Compiling zstd-sys v2.0.15+zstd.1.5.7
   Compiling tracing-subscriber v0.3.19
   Compiling utoipa v4.2.3
   Compiling serde_json_borrow v0.5.1
   Compiling mrecordlog v0.4.0 (https://github.com/quickwit-oss/mrecordlog?rev=306c0a7#306c0a70)
   Compiling elasticsearch-dsl v0.4.23
   Compiling aws-lc-sys v0.30.0
   Compiling tinystr v0.8.1
   Compiling potential_utf v0.1.2
   Compiling tempfile v3.20.0
   Compiling icu_collections v2.0.0
   Compiling icu_locale_core v2.0.0
   Compiling rustls v0.21.12
   Compiling zstd-safe v7.2.4
   Compiling prost-build v0.13.5
   Compiling dialoguer v0.10.4
   Compiling zstd v0.13.3
   Compiling icu_provider v2.0.0
   Compiling tantivy-sstable v0.3.0 (https://github.com/quickwit-oss/tantivy/?rev=80f5f1e#80f5f1ec)
   Compiling icu_normalizer v2.0.0
   Compiling icu_properties v2.0.1
   Compiling tonic-build v0.13.1
   Compiling clap v4.5.41
   Compiling bon v3.6.4
   Compiling tantivy-columnar v0.3.0 (https://github.com/quickwit-oss/tantivy/?rev=80f5f1e#80f5f1ec)
   Compiling sct v0.7.1
   Compiling rustls-webpki v0.101.7
   Compiling quickwit-codegen v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/fb6be52/quickwit/quickwit-codegen)
   Compiling idna_adapter v1.2.1
   Compiling idna v1.0.3
   Compiling quickwit-proto v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/fb6be52/quickwit/quickwit-proto)
   Compiling quickwit-ingest v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/fb6be52/quickwit/quickwit-ingest)
   Compiling url v2.5.4
   Compiling tokio-util v0.7.15
   Compiling aws-smithy-async v1.2.5
   Compiling async-compression v0.4.27
   Compiling tantivy v0.23.0 (https://github.com/quickwit-oss/tantivy/?rev=80f5f1e#80f5f1ec)
   Compiling tungstenite v0.21.0
   Compiling h2 v0.4.11
   Compiling tower v0.5.2
   Compiling aws-smithy-types v1.3.2
   Compiling tokio-stream v0.1.17
   Compiling h2 v0.3.27
   Compiling tower v0.4.13
   Compiling tower-http v0.4.4
   Compiling rustls-webpki v0.103.4
   Compiling tokio-rustls v0.24.1
   Compiling tokio-metrics v0.3.1
   Compiling opentelemetry_sdk v0.27.1
   Compiling chitchat v0.9.0 (https://github.com/quickwit-oss/chitchat.git?rev=bd54c81#bd54c810)
   Compiling tokio-tungstenite v0.21.0
   Compiling aws-smithy-runtime-api v1.8.3
   Compiling aws-smithy-eventstream v0.60.9
   Compiling aws-smithy-json v0.61.4
   Compiling aws-smithy-query v0.60.7
   Compiling aws-smithy-json v0.60.7
   Compiling axum v0.8.4
   Compiling tower-http v0.6.6
   Compiling axum v0.7.9
   Compiling aws-smithy-http v0.62.1
   Compiling aws-credential-types v1.2.3
   Compiling aws-smithy-observability v0.1.3
   Compiling aws-smithy-http v0.60.12
   Compiling hyper v1.6.0
   Compiling hyper v0.14.32
   Compiling tracing-opentelemetry v0.28.0
   Compiling aws-sigv4 v1.3.3
   Compiling aws-smithy-checksums v0.60.13
   Compiling tokio-rustls v0.26.2
   Compiling hyper-util v0.1.15
   Compiling quickwit-datetime v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/fb6be52/quickwit/quickwit-datetime)
   Compiling hyper-rustls v0.24.2
   Compiling warp v0.3.7
   Compiling hyper-timeout v0.5.2
   Compiling hyper-rustls v0.27.7
   Compiling tonic v0.13.1
   Compiling tonic v0.12.3
   Compiling aws-smithy-http-client v1.0.6
   Compiling reqwest v0.12.22
   Compiling serde_qs v0.12.0
   Compiling opentelemetry-proto v0.27.0
   Compiling quickwit-common v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/fb6be52/quickwit/quickwit-common)
   Compiling tonic-health v0.13.1
   Compiling tonic-reflection v0.13.1
   Compiling reqwest-middleware v0.4.2
warning: ignoring -C extra-filename flag due to -o flag

error[E0432]: unresolved imports `tokio_metrics::RuntimeMetrics`, `tokio_metrics::RuntimeMonitor`
   --> quickwit-common/src/runtimes.rs:22:21
    |
 22 | use tokio_metrics::{RuntimeMetrics, RuntimeMonitor};
    |                     ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^ no `RuntimeMonitor` in the root
    |                     |
    |                     no `RuntimeMetrics` in the root
    |
    = help: consider importing this struct instead:
            tokio::runtime::RuntimeMetrics
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-metrics-0.3.1/src/lib.rs:116:9
    |
112 | / cfg_rt! {
113 | |     mod runtime;
114 | |     pub use runtime::{
115 | |         RuntimeIntervals,
116 | |         RuntimeMetrics,
    | |         ^^^^^^^^^^^^^^
117 | |         RuntimeMonitor,
118 | |     };
119 | | }
    | |_- the item is gated here
note: found an item that was configured out
   --> /home/cc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-metrics-0.3.1/src/lib.rs:117:9
    |
112 | / cfg_rt! {
113 | |     mod runtime;
114 | |     pub use runtime::{
115 | |         RuntimeIntervals,
116 | |         RuntimeMetrics,
117 | |         RuntimeMonitor,
    | |         ^^^^^^^^^^^^^^
118 | |     };
119 | | }
    | |_- the item is gated here

For more information about this error, try `rustc --explain E0432`.
warning: `quickwit-common` (lib) generated 1 warning
error: could not compile `quickwit-common` (lib) due to 1 previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error: failed to compile `quickwit-cli v0.8.0 (https://github.com/quickwit-oss/quickwit#fb6be52f)`, intermediate artifacts can be found at `/tmp/cargo-installq1JcsW`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the reported cargo install --locked command, then inspect quickwit-common/src/runtimes.rs and the tokio-metrics feature gating shown in the compiler output. Done means quickwit-cli builds successfully from source without the unresolved RuntimeMetrics and RuntimeMonitor imports.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.