# Building for Legato 21.05.0 fails on iperf3

**URL:** <https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632>\
**Category:** Legato Application Framework\
**Created:** [November 16, 2023, 11:06am UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632 "2023-11-16T11:06:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gioqw](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gioqw](https://forum.legato.io/u/gioqw)\
**Post date:** [November 16, 2023, 11:06am UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/1 "2023-11-16T11:06:17Z")

</div>

Hello,  
I’m having issues building an application for Legato 21.05.0 on a FX30 CAT-M (15.1.0.004), using the swi-fx30-catm\_4.2.0 package.  
It tries including from /usr/include when building the 3rdParty iperf which comes with the package (fx30-catm-legato\_21.05.0).

```auto
Makefile:961: recipe for target 'iperf3-main.o' failed

```

My guess would be that the include directory is chosen wrong?  
Best,  
Gio

---

<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:** [November 16, 2023, 12:02pm UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/2 "2023-11-16T12:02:09Z")

</div>

what application are you trying to build?  
legato application?  
or just compiling a linux application with FX30 toolchain?

---

<div class="post-metadata">

**Author:** ![gioqw](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gioqw](https://forum.legato.io/u/gioqw)\
**Post date:** [November 16, 2023, 12:05pm UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/3 "2023-11-16T12:05:39Z")

</div>

Yeah I’d like to build a Legato application and it builds fine with swi-fx30-cat1\_2.0.1 and others but not with the described package.

---

<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:** [November 16, 2023, 12:12pm UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/4 "2023-11-16T12:12:07Z")

</div>

they are using different legato version…

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

can you attach your application here?

---

<div class="post-metadata">

**Author:** ![gioqw](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gioqw](https://forum.legato.io/u/gioqw)\
**Post date:** [November 16, 2023, 1:34pm UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/5 "2023-11-16T13:34:20Z")

</div>

Can’t attach the application here, it’s not meant for public purposes.  
I’m using different versions of the FX30 hardware, therefor the example.  
I’ve got a FX30 WP77 for asia pacific and a FX30 WP77 for EMEA… and they have different Legato versions but should run more or less the same application.

If necessary I could write a simple example application to publish it here… but I really feel like the error is originating from the `legato` package.

---

<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:** [November 16, 2023, 2:39pm UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/6 "2023-11-16T14:39:29Z")

</div>

so you don’t see problem on swi-fx30-catm\_3.0.0 but error start since swi-fx30-catm\_4.0.0, right?

Yes, a simple application would be good to reproduce issue

---

<div class="post-metadata">

**Author:** ![gioqw](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gioqw](https://forum.legato.io/u/gioqw)\
**Post date:** [November 21, 2023, 7:32am UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/7 "2023-11-21T07:32:53Z")

</div>

It is really strange… today I tried compiling it in a new leaf workspace and all of a sudden it just works.  
I tried creating a simple example where it doesn’t compile… well it sort of solved itself, thank you for your time, I’m sorry I didn’t try this earlier but I also can’t explain it to myself right now.  
The _build_\* directories were always removed before running a new build and I didn’t see any other temporary files that could interfere with the build process.

---

<div class="post-metadata">

**Author:** ![gioqw](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gioqw](https://forum.legato.io/u/gioqw)\
**Post date:** [November 21, 2023, 7:43am UTC](https://forum.legato.io/t/building-for-legato-21-05-0-fails-on-iperf3/6632/8 "2023-11-21T07:43:05Z")

</div>

Ok, I think I figured it out… it was the `leaf-workspace.json` which contained the environment variable `LEGATO_DEV_MODE_ENABLE`.  
And that caused the build to fail somehow.
