# Error running make: LEGATO == 0"

**URL:** <https://forum.legato.io/t/error-running-make-legato-0/4591>\
**Category:** Uncategorized\
**Created:** [July 26, 2019, 3:49pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591 "2019-07-26T15:49:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cared](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Cared](https://forum.legato.io/u/Cared)\
**Post date:** [July 26, 2019, 3:49pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/1 "2019-07-26T15:49:16Z")

</div>

I cannot run “make” anymore.

I am getting “Not building LEGATO due to $LEGATO == 0” .

Nothing works anymore. I get an error updating the firmware from windows (R9 (generic -GCF) or from Linux running " leaf setup … ".

Does anyone have an idea of how I can reset the board?

Thank you.

mangoh@mangoh-vm:~/mangOH$ make red\_wp85  
echo “Not building LEGATO due to $LEGATO == 0”  
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-wp85/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi   
TOOLCHAIN\_PREFIX=arm-poky-linux-gnueabi-   
mksys -t wp85 --object-dir=build/red\_wp85 --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:109: recipe for target ‘red\_wp85’ failed  
make: \*\*\* [red\_wp85] Error 1

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [August 1, 2019, 1:42pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/2 "2019-08-01T13:42:26Z")

</div>

@Cared,

Before “make red\_wp85” what did you? Do you follow any document for that?

BR

---

<div class="post-metadata">

**Author:** ![Cared](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Cared](https://forum.legato.io/u/Cared)\
**Post date:** [August 2, 2019, 5:03pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/3 "2019-08-02T17:03:47Z")

</div>

I have just followed the Getting Started instructions and things just don´t work.  
Apparently there are incompatibilities among modules, toolchains, firmware versions, legato versions, etc.  
I have re-installed the virtual machine using r4.ova and now it´s working.  
I would like to suggest people from Sierra Wirelless to improve the “Getting Started” instructions better explaining the concepts of Yocto, Legato, diferent versions of toolchains, packages, firmware versions , etc.

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [August 5, 2019, 8:34am UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/4 "2019-08-05T08:34:37Z")

</div>

@Cared, indeed, the steps on the getting started are not updated.

To build your system avoid this step: **$ git pull && git submodule update --init** (this fetches and recovers the dependencies for mangoh yellow ).

So, what you need to do :  
1- remove the Orange mangoh VM machine from the oracle (completely delete)  
2- re-import it again and go directly to mangoh directory  
3- run the build with: make red\_wp85

---

<div class="post-metadata">

**Author:** ![mvonflotow](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@mvonflotow](https://forum.legato.io/u/mvonflotow)\
**Post date:** [October 4, 2019, 9:05pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/5 "2019-10-04T21:05:29Z")

</div>

I am experiencing similar build failures, along with other documentation related frustrations.

Is a VM re-install really what is required to solve this issue?

---

<div class="post-metadata">

**Author:** ![mehdiALL1](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mehdiALL1](https://forum.legato.io/u/mehdiALL1)\
**Post date:** [November 12, 2019, 1:45pm UTC](https://forum.legato.io/t/error-running-make-legato-0/4591/6 "2019-11-12T13:45:11Z")

</div>

@mvonflotow, In which step you find difficulties?
