quickwit-oss / quickwit-oss/quickwit

Cannot build from source

Open
#6,019 1 comment 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-installD3hIBA cargo install --git https://github.com/quickwit-oss/quickwit quickwit-cli --locked
    Updating git repository `https://github.com/quickwit-oss/quickwit`
  Installing quickwit-cli v0.8.0 (https://github.com/quickwit-oss/quickwit#89b81a52)
    Updating crates.io index
warning: package `tracing v0.1.42` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `tracing-subscriber v0.3.21` 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
help: 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-eventstream v0.60.13
  Downloaded aws-credential-types v1.2.10
  Downloaded serde_with_macros v3.16.0
  Downloaded compression-codecs v0.4.33
  Downloaded hyper-util v0.1.18
  Downloaded cc v1.2.47
  Downloaded tower-http v0.6.7
  Downloaded aws-sdk-ssooidc v1.92.0
  Downloaded aws-config v1.8.11
  Downloaded tracing-subscriber v0.3.21
  Downloaded zerocopy v0.8.30
  Downloaded serde_with v3.16.0
  Downloaded aws-sdk-sts v1.94.0
  Downloaded aws-sdk-sso v1.90.0
  Downloaded aws-runtime v1.5.16
  Downloaded async-compression v0.4.34
  Downloaded tracing v0.1.42
  Downloaded 17 crates (1.8MiB) in 3.02s
   Compiling libc v0.2.177
   Compiling log v0.4.28
   Compiling zerocopy v0.8.30
   Compiling rustls-pki-types v1.13.0
   Compiling simd-adler32 v0.3.7
   Compiling base64ct v1.8.0
   Compiling icu_properties_data v2.1.1
   Compiling base64 v0.21.7
   Compiling aws-types v1.3.10
   Compiling serde_with_macros v3.16.0
   Compiling aws-smithy-xml v0.60.12
   Compiling shell-words v1.1.0
   Compiling serde_with v3.16.0
   Compiling tracing v0.1.42
   Compiling measure_time v0.9.0
   Compiling tracing-log v0.2.0
   Compiling miniz_oxide v0.8.9
   Compiling spki v0.6.0
   Compiling rustls-pemfile v1.0.4
   Compiling icu_properties v2.1.1
   Compiling rustls-native-certs v0.8.2
   Compiling webpki-roots v1.0.4
   Compiling rustls-pemfile v2.2.0
   Compiling parking_lot_core v0.9.12
   Compiling socket2 v0.6.1
   Compiling signal-hook-registry v1.4.7
   Compiling mio v1.1.0
   Compiling getrandom v0.2.16
   Compiling getrandom v0.3.4
   Compiling socket2 v0.5.10
   Compiling jobserver v0.1.34
   Compiling ppv-lite86 v0.2.21
   Compiling pnet_sys v0.33.0
   Compiling is-terminal v0.4.17
   Compiling sysinfo v0.33.1
   Compiling coarsetime v0.1.36
   Compiling hostname v0.3.1
   Compiling opentelemetry v0.27.1
   Compiling pkcs8 v0.9.0
   Compiling rustls-native-certs v0.6.3
   Compiling flate2 v1.1.5
   Compiling idna_adapter v1.2.1
   Compiling parking_lot v0.12.5
   Compiling memmap2 v0.9.9
   Compiling uuid v1.18.1
   Compiling rand_core v0.6.4
   Compiling cc v1.2.47
   Compiling tempfile v3.23.0
   Compiling rand_core v0.9.3
   Compiling nanorand v0.7.0
   Compiling tracing-subscriber v0.3.21
   Compiling pnet_datalink v0.33.0
   Compiling pnet_transport v0.33.0
   Compiling env_logger v0.10.2
   Compiling mrecordlog v0.4.0 (https://github.com/quickwit-oss/mrecordlog?rev=306c0a7#306c0a70)
   Compiling sec1 v0.3.0
   Compiling console v0.15.11
   Compiling idna v1.1.0
   Compiling tokio v1.48.0
   Compiling prometheus v0.13.4
   Compiling rand_chacha v0.3.1
   Compiling crypto-bigint v0.4.9
   Compiling ff v0.12.1
   Compiling signature v1.6.4
   Compiling rand_chacha v0.9.0
   Compiling crypto-bigint v0.5.5
   Compiling flume v0.11.1
   Compiling prost-build v0.13.5
   Compiling cmake v0.1.54
   Compiling ring v0.17.14
   Compiling zstd-sys v2.0.16+zstd.1.5.7
   Compiling pnet v0.33.0
   Compiling dialoguer v0.10.4
   Compiling indicatif v0.17.11
   Compiling rustls v0.21.12
   Compiling zstd-safe v7.2.4
   Compiling group v0.12.1
   Compiling rand v0.8.5
   Compiling url v2.5.7
   Compiling rfc6979 v0.3.1
   Compiling rand v0.9.2
   Compiling tonic-build v0.13.1
   Compiling tokio-util v0.7.17
   Compiling aws-smithy-async v1.2.6
   Compiling aws-lc-sys v0.34.0
   Compiling elliptic-curve v0.12.3
   Compiling rand_distr v0.4.3
   Compiling fail v0.5.1
   Compiling retry-policies v0.4.0
   Compiling sct v0.7.1
   Compiling rustls-webpki v0.101.7
   Compiling ulid v1.2.1
   Compiling aws-lc-rs v1.15.1
   Compiling rustls v0.23.35
   Compiling quickwit-codegen v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/89b81a5/quickwit/quickwit-codegen)
   Compiling zstd v0.13.3
   Compiling ecdsa v0.14.8
   Compiling h2 v0.4.12
   Compiling tower v0.5.2
   Compiling aws-smithy-types v1.3.4
   Compiling tokio-stream v0.1.17
   Compiling h2 v0.3.27
   Compiling tower v0.4.13
   Compiling tantivy-stacker v0.6.0 (https://github.com/quickwit-oss/tantivy/?rev=618e3bd#618e3bd1)
   Compiling tantivy-sstable v0.6.0 (https://github.com/quickwit-oss/tantivy/?rev=618e3bd#618e3bd1)
   Compiling compression-codecs v0.4.33
   Compiling quickwit-proto v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/89b81a5/quickwit/quickwit-proto)
   Compiling quickwit-ingest v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/89b81a5/quickwit/quickwit-ingest)
   Compiling p256 v0.11.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 axum v0.8.7
   Compiling axum v0.7.9
   Compiling aws-smithy-runtime-api v1.9.2
   Compiling aws-smithy-eventstream v0.60.13
   Compiling aws-smithy-json v0.61.7
   Compiling aws-smithy-query v0.60.8
   Compiling aws-smithy-json v0.60.7
   Compiling async-compression v0.4.34
   Compiling rustls-webpki v0.103.8
   Compiling tantivy-columnar v0.6.0 (https://github.com/quickwit-oss/tantivy/?rev=618e3bd#618e3bd1)
   Compiling hyper v1.8.1
   Compiling hyper v0.14.32
   Compiling tokio-rustls v0.24.1
   Compiling tracing-opentelemetry v0.28.0
   Compiling aws-credential-types v1.2.10
   Compiling aws-smithy-http v0.62.5
   Compiling aws-smithy-observability v0.1.4
   Compiling aws-smithy-http v0.60.12
   Compiling tower-http v0.6.7
   Compiling hyper-util v0.1.18
   Compiling tantivy v0.26.0 (https://github.com/quickwit-oss/tantivy/?rev=618e3bd#618e3bd1)
   Compiling hyper-rustls v0.24.2
   Compiling aws-smithy-checksums v0.60.13
   Compiling aws-sigv4 v1.3.6
   Compiling hyper-timeout v0.5.2
   Compiling warp v0.4.2
   Compiling tonic v0.12.3
   Compiling tokio-rustls v0.26.4
   Compiling tonic v0.13.1
   Compiling hyper-rustls v0.27.7
   Compiling opentelemetry-proto v0.27.0
   Compiling quickwit-datetime v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/89b81a5/quickwit/quickwit-datetime)
   Compiling aws-smithy-http-client v1.1.4
   Compiling reqwest v0.12.24
   Compiling opentelemetry-otlp v0.27.0
   Compiling quickwit-common v0.8.0 (/home/cc/.cargo/git/checkouts/quickwit-2c88914f71d85538/89b81a5/quickwit/quickwit-common)
   Compiling tonic-health v0.13.1
   Compiling tonic-reflection v0.13.1
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#89b81a52)`, intermediate artifacts can be found at `/tmp/cargo-installD3hIBA`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
cc@pretty:~$

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 reported command and inspect quickwit-common/src/runtimes.rs, especially its tokio_metrics imports, alongside the tokio-metrics 0.3.1 feature configuration shown in the compiler output. Determine the dependency or feature mismatch, then verify that cargo install --git https://github.com/quickwit-oss/quickwit quickwit-cli --locked completes successfully.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.