# Build error for make wp\_76xx

**URL:** <https://forum.legato.io/t/build-error-for-make-wp-76xx/3520>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [August 3, 2018, 10:05am UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520 "2018-08-03T10:05:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivashivasiva](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/shivashivasiva/32/610_2.png) [@shivashivasiva](https://forum.legato.io/u/shivashivasiva)\
**Post date:** [August 3, 2018, 10:05am UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/1 "2018-08-03T10:05:50Z")

</div>

Hi All,

I followed the Getting start guide. At the stage, "prepare your mangOH board for your development "  
when I give the command make wp\_76xx , i get the following errors . DO I miss something here ?

Please find the output below of the error

stirulaka@ubuntu:~/work/mttm/mangOH$ make red\_wp76xx  
make -C /home/stirulaka/work/mttm/legato\_framework/legato framework\_wp76xx  
make[1]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’  
Module: WiFi  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* VERSION \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Legato WiFi version: 18.05.0

* * *

Module: Dualsys  
make -f Makefile.hostTools  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’  
Using ninja installed at: /usr/bin/ninja  
export TOOLS\_ARCH=x86\_64 &&   
framework/tools/mkTools/ninja-generator  
Tools arch: x86\_64  
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/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/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/stirulaka/work/mttm/legato\_framework/legato/framework/tools/ifgen/ifgen bin/  
ln -sf /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/ima-support-tools/ima-sign.sh bin/  
ln -sf /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/ima-support-tools/ima-gen-keys.sh bin/  
make -C framework/tools/mkPatch mkPatch  
make[3]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/mkPatch’  
/usr/bin/gcc -Wall -Werror -o /home/stirulaka/work/mttm/legato\_framework/legato/bin/mkPatch   
mkPatch.c /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/crc.c   
-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/include   
-I/home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/include  
make[3]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/mkPatch’  
ninja -f /home/stirulaka/work/mttm/legato\_framework/legato/build/tools/build.ninja  
ninja: no work to do.  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/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.06.1  
md5=e68f498d69a09ddd1feeecba87f6458c  
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/stirulaka/work/mttm/legato\_framework/legato’  
framework/liblegato/ninja-generator  
ninja -f /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/build.ninja  
ninja: no work to do.  
/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-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/startSystem /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/start/start.c   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/common/ima.c  
-Wall -Werror   
-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/include   
-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/common   
-DVERSION="18.06.1"   
-DDISABLE\_SMACK=0   
  
-Wl,–enable-new-dtags,-rpath=“$ORIGIN/../lib”   
-L/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -llegato -lssl -lcrypto  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/supervisor -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/supervisor -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/supervisor   
-i /home/stirulaka/work/mttm/legato\_framework/legato/interfaces/supervisor   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/start   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/common   
-s /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/supervisor   
–cflags=-DDISABLE\_SMACK=0   
  
–cflags=-DNO\_LOG\_CONTROL   
–cflags=-DLEGATO\_FRAMEWORK\_NICE\_LEVEL=-19   
–ldflags=-lssl   
–ldflags=-lcrypto  
[10/10] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/serviceDirectory -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/serviceDirectory -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/serviceDirectory   
–cflags=-I/home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
–cflags=-I/home/stirulaka/work/mttm/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”  
[4/4] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/logCtrlDaemon -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/logCtrlDaemon -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/logDaemon   
–cflags=-DNO\_LOG\_CONTROL   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-i /home/stirulaka/work/mttm/legato\_framework/legato/interfaces/supervisor  
[5/5] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/configTree -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/configTree -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/configTree   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
–cflags=-std=c99  
[14/14] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/watchdog -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/watchdog -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/watchdog/watchdogDaemon #  
#–cflags=-DLEGATO\_FRAMEWORK\_WDOG\_DISABLE  
[7/7] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/updateDaemon -t wp76xx -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/updateDaemon -l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/updateDaemon   
-i /home/stirulaka/work/mttm/legato\_framework/legato/interfaces/updateDaemon   
-i /home/stirulaka/work/mttm/legato\_framework/legato/components/appCfg   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/common   
-s /home/stirulaka/work/mttm/legato\_framework/legato/components   
-s /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/updateDaemon   
  
