aptos-core
aptos-core copied to clipboard
[Bug] cargo install of CLI fails for version 0.3.3
🐛 Bug
Cargo install from the devnet branch for the cli fails
To reproduce
Code snippet to reproduce
cargo install ... --branch devnet aptos
Please comment the following below:
- Operating system (OS)
- CPU Architecture (x86, Arm, etc)
- Command used
- Error resulting
Meanwhile have you tried using the prepacked release? https://github.com/aptos-labs/aptos-core/releases/tag/aptos-cli-v0.3.3
This is due to an unstable feature of tokio https://docs.rs/tokio/latest/tokio/runtime/struct.Builder.html#method.disable_lifo_slot
I'm removing the cargo install instructions since they seem to be unstable. Cargo install was installing from source anyways
This PR will ensure there's support on the rest of the systems for from source https://github.com/aptos-labs/aptos-core/pull/4031
I was having this issue all day, but I'm using the pre-compiled library now and it's working fine.
Windows 11
CPU: x64
Error:
error[E0599]: no method named disable_lifo_slot found for mutable reference &mut tokio::runtime::Builder in the current scope --> mempool\src\shared_mempool\runtime.rs:114:10 | 114 | .disable_lifo_slot() | ^^^^^^^^^^^^^^^^^ private field, not a method error: could not compile aptos-mempool due to previous error
- Ubuntu 22.04 LTS
- x86_64
- cargo install --git https://github.com/aptos-labs/aptos-core.git --branch devnet aptos
- = note: collect2: fatal error: id terminated with signal 9 [Killed] compilation terminated.
error: could not compile 'cached-packages' due to previous error warning: build failed, waiting for other jobs to finish... error: failed to compile 'aptos v0.3.3 (https://github.com/aptos-labs/aptos-core.git?branch=devnet#8f634bcd)', intermediate artifacts can be found at '/tmp/cargo-installOzvrCl'
RUSTFLAGS="--cfg tokio_unstable" cargo install
works for me.
What I decided is we've removed the cargo install information.
Most platforms are prebuilt, and anyone who doesn't have it should build by source, because there is a script that handles the dependencies.
This script doesn't cover some platforms at this point (e.g. windows), but we have a build for that.
If there are any platforms that from source instructions don't work, or the prebuilt binaries, please note it here.