Hello, I am getting this error when trying to compile the project on my machine.
Can you check what's the problem? Thanks!
The following warnings were emitted during compilation:
warning: [email protected]: vendor/src/osdp_common.c: In function ‘osdp_get_source_info’:
warning: [email protected]: vendor/src/osdp_common.c:221:13: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
warning: [email protected]: 221 | if (strnlen(GIT_TAG, 8) > 0) {
warning: [email protected]: | ^~~~~~~~~~~~~~~~~~~
warning: [email protected]: vendor/src/osdp_common.c:223:20: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
warning: [email protected]: 223 | } else if (strnlen(GIT_REV, 8) > 0) {
warning: [email protected]: | ^~~~~~~~~~~~~~~~~~~
warning: [email protected]: cc1: all warnings being treated as errors
error: failed to run custom build command for `libosdp-sys v3.0.5`
Caused by:
process didn't exit successfully: `/tmp/libosdp-rs/target/debug/build/libosdp-sys-79cad4cae9db8f1f/build-script-build` (exit status: 1)
--- stdout
TARGET = Some("aarch64-unknown-linux-gnu")
OPT_LEVEL = Some("0")
HOST = Some("aarch64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-gnu
CC_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_gnu
CC_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("neon")
cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-gnu
CFLAGS_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_gnu
CFLAGS_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:warning=vendor/src/osdp_common.c: In function ‘osdp_get_source_info’:
cargo:warning=vendor/src/osdp_common.c:221:13: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
cargo:warning= 221 | if (strnlen(GIT_TAG, 8) > 0) {
cargo:warning= | ^~~~~~~~~~~~~~~~~~~
cargo:warning=vendor/src/osdp_common.c:223:20: error: ‘strnlen’ specified bound 8 exceeds source size 1 [-Werror=stringop-overread]
cargo:warning= 223 | } else if (strnlen(GIT_REV, 8) > 0) {
cargo:warning= | ^~~~~~~~~~~~~~~~~~~
cargo:warning=cc1: all warnings being treated as errors
--- stderr
error occurred: Command "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-I" "vendor/src" "-I" "vendor/include" "-I" "vendor/utils/include" "-I" "/tmp/libosdp-rs/target/debug/build/libosdp-sys-3fafb24b2d30e3ca/out" "-Wall" "-Wextra" "-Werror" "-o" "/tmp/libosdp-rs/target/debug/build/libosdp-sys-3fafb24b2d30e3ca/out/713e2796ca293819-osdp_common.o" "-c" "vendor/src/osdp_common.c" with args cc did not execute successfully (status code exit status: 1).