Trying to compile Legato 18.05.1 using the instruction from the Getting Started Guide how-ever this results in error:
scripts/mod/mostpost: not found
Operating System:
rick@u1804:~/mangOH$ lsb_release -d
Description: Ubuntu 18.04 LTS
Architecture:
rick@u1804:~/mangOH$ uname -m
x86_64
Toolchain:
rick@u1804:~/mangOH$ ls -alh /opt/swi/
total 12K
drwxr-xr-x 3 root root 4.0K Jul 4 13:46 .
drwxr-xr-x 4 root root 4.0K Jul 4 13:53 ..
drwxr-xr-x 3 root root 4.0K Jul 4 13:45 y22-ext-SWI9X06Y_02.16.02.00
lrwxrwxrwx 1 root root 28 Jul 4 13:46 y22-ext-wp77xx -> y22-ext-SWI9X06Y_02.16.02.00
Error log toolchain installer:
rick@u1804:~/src$ ./poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-neon-toolchain-swi-ext-2.2.3.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.2.3
=================================================================
Enter target directory for SDK (default: /opt/swi/y22-ext): /opt/swi/y22-ext-SWI9X06Y_02.16.02.00
You are about to install the SDK to "/opt/swi/y22-ext-SWI9X06Y_02.16.02.00". Proceed[Y/n]?
Extracting SDK....................................................done
Setting it up...done
Makefile:662: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/bin2c
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
*** Error during update of the configuration.
scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:546: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'scripts'. Stop.
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/swi/y22-ext-SWI9X06Y_02.16.02.00/environment-setup-armv7a-neon-poky-linux-gnueabi
Error log legato framework:
rick@u1804:~/mangOH$ make red_wp77xx
make -C /home/rick/legato_framework/legato framework_wp77xx
make[1]: Entering directory '/home/rick/legato_framework/legato'
Module: WiFi
********************* VERSION ********************
Legato WiFi version: 18.05.0
**************************************************
Module: Dualsys
make -f Makefile.hostTools
make[2]: Entering directory '/home/rick/legato_framework/legato'
Using ninja installed at: /usr/bin/ninja
ln -sf ../build/tools/mk bin/mk
ln -sf mk bin/mkcomp
ln -sf mk bin/mkexe
ln -sf mk bin/mkapp
ln -sf mk bin/mksys
ln -sf ../framework/tools/scripts/splitdebug ../framework/tools/scripts/findtoolchain ../framework/tools/scripts/instsys ../framework/tools/scripts/settime ../framework/tools/scripts/mkinfo ../framework/tools/scripts/legato-qemu ../framework/tools/scripts/stoplegato ../framework/tools/scripts/cextgenerator.py ../framework/tools/scripts/settz ../framework/tools/scripts/createsdk ../framework/tools/scripts/systoimg ../framework/tools/scripts/instlegato ../framework/tools/scripts/checkpa ../framework/tools/scripts/legato-install ../framework/tools/scripts/update-pack ../framework/tools/scripts/security-pack ../framework/tools/scripts/instapp ../framework/tools/scripts/mklegatoimg ../framework/tools/scripts/app ../framework/tools/scripts/av-pack ../framework/tools/scripts/releaselegato ../framework/tools/scripts/sbhelper ../framework/tools/scripts/remoteDebug ../framework/tools/scripts/systocwe ../framework/tools/scripts/configlegatoenv ../framework/tools/scripts/update ../framework/tools/scripts/configtargetssh ../framework/tools/scripts/legs ../framework/tools/scripts/gettargettype ../framework/tools/scripts/update-util ../framework/tools/scripts/configToolchainDirEnvVars ../framework/tools/scripts/simu ../framework/tools/scripts/fwupdate ../framework/tools/scripts/setname ../framework/tools/scripts/mkdoc ../framework/tools/scripts/startlegato ../framework/tools/scripts/shlib ../framework/tools/scripts/mklegatotreero bin/
ln -sf /home/rick/legato_framework/legato/framework/tools/ifgen/ifgen bin/
ln -sf /home/rick/legato_framework/legato/3rdParty/ima-support-tools/ima-sign.sh bin/
ln -sf /home/rick/legato_framework/legato/3rdParty/ima-support-tools/ima-gen-keys.sh bin/
make -C framework/tools/mkPatch mkPatch
make[3]: Entering directory '/home/rick/legato_framework/legato/framework/tools/mkPatch'
/usr/bin/gcc -Wall -Werror -o /home/rick/legato_framework/legato/bin/mkPatch \
mkPatch.c /home/rick/legato_framework/legato/framework/liblegato/crc.c \
-I/home/rick/legato_framework/legato/framework/include \
-I/home/rick/legato_framework/legato/3rdParty/include
make[3]: Leaving directory '/home/rick/legato_framework/legato/framework/tools/mkPatch'
ninja -f /home/rick/legato_framework/legato/build/tools/build.ninja
ninja: no work to do.
make[2]: Leaving directory '/home/rick/legato_framework/legato'
# Generate an MD5 hash of everything in the source directories.
find framework components interfaces platformAdaptor modules apps/platformServices apps/tools targetFiles Makefile.framework Makefile.hostTools Makefile.targetTools Makefile targetDefs CMakeLists.txt -type f | grep -v ".git" | sort | while read filePath ; \
do \
echo "$filePath" && \
cat "$filePath" ; \
done | md5sum | awk '{ print $1 }' > sources.md5
version=18.05.1
md5=7fd38a2f118a4a39f05215f9df887a4d
make -f Makefile.framework CC=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
make[2]: Entering directory '/home/rick/legato_framework/legato'
ninja -f /home/rick/legato_framework/legato/build/wp77xx/framework/build.ninja
ninja: no work to do.
/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/y22-ext-wp77xx/sysroots/armv7a-neon-poky-linux-gnueabi -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/startSystem /home/rick/legato_framework/legato/framework/daemons/linux/start/start.c \
-Wall -Werror \
-I/home/rick/legato_framework/legato/framework/include \
-I/home/rick/legato_framework/legato/framework/liblegato \
-I/home/rick/legato_framework/legato/framework/liblegato/linux \
-DVERSION=\"18.05.1\" \
-DDISABLE_SMACK=0 \
\
-Wl,--enable-new-dtags,-rpath="\$ORIGIN/../lib" \
-L/home/rick/legato_framework/legato/build/wp77xx/framework/lib -llegato
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/supervisor -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/supervisor -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
/home/rick/legato_framework/legato/framework/daemons/linux/supervisor \
-i /home/rick/legato_framework/legato/interfaces/supervisor \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-i /home/rick/legato_framework/legato/framework/daemons/linux/start \
-s /home/rick/legato_framework/legato/framework/daemons/linux/supervisor \
--cflags=-DDISABLE_SMACK=0 \
\
--cflags=-DNO_LOG_CONTROL \
--cflags=-DLEGATO_FRAMEWORK_NICE_LEVEL=-19
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/serviceDirectory -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/serviceDirectory -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
/home/rick/legato_framework/legato/framework/daemons/linux/serviceDirectory \
--cflags=-I/home/rick/legato_framework/legato/framework/liblegato \
--cflags=-I/home/rick/legato_framework/legato/framework/liblegato/linux \
--cflags=-DNO_LOG_CONTROL \
--cflags=-DLE_RUNTIME_DIR="/tmp/legato//" \
--cflags=-DLE_SVCDIR_SERVER_SOCKET_NAME="/tmp/legato/serviceDirectoryServer" \
--cflags=-DLE_SVCDIR_CLIENT_SOCKET_NAME="/tmp/legato/serviceDirectoryClient"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/logCtrlDaemon -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/logCtrlDaemon -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
/home/rick/legato_framework/legato/framework/daemons/linux/logDaemon \
--cflags=-DNO_LOG_CONTROL \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-i /home/rick/legato_framework/legato/interfaces/supervisor
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/configTree -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/configTree -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
/home/rick/legato_framework/legato/framework/daemons/linux/configTree \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
--cflags=-std=c99
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/watchdog -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/watchdog -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
/home/rick/legato_framework/legato/framework/daemons/linux/watchdog/watchdogDaemon #\
#--cflags=-DLEGATO_FRAMEWORK_WDOG_DISABLE
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/updateDaemon -t wp77xx -w /home/rick/legato_framework/legato/build/wp77xx/framework/updateDaemon -l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -d /home/rick/legato_framework/legato/build/wp77xx/debug \
/home/rick/legato_framework/legato/framework/daemons/linux/updateDaemon \
-i /home/rick/legato_framework/legato/interfaces/updateDaemon \
-i /home/rick/legato_framework/legato/components/appCfg \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-s /home/rick/legato_framework/legato/components \
-s /home/rick/legato_framework/legato/framework/daemons/linux/updateDaemon \
\
--ldflags=-L/home/rick/legato_framework/legato/build/wp77xx/framework/lib
ninja: no work to do.
make -f Makefile.targetTools DISABLE_SMACK=0
make[3]: Entering directory '/home/rick/legato_framework/legato'
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/config /home/rick/legato_framework/legato/framework/tools/target/linux/config \
-i /home/rick/legato_framework/legato/build/wp77xx/framework/libjansson/include/ \
-i /home/rick/legato_framework/legato/framework/liblegato \
--ldflags=-L/home/rick/legato_framework/legato/build/wp77xx/framework/lib \
--ldflags=-ljansson \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/config -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/log \
/home/rick/legato_framework/legato/framework/tools/target/linux/logTool/logTool.c \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/daemons/linux/logDaemon \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/log -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/sdir \
/home/rick/legato_framework/legato/framework/tools/target/linux/sdirTool \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-i /home/rick/legato_framework/legato/framework/daemons/linux/serviceDirectory \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/sdir -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
ln -sf debugCfg /home/rick/legato_framework/legato/build/wp77xx/framework/bin/gdbCfg
ln -sf debugCfg /home/rick/legato_framework/legato/build/wp77xx/framework/bin/straceCfg
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/inspect \
/home/rick/legato_framework/legato/framework/tools/target/linux/inspect/inspect.c \
--cflags=-DLE_SVCDIR_SERVER_SOCKET_NAME="/tmp/legato/serviceDirectoryServer" \
--cflags=-DLE_SVCDIR_CLIENT_SOCKET_NAME="/tmp/legato/serviceDirectoryClient" \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-i /home/rick/legato_framework/legato/framework/daemons/linux \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/inspect -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/xattr \
/home/rick/legato_framework/legato/framework/tools/target/linux/xattr/xattr.c \
-i /home/rick/legato_framework/legato/framework/liblegato \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/xattr -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/_appStopClient \
/home/rick/legato_framework/legato/framework/tools/target/linux/appStopClient/appStopClient.c \
--cflags=-DLE_RUNTIME_DIR='"/tmp/legato/"' \
-i /home/rick/legato_framework/legato/framework/liblegato \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/appStopClient -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/app \
/home/rick/legato_framework/legato/framework/tools/target/linux/appCtrl \
-i /home/rick/legato_framework/legato/interfaces/supervisor \
-i /home/rick/legato_framework/legato/framework/liblegato \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/app -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/update \
/home/rick/legato_framework/legato/framework/tools/target/linux/update \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/update -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
mkexe -o /home/rick/legato_framework/legato/build/wp77xx/framework/bin/sbtrace \
/home/rick/legato_framework/legato/framework/tools/target/linux/sbtrace \
-i /home/rick/legato_framework/legato/framework/liblegato/linux \
-l /home/rick/legato_framework/legato/build/wp77xx/framework/lib -w /home/rick/legato_framework/legato/build/wp77xx/framework/tools/sbtrace -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
ninja: no work to do.
cp -u -P --preserve=all framework/tools/target/linux/bin/configEcm framework/tools/target/linux/bin/install-hook framework/tools/target/linux/bin/legato framework/tools/target/linux/bin/setNet framework/tools/target/linux/bin/debugCfg framework/tools/target/linux/bin/start framework/tools/target/linux/bin/security-unpack framework/tools/target/linux/bin/saveLogs framework/tools/target/linux/bin/pss /home/rick/legato_framework/legato/build/wp77xx/framework/bin
mkapp /home/rick/legato_framework/legato/apps/tools/devMode.adef \
-i /home/rick/legato_framework/legato/framework/liblegato \
-o /home/rick/legato_framework/legato/build/wp77xx/tools -w /home/rick/legato_framework/legato/build/wp77xx/apps/tools/devMode -t wp77xx -d /home/rick/legato_framework/legato/build/wp77xx/debug --cflags=" -O2 -fno-omit-frame-pointer"
[4/4] Packaging app
make[3]: Leaving directory '/home/rick/legato_framework/legato'
# Computing MD5 hash for contents of framework bin and lib directories.
md5=` ( find /home/rick/legato_framework/legato/build/wp77xx/framework/bin && \
find /home/rick/legato_framework/legato/build/wp77xx/framework/bin -type f | xargs cat && \
find /home/rick/legato_framework/legato/build/wp77xx/framework/bin -type l | xargs -r -n 1 readlink && \
find /home/rick/legato_framework/legato/build/wp77xx/framework/lib && \
find /home/rick/legato_framework/legato/build/wp77xx/framework/lib -type f | xargs cat && \
find /home/rick/legato_framework/legato/build/wp77xx/framework/lib -type l | xargs -r -n 1 readlink \
) | md5sum` && \
md5=${md5%% *} && \
echo "$md5" > /home/rick/legato_framework/legato/build/wp77xx/framework/md5
make[2]: Leaving directory '/home/rick/legato_framework/legato'
make[1]: Leaving directory '/home/rick/legato_framework/legato'
TOOLCHAIN_DIR=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi \
TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi- \
MANGOH_BOARD=RED \
mksys -t wp77xx --object-dir=build/red_wp77xx --output-dir=build/update_files/red mangOH.sdef
[1/976] Build kernel driver module
FAILED: /home/rick/mangOH/build/red_wp77xx/modules/bmp280-i2c/bmp280-i2c.ko
make -C /home/rick/mangOH/build/red_wp77xx/modules/bmp280-i2c
make[1]: Entering directory '/home/rick/mangOH/build/red_wp77xx/modules/bmp280-i2c'
make -C /opt/swi/y22-ext-wp77xx/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel M=/home/rick/mangOH/build/red_wp77xx/modules/bmp280-i2c modules
make[2]: Entering directory '/opt/swi/y22-ext-SWI9X06Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
Building modules, stage 2.
MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 127
Makefile:1403: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: Leaving directory '/opt/swi/y22-ext-SWI9X06Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/rick/mangOH/build/red_wp77xx/modules/bmp280-i2c'
[2/976] Build kernel driver module
FAILED: /home/rick/mangOH/build/red_wp77xx/modules/bmi160-i2c/bmi160-i2c.ko
make -C /home/rick/mangOH/build/red_wp77xx/modules/bmi160-i2c
make[1]: Entering directory '/home/rick/mangOH/build/red_wp77xx/modules/bmi160-i2c'
make -C /opt/swi/y22-ext-wp77xx/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel M=/home/rick/mangOH/build/red_wp77xx/modules/bmi160-i2c modules
make[2]: Entering directory '/opt/swi/y22-ext-SWI9X06Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
Building modules, stage 2.
MODPOST 1 modules
/bin/sh: 1: scripts/mod/modpost: not found
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 127
Makefile:1403: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: Leaving directory '/opt/swi/y22-ext-SWI9X06Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel'
Makefile:19: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/rick/mangOH/build/red_wp77xx/modules/bmi160-i2c'
ninja: build stopped: subcommand failed.
Makefile:89: recipe for target 'red_wp77xx' failed
make: *** [red_wp77xx] Error 1
Any suggestions how-to fix this?