Hi Forum
I am stuck with an build issue while ‘Build/Install mangOH distribution’ for mangOH Red WP8548. Please see if anyone of you could help.
I use,
Ubuntu - 18.04
Legato - 18.09
At /home/mangoh/mangOH, when I give ‘make red_wp85’, it FAILS with error as found below,
** ERROR:
/home/mangoh/legato_framework/legato/modules/WiFi/service/daemon/Component.cdef:15:4: error: Couldn’t find source file ‘/home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor//home/mangoh/legato_framework/legato/modules/WiFi/service/platformAdaptor/ti/pa_wifi.sh/pa_wifi_client_ti.c’
Makefile:131: recipe for target ‘red_wp85’ failed
ls -al build/update_files/*
-> doesn’t lists any update files
Because,
Since the ‘make’ fails, the directory ‘update_files’ and the update files doesn’t get created under,
/home/mangoh/mangOH/build/
So, I couldn’t move on to install the latest updates,
-> Install the mangOH Red Distribution specific to the CF3 module on your mangOH board:
$ update ~/mangOH/build/update_files/red/ 192.168.2.2
So, I don’t see ‘redSensortoCloud’ service listed under
app status
Which ofcourse means that, the mangOH Red WP8548 is not completely installed.
The build has encountered the below error now,
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c:33:26: fatal error: batteryUtils.h: No such file or directory #include “batteryUtils.h”
Tried,
// #include “batteryUtils.h”
But, it leads to some other issues and build fails as found below,
for dir in tests doc platform-specific sha2 aes ecc; do
make -C $dir install=“cp” includedir=/home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls install;
done
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/tests’
:
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/tests’
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/doc’
make[2]: *** No rule to make target ‘html’, needed by ‘install’. Stop.
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/doc’
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/platform-specific’
:
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/platform-specific’
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/sha2’
test -d /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/sha2 || mkdir -p /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/sha2
cp sha2.h /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/sha2
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/sha2’
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/aes’
test -d /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/aes || mkdir -p /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/aes
cp rijndael.h /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/aes
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/aes’
make[2]: Entering directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/ecc’
test -d /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/ecc || mkdir -p /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/ecc
cp ecc.h test_helper.h /home/mangoh/legato_framework/legato/build/wp85/3rdParty/tinydtls/include/tinydtls/ecc
make[2]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f/ecc’
make[1]: Leaving directory ‘/home/mangoh/mangOH/build/red_wp85/component/15261e8fcca914bdb7113b7a8fc5211f’
ninja: build stopped: subcommand failed.
Makefile:131: recipe for target ‘red_wp85’ failed
make: *** [red_wp85] Error 1
LevelFilterPtr “-DCOMPONENT_INIT=LE_CI_LINKAGE LE_SHARED void _batteryComponentRed_COMPONENT_INIT()” -std=c99 -l/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/…/batteryUtils
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c: In function ‘UpdateChargeLevel’:
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c:686:9: error: implicit declaration of function ‘util_WriteIntToFile’ [-Werror=implicit-function-declaration]
util_WriteIntToFile(path, uAh);
^~~~~~~~~~~~~~~~~~~
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c: In function ‘ReadChargingStatus’:
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c:706:21: error: implicit declaration of function ‘util_ReadStringFromFile’ [-Werror=implicit-function-declaration]
le_result_t r = util_ReadStringFromFile(StatusFilePath, chargingStatus, sizeof(chargingStatus));
^~~~~~~~~~~~~~~~~~~~~~~
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c: In function ‘ReadChargeCounter’:
/home/mangoh/mangOH/apps/BatteryService/batteryComponentRed/battery.c:765:26: error: implicit declaration of function ‘util_ReadIntFromFile’ [-Werror=implicit-function-declaration]
le_result_t result = util_ReadIntFromFile(path, &counter);
^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[448/524] Packaging app
ninja: build stopped: subcommand failed.
Makefile:131: recipe for target ‘red_wp85’ failed
make: *** [red_wp85] Error 1
mangoh@mangoh-vm:~/mangOH$
The build is successful now. As you see, the “update_files” directory and the “red.wp85.update” are created.
mangoh@mangoh-vm:~/mangOH/build/update_files$ ls -al *
-rw-rw-r-- 1 mangoh mangoh 6118455 Oct 29 14:15 red.wp85.update
In future, we might require the Battery App.
Would MangoH Forum upcoming release would fix these issues (those I removed)?
Can you please update the product team on this?