Hello,
I have tried to set up a Ubuntu Dev Machine for Mangoh Red develompemnt by following the Mangoh Red Getting Started guide published on Mangoh.io.
I have tried to do so both on a native Linux Ubuntu and on Virtual Box Linux Ubuntu. In both case I use Ubuntu 16.04.4 LTS.
The installation fails in the same way. I have the logs for the whole installation process.
The error that leads to the compilation failure is:
4/968] Build kernel driver module
FAILED: make -C /home/acal/mangOH/build/red_wp85/modules/0-iio
make[1]: Entering directory ā/home/acal/mangOH/build/red_wp85/modules/0-iioā
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/acal/mangOH/build/red_wp85/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/acal/mangOH/build/red_wp85/modules/0-iio/industrialio-core.o
/home/acal/mangOH/linux_kernel_modules/iio/industrialio-core.c:73:10: error: āIIO_GASRESISTANCEā undeclared here (not in a function)
[IIO_GASRESISTANCE] = āgasresistanceā,
^
/home/acal/mangOH/linux_kernel_modules/iio/industrialio-core.c:73:9: error: array index in initializer not of integer type
[IIO_GASRESISTANCE] = āgasresistanceā,
^
/home/acal/mangOH/linux_kernel_modules/iio/industrialio-core.c:73:9: error: (near initialization for āiio_chan_type_name_specā)
scripts/Makefile.build:308: recipe for target ā/home/acal/mangOH/build/red_wp85/modules/0-iio/industrialio-core.oā failed
make[3]: *** [/home/acal/mangOH/build/red_wp85/modules/0-iio/industrialio-core.o] Error 1
Makefile:1276: recipe for target āmodule/home/acal/mangOH/build/red_wp85/modules/0-iioā failed
make[2]: *** [module/home/acal/mangOH/build/red_wp85/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/acal/mangOH/build/red_wp85/modules/0-iioā
[4/968] Build kernel driver module
make[1]: Entering directory ā/home/acal/mangOH/build/red_wp85/modules/0-ltc294xā
make -C /opt/swi/y17-ext-wp85/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/home/acal/mangOH/build/red_wp85/modules/0-ltc294x 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/acal/mangOH/build/red_wp85/modules/0-ltc294x/ltc2941-battery-gauge.o
LD [M] /home/acal/mangOH/build/red_wp85/modules/0-ltc294x/0-ltc294x.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/acal/mangOH/build/red_wp85/modules/0-ltc294x/0-ltc294x.mod.o
LD [M] /home/acal/mangOH/build/red_wp85/modules/0-ltc294x/0-ltc294x.ko
make[2]: Leaving directory ā/opt/swi/y17-ext-SWI9X15Y_07.12.14.00/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernelā
make[1]: Leaving directory ā/home/acal/mangOH/build/red_wp85/modules/0-ltc294xā
ninja: build stopped: subcommand failed.
Makefile:67: recipe for target āred_wp85ā failed
make: *** [red_wp85] Error 1
More details:
I am using the toolchain for WP8548 & WP75xx Firmware Release 15, that is: SWI9X15Y_07.12.14.00. The actual script file I downloaded from the source is: poky-swi-ext-glibc-x86_64-meta-toolchain-swi-ext-armv7a-vfp-neon-toolchain-swi-ext-1.7.3.sh
I also tried with and without the steps suggested in the ā~/mangOH/README.mdā file: same failure.
thanks for your help
BR
Luigi
PS: in the same environment, the compilation for target āgree_wp85ā works just fine