I trying to build a binary for armhf (board STM32MP157F-DK2).
I followed the instructions for cross-compile provided in the
https://github.com/wazuh/wazuh/tree/master/packages
I run this command under root:
./generate_package.sh -t agent -a armhf -s /tmp
The process of building the Docker image, compiling the files, etc.,
took around 7-8 hours, but it resulted in the following error:
cd external && test -e cJSON.tar.gz && gunzip cJSON.tar.gz || true
/bin/sh: 1: cd: can't cd to external
cd external && test -e cJSON.tar && tar -xf cJSON.tar || true
/bin/sh: 1: cd: can't cd to external
test -e external/cJSON.tar && rm external/cJSON.tar || true
test -d external/cJSON ||\
(curl -so external/cJSON.tar.gz
https://packages.wazuh.com/deps/30/libraries/sources/cJSON.tar.gz &&\
cd external && gunzip cJSON.tar.gz && tar -xf cJSON.tar && rm cJSON.tar)
Makefile:952: recipe for target 'external/cJSON.tar.gz' failed
make[2]: *** [external/cJSON.tar.gz] Error 23
make[2]: Leaving directory '/build_wazuh/agent/wazuh-agent-5.0.0/src'
debian/rules:40: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory '/build_wazuh/agent/wazuh-agent-5.0.0'
debian/rules:30: recipe for target 'binary' failed
make: *** [binary] Error 2
I have attached output.txt for more details.