Skip to content

MacOS build error #172

Open
Open
@vanodevium

Description

@vanodevium

ProductName: macOS
ProductVersion: 15.3.2
BuildVersion: 24D81

Rust installed with brew:
~ brew info rust
==> rust: stable 1.85.0 (bottled), HEAD
Safe, concurrent, practical language
https://www.rust-lang.org/
Installed
/opt/homebrew/Cellar/rust/1.85.0 (3,582 files, 318.6MB) *
Poured from bottle using the formulae.brew.sh API on 2025-03-15 at 09:34:42
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/r/rust.rb
License: Apache-2.0 OR MIT
==> Dependencies
Required: [email protected] ✔, libssh2 ✔, llvm ✔, openssl@3 ✔, pkgconf ✔, zstd ✔
==> Requirements
Required: macOS >= 10.12 (or Linux) ✔


So when I call LIBSQL_JS_DEV=1 npm run build, I see error:

✗ LIBSQL_JS_DEV=1 npm run build

> [email protected] build
> npx tsc && cargo build --message-format=json --release | npm exec neon dist -- --name libsql-js

   Compiling hyper v0.14.30
   Compiling libsql-ffi v0.5.0 (https://github.com/tursodatabase/libsql/?rev=e40c4319829e0805313fadcaa19034b89b7708ad#e40c4319)
   Compiling tower-http v0.4.4
   Compiling semver v1.0.23
   Compiling aes v0.8.4
   Compiling regex-automata v0.4.7
   Compiling regex-automata v0.1.10
   Compiling serde_json v1.0.128
warning: [email protected]: CC_var_name=CC_aarch64_apple_darwin
error: failed to run custom build command for `libsql-ffi v0.5.0 (https://github.com/tursodatabase/libsql/?rev=e40c4319829e0805313fadcaa19034b89b7708ad#e40c4319)`

Caused by:
  process didn't exit successfully: `/Users/devium/libsql-js/target/release/build/libsql-ffi-d1f4dc7dec539d2a/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=framework=Security
  cargo:rerun-if-changed=bundled/src/sqlite3.c
  cargo:rerun-if-changed=/Users/devium/libsql-js/target/release/build/libsql-ffi-f74be81de95a4f8f/out/sqlite3mc/libsqlite3mc_static.a
  cargo:lib_dir=/Users/devium/libsql-js/target/release/build/libsql-ffi-f74be81de95a4f8f/out
  cargo:warning=CC_var_name=CC_aarch64_apple_darwin
  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

  thread 'main' panicked at /Users/devium/.cargo/git/checkouts/libsql-fdc89d7ae2201f5b/e40c431/libsql-ffi/build.rs:518: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...
error: No artifacts were generated for crate libsql-js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions