Skip to content

MacOS build error #172

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
vanodevium opened this issue Mar 17, 2025 · 0 comments
Open

MacOS build error #172

vanodevium opened this issue Mar 17, 2025 · 0 comments

Comments

@vanodevium
Copy link
Contributor

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: libgit2@1.8 ✔, 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

> libsql@0.5.0 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: libsql-ffi@0.5.0: 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
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

1 participant