Comments (3)
Here is a workaround:
diff '--color=auto' -ru 1/libsqlite3-sys-0.26.0/build.rs libsqlite3-sys-0.26.0/build.rs
--- 1/libsqlite3-sys-0.26.0/build.rs 2023-08-23 10:49:56.916202400 +0800
+++ libsqlite3-sys-0.26.0/build.rs 2023-08-23 18:49:10.978688226 +0800
@@ -201,6 +201,13 @@
// https://android.googlesource.com/platform/external/sqlite/+/2c8c9ae3b7e6f340a19a0001c2a889a211c9d8b2/dist/Android.mk
if super::android_target() {
cfg.flag("-DSQLITE_TEMP_STORE=3");
+
+ let target = env::var("TARGET").unwrap();
+ if target == "x86_64-linux-android" {
+ let ndk_home = env::var("ANDROID_NDK_HOME").unwrap();
+ println!("cargo:rustc-link-lib=static=clang_rt.builtins-x86_64-android");
+ println!("cargo:rustc-link-search={}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.7/lib/linux", ndk_home);
+ }
}
if cfg!(feature = "with-asan") {
from:
from rusqlite.
These are the soft-float routines. It looks like rustc and clang might disagree on whether or not this is a hard-float or soft-float target. Rustc seems to think it's hard-float, but clang seems to be emitting calls to software floating point emulation functions.
from rusqlite.
Maybe this is a BUG of Android NDK ?
Build for aarch64-linux-android
is ok.
from rusqlite.
Related Issues (20)
- rusqlite ignoring sqlite3_hard_heap_limit64 (and soft limit), and sqlite3_memory_used always returns 0 HOT 11
- Allow provinding own sqlite3.c HOT 2
- libsqlite3-sys build broken for visionos with feature `bundled` HOT 1
- New release with sqlite 3.46 HOT 5
- wasm32-wasip1-threads, passing `atomics` and `bulk-memory` option
- failed to run custom build command for `libsqlite3-sys v0.27.0` HOT 2
- The use of `VsVers::Vs12` in build.rs is deprecated HOT 2
- Question About `vtab` Implementations HOT 2
- Example crate with loadable extension? HOT 2
- Add implementation of `Type: FromSql` HOT 1
- A new release? HOT 2
- expected `&str`, found `String` on build libsqlite3-sys-0.30.0\build.rs:267:22 HOT 6
- Rusqlite no longer compiles with Rust before v1.77
- Rusqlite 0.32 cannot be compiled with bundled feature HOT 2
- `InterruptHandle` created from non-owned `Connection` can outlive owning connection without `unsafe`, resulting in OOB writes HOT 5
- Docs.rs missing Information that is only available in repository README.md
- Optional does not catch SqliteError(StatementChangedRows(0)) HOT 1
- Unexpected read-only error when writing
- "Foreign key constraint failed" when using "INSERT OR ..." concurrently HOT 5
- Identify on Connection::open if a new database was created HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rusqlite.