# Problem with 'make wp76xx'

**URL:** <https://forum.legato.io/t/problem-with-make-wp76xx/5841>\
**Category:** Legato Application Framework\
**Created:** [June 14, 2021, 9:06pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841 "2021-06-14T21:06:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 14, 2021, 9:06pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/1 "2021-06-14T21:06:52Z")

</div>

I get the following liblegato error when I try following along with the setup guide:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/d/d486e8db4f80ec5102627a5a059bc31d988705e5.png)

Any tips on fixing this issue are appreciated.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 14, 2021, 11:05pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/2 "2021-06-14T23:05:25Z")

</div>

Did you install toolchain?

Do you compile it in " leaf shell"?

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 3:56am UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/3 "2021-06-15T03:56:25Z")

</div>

I believe I did install toolchain correctly- its referring to the following link right?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/4/4745f6a7c8b5e5e96bd0c18576d2fd2ff59d7063.png)

I have a WP76XX module. Additionally, yes, I was compiling in leaf shell.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 4:43am UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/4 "2021-06-15T04:43:27Z")

</div>

You can check the toolchain path inside leaf shell by “export | grep WP76XX\_TOOLCHAIN”:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/2/2bc2c68fa88be45301a25adbe98c92623bf06e21.png)

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 2:08pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/5 "2021-06-15T14:08:34Z")

</div>

Yes, I seem to have the same info here:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/a/ac498ff4263e14061c7f3ff32dd90708d37a4a6e.png)

To setup the workspace, I used a tarball- is this a valid approach? Also do I have to run the kernel build scripts?  
Additionally, these are the following SDKs I imported into my profile:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/6/6544327e0db132e7663dd9b84d26a418a1a5f5f9.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 2:29pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/6 "2021-06-15T14:29:07Z")

</div>

I did not install the mangoh-red SDK  
you can remove it and try to compile the legato framework of swi-wp76\_5.0.0 first.

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 2:36pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/7 "2021-06-15T14:36:49Z")

</div>

I removed it now, by compiling the legato framework, do you mean the following command?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/e/e3ba8791bbb3284a423342cd4e54f9e780de6c7b.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 2:42pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/8 "2021-06-15T14:42:03Z")

</div>

is it ok???

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 2:43pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/9 "2021-06-15T14:43:25Z")

</div>

No, its still giving the same error as before:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/5/5a9cb60fd6130a1b18d7dd0a676d1dcec8c2d9bc.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 3:12pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/10 "2021-06-15T15:12:43Z")

</div>

I don’t see problem on swi\_wp76\_4.0.3  
Maybe you can give a try on that

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/5/5cfd2098596d947cf9378826a392492841c2ebf5.jpeg)  
n

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 4:17pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/11 "2021-06-15T16:17:02Z")

</div>

Hm yeah 4.0.3 seems to be giving me the same error.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/3/38d186715992a65dec2a898951a7e61983dd08e4.png)  
Is the legato.cwe file supposed to be created after running the make wp76xx command? I don’t seem to have it.

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 5:10pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/12 "2021-06-15T17:10:30Z")

</div>

Additionally, is it necessary to install the toolchain + other components separately if I already installed the SDKs using leaf and am running these commands using leaf shell?

Does the vscode ‘Build’ command essentially compile the same files similar to what ‘make wp76xx’ does?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 8:00pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/13 "2021-06-15T20:00:36Z")

</div>

Yes, after successfully make wp76xx, you should see the legato.cwe.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 8:02pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/14 "2021-06-15T20:02:03Z")

</div>

There is no need to install the toolchain + other components separately if you already installed the SDKs using leaf

Btw, have you tried to “make clean” before “make wp76xx” ???

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 8:10pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/15 "2021-06-15T20:10:30Z")

</div>

Ah I see.  
I tried ‘make clean’ and then tried running ‘make wp76xx’ again- now I’m getting an include error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/c/c6e36251532a3ea0c5ab212506f81df2a81fae10.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 15, 2021, 8:32pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/16 "2021-06-15T20:32:42Z")

</div>

Are you compiling swi\_wp76\_4.0.3

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 15, 2021, 8:39pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/17 "2021-06-15T20:39:18Z")

</div>

Yes, I added swi\_wp76\_4.0.3 to my profile.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 16, 2021, 2:01am UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/18 "2021-06-16T02:01:31Z")

</div>

this is my log when compiling swi\_wp76\_4.0.3, I don’t see problem:  
[log.txt](https://forum.legato.io/uploads/short-url/qEDzTsj04I9dE4axmGIJs0QlSmJ.txt) (186.2 KB)

```auto
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes

```

Are you compiling legato 19.2?

---

<div class="post-metadata">

**Author:** ![sobla](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sobla](https://forum.legato.io/u/sobla)\
**Post date:** [June 16, 2021, 1:54pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/19 "2021-06-16T13:54:28Z")

</div>

@jyijyi  
By compiling, you mean simply adding to profile, right?  
And should I have legato 19.2 downloaded locally in the same workspace?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 16, 2021, 2:41pm UTC](https://forum.legato.io/t/problem-with-make-wp76xx/5841/20 "2021-06-16T14:41:53Z")

</div>

swi\_wp76\_4.0.3 should be already having legato framework 19.2, there is no need to extra download

[Next page](https://forum.legato.io/t/problem-with-make-wp76xx/5841.md?page=2)
