# Build error for make wp\_77xx

**URL:** <https://forum.legato.io/t/build-error-for-make-wp-77xx/4980>\
**Category:** Uncategorized\
**Created:** [February 3, 2020, 8:34am UTC](https://forum.legato.io/t/build-error-for-make-wp-77xx/4980 "2020-02-03T08:34:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muradali](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@muradali](https://forum.legato.io/u/muradali)\
**Post date:** [February 3, 2020, 8:34am UTC](https://forum.legato.io/t/build-error-for-make-wp-77xx/4980/1 "2020-02-03T08:34:47Z")

</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 ?

Makefile:86: ==== OCTAVE\_ROOT not defined ====  
Not building LEGATO due to $LEGATO == 0  
make: /home/mangoh/legato\_framework/legato/bin/findtoolchain: Command not found  
make: /home/mangoh/legato\_framework/legato/bin/findtoolchain: Command not found

# NOTE: When using leaf, these TOOLCHAIN\_X variables don’t need to be passed to mksys.

TOOLCHAIN\_DIR=   
TOOLCHAIN\_PREFIX=   
OCTAVE=   
mksys -t wp77xx --cflags=-O2 --object-dir=build/red\_wp77xx --output-dir=build/update\_files red.sdef  
/bin/sh: 1: mksys: not found  
Makefile:115: recipe for target ‘red\_wp77xx’ failed  
make: \*\*\* [red\_wp77xx] Error 127

---

<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:** [February 10, 2020, 7:41am UTC](https://forum.legato.io/t/build-error-for-make-wp-77xx/4980/2 "2020-02-10T07:41:19Z")

</div>

seems you need to first go to the legato framework, and type “. ./configlegatoenv”  
e.g.

owner@CNHKG-EX-001367:~/legato/packages/legato.framework.18.10.3.wp76xx-201903041257/resources/legato$ pwd  
/home/owner/legato/packages/legato.framework.18.10.3.wp76xx-201903041257/resources/legato  
owner@CNHKG-EX-001367:~/legato/packages/legato.framework.18.10.3.wp76xx-201903041257/resources/legato$ . bin/configlegatoenv  
[wp85] Toolchain dir = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
[wp750x] Toolchain dir = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/SWI9X15Y\_07.13.05.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
[wp76xx] Toolchain dir = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
[wp77xx] Toolchain dir = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/SWI9X07Y\_02.28.03.05/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
[ar758x] Toolchain dir = /opt/swi/y22-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel  
[ar759x] Toolchain dir = /opt/swi/y22-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi  
prefix = arm-poky-linux-gnueabi-  
sysroot = /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi  
kernelroot = /opt/swi/y22-ext/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel

---

<div class="post-metadata">

**Author:** ![simocn77](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@simocn77](https://forum.legato.io/u/simocn77)\
**Post date:** [June 4, 2020, 12:32pm UTC](https://forum.legato.io/t/build-error-for-make-wp-77xx/4980/3 "2020-06-04T12:32:47Z")

</div>

I have the same problem, and I have solved , typing “leaf shell” , before make command.

this works:

cd ~/myWorkspace  
leaf search -t mangOH -t red -t wp76xx  
leaf setup p1\_red76 -p mangoh-red-wp76xx\_0.5.0  
leaf shell  
make red\_spk
