# Make green\_wp76xx failes

**URL:** <https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329>\
**Category:** mangOH Green\
**Created:** [April 12, 2018, 2:55am UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329 "2018-04-12T02:55:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deadpoolcode](https://mangoh.discourse.group/u/deadpoolcode)\
**Post date:** [April 12, 2018, 2:55am UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329/1 "2018-04-12T02:55:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [April 12, 2018, 3:53am UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329/2 "2018-04-12T03:53:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@deadpoolcode](https://mangoh.discourse.group/u/deadpoolcode)\
**Post date:** [April 17, 2018, 8:35am UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329/3 "2018-04-17T08:35:57Z")

</div>

Any update for this issue?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [April 17, 2018, 12:54pm UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329/4 "2018-04-17T12:54:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [April 18, 2018, 5:17pm UTC](https://mangoh.discourse.group/t/make-green-wp76xx-failes/1329/5 "2018-04-18T17:17:40Z")

</div>

It’s fixed now in a [mangOH commit](https://github.com/mangOH/mangOH/commit/0e25000da026ea3d613128f531f6a6148f10aafa) and a [GpioExpander](https://github.com/mangOH/GpioExpander/commit/eddfe628188b60efb32a988dfac9c62f50ef6206) commit. I pushed the commits yesterday, but I forgot to update this forum post.
