Make green_wp76xx failes

export LEGATO_ROOT=~/legato/workspace/legato/
export PATH=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi/:$PATH
make green_wp76xx

starting build:

~/mangOH(master)$ make green_wp76xx
make -C /home/ilan/legato/workspace/legato/ framework_wp76xx
make[1]: Entering directory ‘/home/ilan/legato/workspace/legato’
Module: WiFi
Module: Dualsys
make -f Makefile.hostTools
make[2]: Entering directory ‘/home/ilan/legato/workspace/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/instsys …/framework/tools/scripts/settime …/framework/tools/scripts/mkinfo …/framework/tools/scripts/instlegato …/framework/tools/scripts/stoplegato …/framework/tools/scripts/cextgenerator.py …/framework/tools/scripts/settz …/framework/tools/scripts/createsdk …/framework/tools/scripts/systoimg …/framework/tools/scripts/findtoolchain …/framework/tools/scripts/legato-qemu …/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/ilan/legato/workspace/legato/framework/tools/ifgen/ifgen bin/
ln -sf /home/ilan/legato/workspace/legato/3rdParty/ima-support-tools/ima-sign.sh bin/
ln -sf /home/ilan/legato/workspace/legato/3rdParty/ima-support-tools/ima-gen-keys.sh bin/
make -C framework/tools/mkPatch mkPatch
make[3]: Entering directory ‘/home/ilan/legato/workspace/legato/framework/tools/mkPatch’
/usr/bin/gcc -Wall -Werror -o /home/ilan/legato/workspace/legato/bin/mkPatch
mkPatch.c /home/ilan/legato/workspace/legato/framework/liblegato/crc.c
-I/home/ilan/legato/workspace/legato/framework/include
-I/home/ilan/legato/workspace/legato/3rdParty/include
make[3]: Leaving directory ‘/home/ilan/legato/workspace/legato/framework/tools/mkPatch’
ninja -f /home/ilan/legato/workspace/legato/build/tools/build.ninja
ninja: no work to do.
make[2]: Leaving directory ‘/home/ilan/legato/workspace/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.02.0-27-g23ad932
md5=d0a40157ba375198f158a1df888d8a73
make -f Makefile.framework CC=/opt/swi/y22-ext-wp76xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
make[2]: Entering directory ‘/home/ilan/legato/workspace/legato’

failing here:

[809/1093] Compiling C source
FAILED: /opt/swi/y22-ext-wp76xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --sysroot=/opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi -MMD -MF /home/ilan/mangOH/build/green_wp76xx/component/c149a752c17c12dcce77e043b5c004e0/obj/d5c6d48cbf99889f834d8ac6a76a9bc5.o.d -c /home/ilan/mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderCommon/gpioExpander.c -o /home/ilan/mangOH/build/green_wp76xx/component/c149a752c17c12dcce77e043b5c004e0/obj/d5c6d48cbf99889f834d8ac6a76a9bc5.o -DLE_FILENAME=basename /home/ilan/mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderCommon/gpioExpander.c -Wall -fPIC -Werror -fvisibility=hidden -DMK_TOOLS_BUILD -DLEGATO_EMBEDDED -DSIERRA_MDM9X28 -DSIERRA_WP76XX -DPCM_IF=SEC_AUX -DI2S_IF=SEC_MI2S -DUSB_IF=AFE_PCM -DCODEC_IF=PRI_MI2S -DMM_1_ALSA_MIXER_CTRL=MultiMedia1 -DMM_1_ALSA_PCM_DEVICE_ID=0 -DMM_2_ALSA_MIXER_CTRL=MultiMedia2 -DMM_2_ALSA_PCM_DEVICE_ID=13 -DADC_BEGIN_NUM=0 -DADC_COUNT=4 -DPDP_MAX_PROFILE=16 -DPDP_MAX_MULTIPDP=8 -DEUICC -I build/green_wp76xx -I/home/ilan/legato/workspace/legato/interfaces -I/home/ilan/legato/workspace/legato/framework/include -I. -I/home/ilan/legato/workspace/legato//interfaces/modemServices -I/home/ilan/legato/workspace/legato//interfaces/positioning -I/home/ilan/legato/workspace/legato//interfaces/atServices -I/home/ilan/mangOH/apps/MuxControl -I/home/ilan/mangOH/apps/DataRouter -I/home/ilan/mangOH/apps/MqttClient -I/home/ilan/mangOH/apps/SocialService/interfaces -I/home/ilan/mangOH/build/green_wp76xx/component/c149a752c17c12dcce77e043b5c004e0/src -DLE_COMPONENT_NAME=gpioExpanderCommon -DLE_LOG_SESSION=gpioExpanderCommon_LogSession -DLE_LOG_LEVEL_FILTER_PTR=gpioExpanderCommon_LogLevelFilterPtr “-DCOMPONENT_INIT=LE_CI_LINKAGE LE_SHARED void _gpioExpanderCommon_COMPONENT_INIT()” “-std=c99”
/home/ilan/mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderCommon/gpioExpander.c:25:32: fatal error: linux/i2c-dev-user.h: No such file or directory
** #include <linux/i2c-dev-user.h>**
^
compilation terminated.
[809/1093] Compiling C source
ninja: build stopped: subcommand failed.
Makefile:68: recipe for target ‘green_wp76xx’ failed
make: *** [green_wp76xx] Error 1

This is a known issue caused by the removal of i2c-utils in wp76/wp77 release 8. I have a workaround planned. I will try to do it tomorrow.

Any update for this issue?

Sorry…
It ended up being slightly more complicated than I thought and other stuff came up. I will finish it this morning.

It’s fixed now in a mangOH commit and a GpioExpander commit. I pushed the commits yesterday, but I forgot to update this forum post.