Hi There,
I’m new in this forum and I’m trying to compile the code for wp750x following the instructions on the website (http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOH%20Red%20GSG%20-%20Linux%20R2/#t=41112261_mangOH_Red_GSG_-_HTML5%2F41112261_PrepMangoh%2F41112261_PrepMangoh.htm)
When I get to Build the code, I get a build error and I don’t know where to continue looking for answers:
[4/4] Packaging app
make[3]: Leaving directory ‘/home/franco/legato_framework/legato’
Computing MD5 hash for contents of framework bin and lib directories.
md5=( find /home/franco/legato_framework/legato/build/wp750x/framework/bin && \ find /home/franco/legato_framework/legato/build/wp750x/framework/bin -type f | xargs cat && \ find /home/franco/legato_framework/legato/build/wp750x/framework/bin -type l | xargs -r -n 1 readlink && \ find /home/franco/legato_framework/legato/build/wp750x/framework/lib && \ find /home/franco/legato_framework/legato/build/wp750x/framework/lib -type f | xargs cat && \ find /home/franco/legato_framework/legato/build/wp750x/framework/lib -type l | xargs -r -n 1 readlink \ ) | md5sum
&&
md5=${md5%% *} &&
echo “$md5” > /home/franco/legato_framework/legato/build/wp750x/framework/md5
make[2]: Leaving directory ‘/home/franco/legato_framework/legato’
make[1]: Leaving directory ‘/home/franco/legato_framework/legato’
TOOLCHAIN_DIR=/opt/swi/y17-ext-wp750x/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
TOOLCHAIN_PREFIX=arm-poky-linux-gnueabi-
MANGOH_BOARD=RED
mksys -t wp750x --object-dir=build/red_wp750x --output-dir=build/update_files/red mangOH.sdef
** Warning: Ignoring empty app specification
** Warning: Ignoring empty app specification
[3/968] Build kernel driver module
FAILED: make -C /home/franco/mangOH/build/red_wp750x/modules/0-bq24296
make[1]: Entering directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-bq24296’
make -C /opt/swi/y17-ext-wp750x/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/franco/mangOH/build/red_wp750x/modules/0-bq24296 modules
make[2]: Entering directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
CC [M] /home/franco/mangOH/build/red_wp750x/modules/0-bq24296/bq24190-charger.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target ‘/home/franco/mangOH/build/red_wp750x/modules/0-bq24296/bq24190-charger.o’ failed
make[3]: *** [/home/franco/mangOH/build/red_wp750x/modules/0-bq24296/bq24190-charger.o] Error 127
Makefile:1276: recipe for target ‘module/home/franco/mangOH/build/red_wp750x/modules/0-bq24296’ failed
make[2]: *** [module/home/franco/mangOH/build/red_wp750x/modules/0-bq24296] Error 2
make[2]: Leaving directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
Makefile:12: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-bq24296’
[3/968] Build kernel driver module
FAILED: make -C /home/franco/mangOH/build/red_wp750x/modules/0-iio
make[1]: Entering directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-iio’
make -C /opt/swi/y17-ext-wp750x/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/franco/mangOH/build/red_wp750x/modules/0-iio modules
make[2]: Entering directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
CC [M] /home/franco/mangOH/build/red_wp750x/modules/0-iio/industrialio-core.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target ‘/home/franco/mangOH/build/red_wp750x/modules/0-iio/industrialio-core.o’ failed
make[3]: *** [/home/franco/mangOH/build/red_wp750x/modules/0-iio/industrialio-core.o] Error 127
Makefile:1276: recipe for target ‘module/home/franco/mangOH/build/red_wp750x/modules/0-iio’ failed
make[2]: *** [module/home/franco/mangOH/build/red_wp750x/modules/0-iio] Error 2
make[2]: Leaving directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
Makefile:20: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-iio’
[3/968] Build kernel driver module
FAILED: make -C /home/franco/mangOH/build/red_wp750x/modules/0-cp2130
make[1]: Entering directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-cp2130’
make -C /opt/swi/y17-ext-wp750x/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/franco/mangOH/build/red_wp750x/modules/0-cp2130 modules
make[2]: Entering directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
CC [M] /home/franco/mangOH/build/red_wp750x/modules/0-cp2130/spi-cp2130.o
/bin/sh: 1: /opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/recordmcount: not found
scripts/Makefile.build:308: recipe for target ‘/home/franco/mangOH/build/red_wp750x/modules/0-cp2130/spi-cp2130.o’ failed
make[3]: *** [/home/franco/mangOH/build/red_wp750x/modules/0-cp2130/spi-cp2130.o] Error 127
Makefile:1276: recipe for target ‘module/home/franco/mangOH/build/red_wp750x/modules/0-cp2130’ failed
make[2]: *** [module/home/franco/mangOH/build/red_wp750x/modules/0-cp2130] Error 2
make[2]: Leaving directory ‘/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
Makefile:12: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/franco/mangOH/build/red_wp750x/modules/0-cp2130’
ninja: build stopped: subcommand failed.
Makefile:74: recipe for target ‘red_wp750x’ failed
make: *** [red_wp750x] Error 1
Used this command to start the compilation process:
make clean && make red_wp750x
Legato version 18.04.0
mangOH commit 3b57736
Thanks in advance,
Franco.