# Building 16.10.1.m3 for FX30 R14

**URL:** <https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555>\
**Category:** Uncategorized\
**Created:** [August 12, 2018, 11:32pm UTC](https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555 "2018-08-12T23:32:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [August 12, 2018, 11:32pm UTC](https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555/1 "2018-08-12T23:32:51Z")

</div>

Hiya,

Just a quick heads up if you’re trying to build legato 16.10.1.m3 for the FX30.

I had a number of build errors appear when trying to build … along the lines of:

```auto
/home/developer/legato-16.10.1/framework/tools/mkTools/parser/apiParser.h:27:10: error: ‘std::function’ has not been declared
     std::function<void (std::string&&)> handlerFunc ///< Function to call with dependencies.
          ^ ~~~~~~~

```

while trying to build the build tools.

After a lot of bad words, I realised that sometime since I had previously built 16.10.1 I had updated the **host** gcc to version 7.3.0 from version 5.4.0 (which appears to be the default in Ubuntu 16.04 LTS).

So … there is a fix to get 16.10.1.m3 to build with the later version of gcc:

1. change to the directory where you unpacked the 16.10.1.m3 source (I’ll refer to it here as `~/legato-16.10.1.m3`

2. open `~/legato-16.10.1.m3/framework/tools/mkTools/ninja-generator` in your favourite text editor

3. Go to line 35 and change the compiler flags from

```auto
    COMPILER="g++ -std=c++0x"

```

to

```auto
    COMPILER="g++ -std=c++11"

```

1. Save and close `ninja-generator`

2. open `~/legato-16.10.1.m3/framework/tools/mkTools/mkTools.h` in your favourite text editor

3. go to line 29 and insert the line:

```auto
#include <functional>

```

1. save and close `mkTools.h`

2. change to the top of the legato build directory (`cd ~/legato-16.10.1.m3`)

3. run `make wp85`

The legato framework should now build correctly.

Seems to work for me … hopefully it works for others too.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![cchenry](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cchenry](https://forum.legato.io/u/cchenry)\
**Post date:** [August 13, 2018, 8:42pm UTC](https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555/2 "2018-08-13T20:42:59Z")

</div>

Hi @davidc,  
Thanks for sharing your findings!  
BR,  
Chris

---

<div class="post-metadata">

**Author:** ![Vasantha\_lax](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vasantha\_lax](https://forum.legato.io/u/Vasantha_lax)\
**Post date:** [October 5, 2018, 7:02am UTC](https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555/3 "2018-10-05T07:02:44Z")

</div>

@davidc,

It was really nice to share such findings.  
Is it possible for such Information post to be easily distinguished compared to other posts done for querying.  
This is a suggestion …

Thanks,  
Vasantha

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.legato.io/u/davidc)\
**Post date:** [October 7, 2018, 1:57am UTC](https://forum.legato.io/t/building-16-10-1-m3-for-fx30-r14/3555/4 "2018-10-07T01:57:55Z")

</div>

Hi @Vasantha_lax

Glad the info was of use to someone else!

Maybe the forum moderators can tag this as a sticky for the time being?

ciao, Dave
