llrt icon indicating copy to clipboard operation
llrt copied to clipboard

Is installing from `cargo` supported?

Open clin1234 opened this issue 11 months ago • 3 comments

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.

clin1234 avatar Feb 14 '25 14:02 clin1234

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

ahaoboy avatar Feb 15 '25 10:02 ahaoboy

@richarddavison Do you want me to take another crack at publishing the modules at least. I think we can commit to rquickjs 0.9 now

Sytten avatar Mar 21 '25 12:03 Sytten

@richarddavison Do you want me to take another crack at publishing the modules at least. I think we can commit to rquickjs 0.9 now

Yes please. This would be great!

richarddavison avatar Apr 01 '25 06:04 richarddavison