# mangOH make error, malformed path ...pa\_wifi.sh/pa\_wifi\_client\_ti.c

**URL:** <https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991>\
**Category:** mangOH Red\
**Created:** [October 21, 2019, 8:11pm UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991 "2019-10-21T20:11:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjames](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@gjames](https://mangoh.discourse.group/u/gjames)\
**Post date:** [October 21, 2019, 8:11pm UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991/1 "2019-10-21T20:11:06Z")

</div>

I am following the Getting Started Guide, Windows [Rev5]  
[http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOH%20Red%20GSG%20-%20Windows%20R5/#t=41112261\_mangOH\_Red\_GSG\_-\_HTML5%2F41112261\_PrepMangoh%2F41112261\_PrepMangoh.htm](http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOH%20Red%20GSG%20-%20Windows%20R5/#t=41112261_mangOH_Red_GSG_-_HTML5%2F41112261_PrepMangoh%2F41112261_PrepMangoh.htm)

The ‘make red\_wp77xx’ command fails with the following. Looks like a malformed path.

mangoh@mangoh-vm:~/mangOH$ make red\_wp77xx  
Makefile:102: ==== OCTAVE\_ROOT not defined ====  
Not building LEGATO due to $LEGATO == 0

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

TOOLCHAIN\_DIR=/opt/swi/y22-ext-wp77xx/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi   
TOOLCHAIN\_PREFIX=arm-poky-linux-gnueabi-   
mksys -t wp77xx --cflags=-O2 --object-dir=build/red\_wp77xx --output-dir=build/update\_files red.sdef  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* Warning: Ignoring empty app specification  
\*\* 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\_wp77xx’ failed  
make: \*\*\* [red\_wp77xx] Error 1

------ more details ------  
git log  
commit 23b349529988fdc8ae24ba103d282d00b77b95e9 (HEAD -\> master, origin/master, origin/HEAD)  
Author: Jen Chitty [jchitty@sierrawireless.com](mailto:jchitty@sierrawireless.com)  
Date: Wed Oct 16 22:17:48 2019 -0700

```
Update Data Hub to include psensor docs

```

I have done the firmware update from “WP77xx\_Release12\_GENERIC\_GCF.exe”, after which I get  
cm info  
Device: WP7702  
IMEI: 352653090130832  
IMEISV: 2  
FSN: VU829285061610  
Firmware Version: SWI9X06Y\_02.16.04.00 019853 jenkins 2018/05/15 19:28:37  
Bootloader Version: SWI9X06Y\_02.16.04.00 019853 jenkins 2018/05/15 19:28:37  
MCU Version: 002.009  
PRI Part Number (PN): 9907365

---

<div class="post-metadata">

**Author:** ![gjames](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@gjames](https://mangoh.discourse.group/u/gjames)\
**Post date:** [October 21, 2019, 9:57pm UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991/2 "2019-10-21T21:57:37Z")

</div>

This is more behind the cause of the error, but I do not know the intent behind these build vars, so do not see how to fix. For now, I will try changing LEGATO\_WIFI\_PA to ‘ti’

wifi.sdef: LEGATO\_WIFI\_PA=${LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi.sh

~/legato\_framework/legato/modules/WiFi/service/daemon/Component.cdef  
sources:  
{  
wifiService.c  
le\_wifiClient.c  
le\_wifiAp.c  
{LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_client\_ti.c  
…

---

<div class="post-metadata">

**Author:** ![mohanFT](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mohanFT](https://mangoh.discourse.group/u/mohanFT)\
**Post date:** [October 26, 2019, 7:46am UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991/3 "2019-10-26T07:46:29Z")

</div>

Hi, I do face the same issue while ‘Make red\_wp85’.

wifi.sdef file looks as seen below. As you find, already, the LEGATO\_WIFI\_PA is set to ${LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi.sh.

So, the root cause seems to be something else.

#include “default.sdef”

buildVars:  
{  
LEGATO\_WIFI\_ROOT={LEGATO\_ROOT}/modules/WiFi // File is selected by users, replace "ti" with "qca" to support qca chipset LEGATO\_WIFI\_PA={LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi.sh  
}

---

<div class="post-metadata">

**Author:** ![mohanFT](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mohanFT](https://mangoh.discourse.group/u/mohanFT)\
**Post date:** [October 26, 2019, 8:12am UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991/4 "2019-10-26T08:12:03Z")

</div>

And, my ‘component.cdef’ is as seen below,

sources:  
{  
wifiService.c  
le\_wifiClient.c  
le\_wifiAp.c  
{LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_client\_ti.c  
{LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_ap\_ti.c  
}

With this, when I make, I get the issue as,

\*\* 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  
make: \*\*\* [red\_wp85] Error 1

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [October 29, 2019, 2:04pm UTC](https://mangoh.discourse.group/t/mangoh-make-error-malformed-path-pa-wifi-sh-pa-wifi-client-ti-c/2991/5 "2019-10-29T14:04:12Z")

</div>

/home/mangoh/legato\_framework/legato/modules/WiFi/service/daemon/Component.cdef

In line 15, change to the followings:

// {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_client\_ti.c  
// {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/{LEGATO\_WIFI\_PA}/pa\_wifi\_ap\_ti.c

{LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi\_client\_ti.c {LEGATO\_WIFI\_ROOT}/service/platformAdaptor/ti/pa\_wifi\_ap\_ti.c
