-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Description
While poking around and following the install instructions:
rustup install nightly-2025-08-01
cargo +nightly-2025-08-01 install --git https://github.com/facebook/buck2.git buck2I encountered the following error:
Compiling buck2_cmd_completion_client v0.1.0 (/Users/theo/.cargo/git/checkouts/buck2-d175d02358baf776/c89c58f/app/buck2_cmd_completion_client)
error[E0599]: no method named `blocking_queue_depth` found for struct `RuntimeMetrics` in the current scope
--> app/buck2_server/src/snapshot.rs:74:55
|
74 | snapshot.tokio_blocking_queue_depth = metrics.blocking_queue_depth() as u64;
| ^^^^^^^^^^^^^^^^^^^^
|
help: there is a method `global_queue_depth` with a similar name
|
74 - snapshot.tokio_blocking_queue_depth = metrics.blocking_queue_depth() as u64;
74 + snapshot.tokio_blocking_queue_depth = metrics.global_queue_depth() as u64;
|
error[E0599]: no method named `num_idle_blocking_threads` found for struct `RuntimeMetrics` in the current scope
--> app/buck2_server/src/snapshot.rs:75:60
|
75 | snapshot.tokio_num_idle_blocking_threads = metrics.num_idle_blocking_threads() as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
error[E0599]: no method named `num_blocking_threads` found for struct `RuntimeMetrics` in the current scope
--> app/buck2_server/src/snapshot.rs:76:55
|
76 | snapshot.tokio_num_blocking_threads = metrics.num_blocking_threads() as u64;
| ^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
Compiling buck2_cmd_debug_client v0.1.0 (/Users/theo/.cargo/git/checkouts/buck2-d175d02358baf776/c89c58f/app/buck2_cmd_debug_client)
For more information about this error, try `rustc --explain E0599`.
error: could not compile `buck2_server` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `buck2 v0.1.0 (https://github.com/facebook/buck2.git#c89c58f8)`, intermediate artifacts can be found at `/var/folders/zh/jqg80dw961j_k5634kv_qhd00000gn/T/cargo-installvV93bz`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.Didn't dig into the why too much, but choosing a commit before these calls were added leads to a successful build:
cargo +nightly-2025-08-01 install --git https://github.com/facebook/buck2.git --rev c6bfcc629378a00921aa04597551442c9e2ea2eb buck2
...
Finished `release` profile [optimized] target(s) in 3m 06s
Installing /Users/theo/.cargo/bin/buck2
Installed package `buck2 v0.1.0 (https://github.com/facebook/buck2.git?rev=c6bfcc629378a00921aa04597551442c9e2ea2eb#c6bfcc62)` (executable `buck2`)A248 and Overhatted
Metadata
Metadata
Assignees
Labels
No labels