Build error for make wp_77xx

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

1 Like

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

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

1 Like