–ldflags=-L/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib   
–ldflags=-lssl   
–ldflags=-lcrypto  
[16/16] Linking C executable  
export TARGET\_CC &&   
mkdir -p /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson  
cd /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson &&   
cmake /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson   
-DCMAKE\_TOOLCHAIN\_FILE=/home/stirulaka/work/mttm/legato\_framework/legato/cmake/toolchain.yocto.cmake   
-DCMAKE\_LIBRARY\_OUTPUT\_DIRECTORY=/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib   
-DBUILD\_SHARED\_LIBS=ON   
-DJANSSON\_WITHOUT\_TESTS=ON   
-DJANSSON\_EXAMPLES=OFF   
-DJANSSON\_BUILD\_DOCS=OFF   
-DUSE\_CLANG=0  
Re-run cmake no build system arguments  
Target compilers: /opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc /opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++  
Target sysroot: /opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi  
C compiler: GNU  
– Configuring done  
– Generating done  
– Build files have been written to: /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson  
make -C /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson  
make[3]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
/usr/bin/cmake -H/home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson -B/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson --check-build-system CMakeFiles/Makefile.cmake 0  
/usr/bin/cmake -E cmake\_progress\_start /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/CMakeFiles /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/CMakeFiles/progress.marks  
make -f CMakeFiles/Makefile2 all  
make[4]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
make -f CMakeFiles/jansson.dir/build.make CMakeFiles/jansson.dir/depend  
make[5]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
cd /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson && /usr/bin/cmake -E cmake\_depends “Unix Makefiles” /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/CMakeFiles/jansson.dir/DependInfo.cmake --color=  
make[5]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
make -f CMakeFiles/jansson.dir/build.make CMakeFiles/jansson.dir/build  
make[5]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
[8%] Building C object CMakeFiles/jansson.dir/src/value.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/value.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/value.c  
[16%] Building C object CMakeFiles/jansson.dir/src/utf.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/utf.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/utf.c  
[25%] Building C object CMakeFiles/jansson.dir/src/dump.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/dump.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/dump.c  
[33%] Building C object CMakeFiles/jansson.dir/src/error.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/error.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/error.c  
[41%] Building C object CMakeFiles/jansson.dir/src/strconv.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/strconv.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/strconv.c  
[50%] Building C object CMakeFiles/jansson.dir/src/hashtable\_seed.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/hashtable\_seed.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/hashtable\_seed.c  
[58%] Building C object CMakeFiles/jansson.dir/src/hashtable.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/hashtable.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/hashtable.c  
[66%] Building C object CMakeFiles/jansson.dir/src/memory.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/memory.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/memory.c  
[75%] Building C object CMakeFiles/jansson.dir/src/strbuffer.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/strbuffer.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/strbuffer.c  
[83%] Building C object CMakeFiles/jansson.dir/src/pack\_unpack.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/pack\_unpack.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/pack\_unpack.c  
[91%] Building C object CMakeFiles/jansson.dir/src/load.c.o  
/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -DHAVE\_CONFIG\_H -DJANSSON\_USING\_CMAKE -Djansson\_EXPORTS -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include -I/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/private\_include -fPIC --sysroot=/opt/swi/y22-ext-wp76xx/sysroots/armv7a-neon-poky-linux-gnueabi -fPIC -o CMakeFiles/jansson.dir/src/load.c.o -c /home/stirulaka/work/mttm/legato\_framework/legato/3rdParty/jansson/src/load.c  
[100%] Linking C shared library lib/libjansson.so  
/usr/bin/cmake -E cmake\_link\_script CMakeFiles/jansson.dir/link.txt --verbose=0  
make[5]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
[100%] Built target jansson  
make[4]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
/usr/bin/cmake -E cmake\_progress\_start /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/CMakeFiles 0  
make[3]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson’  
cp /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/lib/libjansson.so /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib/libjansson.so  
make -f Makefile.targetTools DISABLE\_SMACK=0  
make[3]: Entering directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/config /home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/config   
-i /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/libjansson/include/   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
–ldflags=-L/home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib   
–ldflags=-ljansson   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/config -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[5/5] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/log   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/logTool/logTool.c   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/logDaemon   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/log -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[2/2] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/sdir   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/sdirTool   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux/serviceDirectory   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/sdir -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[5/5] Linking C executable  
ln -sf debugCfg /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/gdbCfg  
ln -sf debugCfg /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/straceCfg  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/inspect   
/home/stirulaka/work/mttm/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/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/daemons/linux   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/inspect -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[2/2] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/xattr   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/xattr/xattr.c   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/xattr -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[2/2] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/\_appStopClient   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/appStopClient/appStopClient.c   
–cflags=-DLE\_RUNTIME\_DIR=‘“/tmp/legato/”’   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/appStopClient -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[2/2] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/app   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/appCtrl   
-i /home/stirulaka/work/mttm/legato\_framework/legato/interfaces/supervisor   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/app -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[5/5] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/update   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/update   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/update -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[5/5] Linking C executable  
mkexe -o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin/sbtrace   
/home/stirulaka/work/mttm/legato\_framework/legato/framework/tools/target/linux/sbtrace   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato/linux   
-l /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/lib -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/tools/sbtrace -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[5/5] Linking C executable  
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/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/bin  
mkapp /home/stirulaka/work/mttm/legato\_framework/legato/apps/tools/devMode.adef   
-i /home/stirulaka/work/mttm/legato\_framework/legato/framework/liblegato   
-o /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/tools -w /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/apps/tools/devMode -t wp76xx -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/debug --cflags=" -O2 -fno-omit-frame-pointer"  
[9/9] Packaging app  
make[3]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’

# Computing MD5 hash for contents of framework bin and lib directories.

