Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is installing from cargo supported? #839

Open
clin1234 opened this issue Feb 14, 2025 · 1 comment
Open

Is installing from cargo supported? #839

clin1234 opened this issue Feb 14, 2025 · 1 comment

Comments

@clin1234
Copy link

Ran CARGO_TARGET_DIR=/tmp/cargo-installVmzaQz cargo install --git https://github.com/awslabs/llrt, got:

   Compiling llrt_core v0.5.1-beta (/home/cc/.cargo/git/checkouts/llrt-0a7fdb298878dfd0/b4735e0/llrt_core)
error: failed to run custom build command for `llrt_core v0.5.1-beta (/home/cc/.cargo/git/checkouts/llrt-0a7fdb298878dfd0/b4735e0/llrt_core)`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installVmzaQz/release/build/llrt_core-273a7128c114ac0f/build-script-build` (exit status: 1)
  --- stdout
  cargo::rustc-check-cfg=cfg(rust_nightly)
  cargo:rustc-cfg=rust_nightly
  cargo:rerun-if-changed=../bundle/js
  cargo:rerun-if-changed=Cargo.toml
  cargo:rerun-if-changed=patches
  cargo:info=
  ===============================
  Uncompressed bytecode size: 0.000 B
  ===============================
  cargo:info=Generating compression dictionary...

  --- stderr
  !  Warning : nb of samples too low for proper processing ! 
  !  Please provide _one file per sample_. 
  !  Alternatively, split files into fixed-size blocks representative of samples, with -B# 
  Error 14 : nb of samples too low
  Error: Custom { kind: Other, error: "Failed to generate compression dictionary" }
warning: build failed, waiting for other jobs to finish...
error: failed to compile `llrt v0.5.1-beta (https://github.com/awslabs/llrt#b4735e08)`, intermediate artifacts can be found at `/tmp/cargo-installVmzaQz`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@ahaoboy
Copy link
Contributor

ahaoboy commented Feb 15, 2025

Unfortunately, llrt does not support installation using cargo-binstall. Installation from source code is very complicated and time-consuming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants