Linker cannot find -lsqlite3

Than @anon80458984 I tried this, but got:

Internal error occurred: Failed to find tool. Is x86_64-linux-android-clang installed?

I add the folder that contains the x86_64-linux-android-clang to the path, and installed llvm and cmake but got the below error:

$ code $HOME/.bash_profile
$ source $HOME/.bash_profile
$ brew install cmake
$ brew install --with-toolchain llvm
$ cargo build --target x86_64-linux-android --release

   Compiling libsqlite3-sys v0.10.0                                                                                                                                                            
error: failed to run custom build command for `libsqlite3-sys v0.10.0`                                                                                                                         
process didn't exit successfully: `/Users/h_ajsf/IdeaProjects/rust_sql/rust/target/release/build/libsqlite3-sys-7a7e94f62531c244/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-linux-android")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-linux-android = None
CC_x86_64_linux_android = None
TARGET_CC = None
CC = None
CFLAGS_x86_64-linux-android = None
CFLAGS_x86_64_linux_android = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "x86_64-linux-android-clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-linux-android" "-Wall" "-Wextra" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_HAVE_ISNAN" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-o" "/Users/h_ajsf/IdeaProjects/rust_sql/rust/target/x86_64-linux-android/release/build/libsqlite3-sys-60305c2ad4c7b159/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c"
cargo:warning=sqlite3/sqlite3.c:1068:10: fatal error: 'stdarg.h' file not found
cargo:warning=#include <stdarg.h>     /* Needed for the definition of va_list */
cargo:warning=         ^~~~~~~~~~
cargo:warning=1 error generated.
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "x86_64-linux-android-clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-linux-android" "-Wall" "-Wextra" "-DSQLITE_CORE" "-DSQLITE_DEFAULT_FOREIGN_KEYS=1" "-DSQLITE_ENABLE_API_ARMOR" "-DSQLITE_ENABLE_COLUMN_METADATA" "-DSQLITE_ENABLE_DBSTAT_VTAB" "-DSQLITE_ENABLE_FTS3" "-DSQLITE_ENABLE_FTS3_PARENTHESIS" "-DSQLITE_ENABLE_FTS5" "-DSQLITE_ENABLE_JSON1" "-DSQLITE_ENABLE_LOAD_EXTENSION=1" "-DSQLITE_ENABLE_MEMORY_MANAGEMENT" "-DSQLITE_ENABLE_RTREE" "-DSQLITE_ENABLE_STAT2" "-DSQLITE_ENABLE_STAT4" "-DSQLITE_HAVE_ISNAN" "-DSQLITE_SOUNDEX" "-DSQLITE_THREADSAFE=1" "-DSQLITE_USE_URI" "-DHAVE_USLEEP=1" "-o" "/Users/h_ajsf/IdeaProjects/rust_sql/rust/target/x86_64-linux-android/release/build/libsqlite3-sys-60305c2ad4c7b159/out/sqlite3/sqlite3.o" "-c" "sqlite3/sqlite3.c" with args "x86_64-linux-android-clang" did not execute successfully (status code exit code: 1).

', /Users/h_ajsf/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.26/src/lib.rs:2295:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.