Ninja: build stopped: subcommand failed

FAILED: _deps/libevents-build/parse/liblibevents_health_and_arming_checks.so 
: && /Users/prabhakaran/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --sysroot=/Users/prabhakaran/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -DQT_QML_DEBUG   -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -g  -fno-limit-debug-info  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Qunused-arguments -Wl,--no-undefined -shared -Wl,-soname,liblibevents_health_and_arming_checks.so -o _deps/libevents-build/parse/liblibevents_health_and_arming_checks.so _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/libevents_health_and_arming_checks_autogen/mocs_compilation.cpp.o _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o  -latomic -lm && :
ld: error: undefined symbol: events::parser::ParsedEvent::argumentValueInt(int) const
>>> referenced by health_and_arming_checks.cpp:47 (_deps/libevents-src/libs/cpp/parse/health_and_arming_checks.cpp:47)
>>>               _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o:(events::HealthAndArmingChecks::handleEvent(events::parser::ParsedEvent const&))
>>> referenced by health_and_arming_checks.cpp:50 (_deps/libevents-src/libs/cpp/parse/health_and_arming_checks.cpp:50)
>>>               _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o:(events::HealthAndArmingChecks::handleEvent(events::parser::ParsedEvent const&))
>>> referenced by health_and_arming_checks.cpp:51 (_deps/libevents-src/libs/cpp/parse/health_and_arming_checks.cpp:51)
>>>               _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o:(events::HealthAndArmingChecks::handleEvent(events::parser::ParsedEvent const&))
>>> referenced 8 more times

ld: error: undefined symbol: events::parser::ParsedEvent::message() const
>>> referenced by health_and_arming_checks.cpp:85 (_deps/libevents-src/libs/cpp/parse/health_and_arming_checks.cpp:85)
>>>               _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o:(events::HealthAndArmingChecks::handleEvent(events::parser::ParsedEvent const&))

ld: error: undefined symbol: events::parser::ParsedEvent::description() const
>>> referenced by health_and_arming_checks.cpp:86 (_deps/libevents-src/libs/cpp/parse/health_and_arming_checks.cpp:86)
>>>               _deps/libevents-build/parse/CMakeFiles/libevents_health_and_arming_checks.dir/health_and_arming_checks.cpp.o:(events::HealthAndArmingChecks::handleEvent(events::parser::ParsedEvent const&))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[32/1049 25.3/sec] Building CXX object _deps/exiv2-build/src/CMakeFiles/exiv2lib_int.dir/orfimage_int.cpp.o