Skip to content

can't build the library #2072

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

Open
mnpqraven opened this issue May 19, 2025 · 1 comment
Open

can't build the library #2072

mnpqraven opened this issue May 19, 2025 · 1 comment

Comments

@mnpqraven
Copy link

mnpqraven commented May 19, 2025

I'm getting panic at the first compile of the library, not sure where to start debugging

cargo new libsqltest
cd libsqltest
cargo add libsql --features encryption
cargo check

results in output

warning: libsql-ffi@0.9.7: CC_var_name=CC_x86_64_unknown_linux_gnu
error: failed to run custom build command for `libsql-ffi v0.9.7`

Caused by:
  process didn't exit successfully: `/home/othi/Repos/private/testlibsql/target/debug/build/libsql-ffi-7d010902f6049eb4/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=bundled/src/sqlite3.c
  cargo:rerun-if-changed=/home/othi/Repos/private/testlibsql/target/debug/build/libsql-ffi-5178382ffec95b96/out/sqlite3mc/libsqlite3mc_static.a
  cargo:lib_dir=/home/othi/Repos/private/testlibsql/target/debug/build/libsql-ffi-5178382ffec95b96/out
  cargo:warning=CC_var_name=CC_x86_64_unknown_linux_gnu
  Running `cmake` with options: -DCMAKE_BUILD_TYPE=Release -DSQLITE3MC_STATIC=ON -DCODEC_TYPE=AES256 -DSQLITE3MC_BUILD_SHELL=OFF -DSQLITE_SHELL_IS_UTF8=OFF -DSQLITE_USER_AUTHENTICATION=OFF -DSQLITE_SECURE_DELETE=OFF -DSQLITE_ENABLE_COLUMN_METADATA=ON -DSQLITE_USE_URI=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON

  --- stderr
  [/home/othi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libsql-ffi-0.9.7/build.rs:441:9] format!("{BUNDLED_DIR}/SQLite3MultipleCiphers") = "bundled/SQLite3MultipleCiphers"

  thread 'main' panicked at /home/othi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libsql-ffi-0.9.7/build.rs:539:33:
  called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
@justDeek
Copy link

Same problem for me ("failed to run custom build command for libsql-sys v0.2.14 ...") with a very similar stack trace when trying to run the app-turso-notes example on windows :/

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