gyscos / zstd-rs

A rust binding for the zstd compression library.
MIT License
527 stars 112 forks source link

"Error occurred: Failed to find tool. Is `aarch64-linux-android-clang` installed?" #232

Closed Samet195 closed 1 year ago

Samet195 commented 1 year ago

Hi! I was trying compile an actix-web project for Android(aarch64-linux-android) but process interrupted with folowing error. How I can fix this problem?

     Compiling zstd-sys v2.0.7+zstd.1.5.4
error: failed to run custom build command for `zstd-sys v2.0.7+zstd.1.5.4`

Caused by:
 process didn't exit successfully: `/home/Projects/Rust/actix-web_android-test/target/debug/build/zstd-sys-97be929985a4b3d6/build-script-build` (exit status: 1)
 --- stdout
 cargo:rerun-if-env-changed=ZSTD_SYS_USE_PKG_CONFIG
 TARGET = Some("aarch64-linux-android")
 OPT_LEVEL = Some("0")
 HOST = Some("x86_64-unknown-linux-gnu")
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 DEBUG = Some("false")
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/debug.o" "-c" "zstd/lib/common/debug.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/entropy_common.o" "-c" "zstd/lib/common/entropy_common.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/zstd_common.o" "-c" "zstd/lib/common/zstd_common.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/compress/fse_compress.o" "-c" "zstd/lib/compress/fse_compress.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/fse_decompress.o" "-c" "zstd/lib/common/fse_decompress.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/threading.o" "-c" "zstd/lib/common/threading.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/pool.o" "-c" "zstd/lib/common/pool.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/compress/hist.o" "-c" "zstd/lib/compress/hist.c"
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 cargo:rerun-if-env-changed=CC_aarch64-linux-android
 CC_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CC_aarch64_linux_android
 CC_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CC
 TARGET_CC = None
 cargo:rerun-if-env-changed=CC
 CC = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android
 CFLAGS_aarch64-linux-android = None
 cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android
 CFLAGS_aarch64_linux_android = None
 cargo:rerun-if-env-changed=TARGET_CFLAGS
 TARGET_CFLAGS = None
 cargo:rerun-if-env-changed=CFLAGS
 CFLAGS = None
 cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
 CRATE_CC_NO_DEFAULTS = None
 running: "aarch64-linux-android-clang" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DXXH_PRIVATE_API=" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/home/Projects/Rust/actix-web_android-test/target/aarch64-linux-android/debug/build/zstd-sys-f1de0967f16cba6f/out/zstd/lib/common/error_private.o" "-c" "zstd/lib/common/error_private.c"

 --- stderr

 error occurred: Failed to find tool. Is `aarch64-linux-android-clang` installed?
Samet195 commented 1 year ago

Ok. I solved the problem via add Android NDK's Clang path to $PATH variable.

# ~/.profile
export PATH="$HOME/<android-sdk>/ndk/<ndk-version>/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH";
export PATH="$HOME/<android-sdk>/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin:$PATH";