md5=` ( find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/bin && \ find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/bin -type f | xargs cat && \ find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/bin -type l | xargs -r -n 1 readlink && \ find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/lib && \ find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/lib -type f | xargs cat && \ find /home/stirulaka/work/mttm/legato_framework/legato/build/wp76xx/framework/lib -type l | xargs -r -n 1 readlink \ ) | md5sum` &&   
md5=${md5%% \*} &&   
echo “$md5” \> /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/framework/md5  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’  
make[1]: Leaving directory ‘/home/stirulaka/work/mttm/legato\_framework/legato’  
TOOLCHAIN\_DIR=/opt/swi/y22-ext-wp76xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi   
TOOLCHAIN\_PREFIX=arm-poky-linux-gnueabi-   
MANGOH\_BOARD=RED   
mksys -t wp76xx --object-dir=build/red\_wp76xx --output-dir=build/update\_files/red mangOH.sdef  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* ERROR:  
/home/stirulaka/work/mttm/mangOH/mangOH.sdef:174:4: error: Module ‘spisvc’ added to the system more than once.  
/home/stirulaka/work/mttm/legato\_framework/legato/default.sdef:41:4: note: Previously added here.  
Makefile:82: recipe for target ‘red\_wp76xx’ failed  
make: \*\*\* [red\_wp76xx] Error 1

Thanking you all in advance

Thanks,  
Siva

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 3, 2018, 2:19pm UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/2 "2018-08-03T14:19:43Z")

</div>

/home/stirulaka/work/mttm/mangOH/mangOH.sdef:174:4: error: Module ‘spisvc’ added to the system more than once

Maybe you need to comment out the spisvc in mangOH.def.

---

<div class="post-metadata">

**Author:** ![shivashivasiva](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/shivashivasiva/32/610_2.png) [@shivashivasiva](https://forum.legato.io/u/shivashivasiva)\
**Post date:** [August 3, 2018, 2:43pm UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/3 "2018-08-03T14:43:44Z")

</div>

@jyijyi: Thanks for your help. Looks like after commenting out spisvc , the build is success. Below is the tail of the output

done  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/tests’  
:  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/tests’  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/doc’  
make[2]: \*\*\* No rule to make target ‘html’, needed by ‘install’. Stop.  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/doc’  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/platform-specific’  
:  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/platform-specific’  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/sha2’  
test -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/sha2 || mkdir -p /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/sha2  
cp sha2.h /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/sha2  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/sha2’  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/aes’  
test -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/aes || mkdir -p /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/aes  
cp rijndael.h /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/aes  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/aes’  
make[2]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/ecc’  
test -d /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/ecc || mkdir -p /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/ecc  
cp ecc.h test\_helper.h /home/stirulaka/work/mttm/legato\_framework/legato/build/wp76xx/3rdParty/tinydtls/include/tinydtls/ecc  
make[2]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc/ecc’  
make[1]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/efe6ed928d90d5604d5b56f51698f6bc’  
[273/978] Running external build step  
make[1]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/fa32b30a8fe4b9878e1498e131166259’  
make[1]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/fa32b30a8fe4b9878e1498e131166259’  
[277/978] Running external build step  
make[1]: Entering directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/d37052700b8df754306397a1dc770bf4’  
make[1]: Leaving directory ‘/home/stirulaka/work/mttm/mangOH/build/red\_wp76xx/component/d37052700b8df754306397a1dc770bf4’  
[978/978] Packaging system

But I am wondering how to build the spisvc without commenting. I am not sure why this kernel module build creates the failure problem

Thanks,  
SIva

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 3, 2018, 3:18pm UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/4 "2018-08-03T15:18:13Z")

</div>

/home/stirulaka/work/mttm/legato\_framework/legato/default.sdef:41:4: note: Previously added here

Seems already in your legato image …

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/dfrey/32/563_2.png) [@dfrey](https://forum.legato.io/u/dfrey)\
**Post date:** [August 3, 2018, 3:30pm UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/5 "2018-08-03T15:30:14Z")

</div>

The spisvc included multiple times error is a slight incompatibility problem related to a change that went into Legato 18.06.1. Basically the Legato SDEF file includes spisvc only for wp76 and mangOH includes spisvc unconditionally. The result is that it’s included once for wp85, wp750x and wp77xx and twice for wp77xx. Once Legato 18.07.0 is released, I will be removing spisvc from the mangOH SDEF.

Also, as mentioned in the other thread, this type of post is better suited for the [mangOH forum](https://forum.mangoh.io)

---

<div class="post-metadata">

**Author:** ![shivashivasiva](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/shivashivasiva/32/610_2.png) [@shivashivasiva](https://forum.legato.io/u/shivashivasiva)\
**Post date:** [August 3, 2018, 5:19pm UTC](https://forum.legato.io/t/build-error-for-make-wp-76xx/3520/6 "2018-08-03T17:19:33Z")

</div>

Thanks dfrey, I will post in mangOH forum for my future posts related to mangOH

Much appreciated your responses.
