Giter Club home page Giter Club logo

Comments (3)

secext2022 avatar secext2022 commented on September 23, 2024 1

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.

thomcc avatar thomcc commented on September 23, 2024

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.

secext2022 avatar secext2022 commented on September 23, 2024

Maybe this is a BUG of Android NDK ?

Build for aarch64-linux-android is ok.

from rusqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.