-
Notifications
You must be signed in to change notification settings - Fork 376
libsql-ffi build failed on Windows #1657
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
Comments
I have the same issue |
Hi, were you able to solve the problem? I have the same error |
You can temporarily use the older version v0.4, which doesn't have this issue.
|
No. The only solution is to use libsql 0.4.0 |
The reason this occurs is because in the build.rs script the developers have put the Linux |
I'm also hitting the same problem, calling "cp" directly was obviously going to break the Windows build, does that mean Windows support is not properly tested? |
I'm hoping that this can be fixed soon. Otherwise I'm gonna have to use a patched version, which is quite inconvenient ☹ |
It's actually fixed, but there hasn't been a release with the fix yet. I opened an issue about this because we'd really need the latest release to just build on Windows: #1969 |
libsql-ffi build on Windows has been intermittently broken for a while due _build.rs_ calling `cp` which is not present on Windows. Timeline: - 2024-08-10: Issue tursodatabase#1657 was opened. - 2024-11-14: tursodatabase#1791 was merged. First fix using `#[cfg(windows)]`. - 2024-11-15: tursodatabase#1791 reverted in 9499c3c for breaking libsql-js on macOS. - 2024-12-04: 9499c3c was reverted since tursodatabase#1791 was fine and did not cause the macOS problem. Windows build works again. - 2025-03-17: da54c1b breaks Windows build. - 2025-03-21: 0.9.1 is released with broken Windows build. - 2025-03-27: This commit fixes the bug introduced in da54c1b. This commit fixes a bug introduced by da54c1b. `Command::status()?` was propogating the error so the fallback, `fs::copy`, was never reached. This is now fixed so libsql-ffi builds again on Windows. Closes tursodatabase#1657
libsql-ffi build on Windows has been intermittently broken for a while due _build.rs_ calling `cp` which is not present on Windows. Timeline: - 2024-08-10: Issue tursodatabase#1657 was opened. - 2024-11-14: tursodatabase#1791 was merged. First fix using `#[cfg(windows)]`. - 2024-11-15: tursodatabase#1791 reverted in 9499c3c for breaking libsql-js on macOS. - 2024-12-04: 9499c3c was reverted since tursodatabase#1791 was fine and did not cause the macOS problem. Windows build works again. - 2025-03-17: da54c1b breaks Windows build. - 2025-03-21: 0.9.1 is released with broken Windows build. - 2025-03-27: This commit fixes the bug introduced in da54c1b. This commit fixes a bug introduced by da54c1b. `Command::status()?` was propogating the error so the fallback, `fs::copy`, was never reached. This is now fixed so libsql-ffi builds again on Windows. Closes tursodatabase#1657
cargo new demo cd demo cargo add libsql cargo check
Output
libsql/libsql-ffi/build.rs
Lines 42 to 48 in 8077948
cp
is sometimes not available on Windows.Windows 11
rustc 1.80.0
libsql = "0.5.0"
The text was updated successfully, but these errors were encountered: