# Legato 15.05 build error in bitbake

**URL:** <https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145>\
**Category:** Legato Application Framework\
**Created:** [June 9, 2015, 5:12pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145 "2015-06-09T17:12:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 9, 2015, 5:12pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/1 "2015-06-09T17:12:33Z")

</div>

Hi folks,

I downloaded Legato 15.05 today and I have problems to build it.  
It seems the recipe legato-af has some un-resolved dependency:

$ bitbake legato-af -c compile -f  
…  
| make[3]: Entering directory `/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7' | [40%] mkapp 'audioService': /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/bin/apps/audioService.ar7 | Executing ninja build system... | $ ninja -v -d explain -f /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/build.ninja | ninja explain: output /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/bin/audioDaemon doesn't exist | ninja explain: /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/bin/audioDaemon is dirty | [1/2] /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -o /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/bin/audioDaemon /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/obj/audioDaemon/_main.c.o -L/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib -Wl,--enable-new-dtags,-rpath="\$ORIGIN/../lib" "-L/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib" -lComponent_audio -lComponent_le_pa_audio "-L$LEGATO_BUILD/bin/lib" -llegato -lpthread -lrt -lm -lqmi_cci -lqmiservices /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/swi-mdm9x15/usr/lib/libsierra_qcsi.a | FAILED: /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/x86_64-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -o /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/bin/audioDaemon /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/obj/audioDaemon/_main.c.o -L/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib -Wl,--enable-new-dtags,-rpath="\$ORIGIN/../lib" "-L/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib" -lComponent_audio -lComponent_le_pa_audio "-L$LEGATO_BUILD/bin/lib" -llegato -lpthread -lrt -lm -lqmi_cci -lqmiservices /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/swi-mdm9x15/usr/lib/libsierra_qcsi.a | /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/x86_64-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: warning: libopencore-amrwb.so.0, needed by /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib/libComponent_le_pa_audio.so, not found (try using -rpath or -rpath-link) | /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/sysroots/x86_64-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: warning: libopencore-amrnb.so.0, needed by /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib/libComponent_le_pa_audio.so, not found (try using -rpath or -rpath-link) | /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib/libComponent_le_pa_audio.so: undefined reference to `Decoder\_Interface\_exit’  
| /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/lib/libComponent\_le\_pa\_audio.so: undefined reference to `Decoder_Interface_Decode' | /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib/libComponent_le_pa_audio.so: undefined reference to `D\_IF\_init’  
| /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/lib/libComponent\_le\_pa\_audio.so: undefined reference to `D_IF_decode' | /home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/_build_audioService.ar7/staging/lib/libComponent_le_pa_audio.so: undefined reference to `Decoder\_Interface\_init’  
| /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/lib/libComponent\_le\_pa\_audio.so: undefined reference to `D_IF_exit' | collect2: error: ld returned 1 exit status | ninja: build stopped: subcommand failed. | make[3]: *** [bin/apps/audioService.ar7] Error 1 | make[3]: Leaving directory `/home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7’  
| make[2]: \*\*\* [platformServices/apps/audio/CMakeFiles/audioService.dir/all] Error 2  
| make[2]: Leaving directory `/home/f59dms0/tcu_gen2kai/FW/LegatoYocto1505/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7' | make[1]: *** [all] Error 2 | make[1]: Leaving directory `/home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7’  
| make: \*\*\* [build\_ar7] Error 2  
| WARNING: /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do\_compile.11372:1 exit 2 from  
| make $LEGATO\_TARGET  
| ERROR: Function failed: do\_compile (log file is located at /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do\_compile.11372)  
ERROR: Task 5 (/home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/meta-swi/common/recipes-legato/legato-af/legato-af\_git.bb, do\_compile) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 728 tasks of which 727 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
/home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/meta-swi/common/recipes-legato/legato-af/legato-af\_git.bb, do\_compile  
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Can you help me with this problem?

Rgds,

---

<div class="post-metadata">

**Author:** ![amitchell](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amitchell/32/68_2.png) [@amitchell](https://forum.legato.io/u/amitchell)\
**Post date:** [June 9, 2015, 9:51pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/2 "2015-06-09T21:51:29Z")

</div>

Hi,

can you try a couple of things:

1. Can you clone and build the framework project from github directly without trying to build inside the bitbake environment?
2. Can you just run “make image\_bin” from the top level and see if it completes?

Finally, there is no supporting firmware for the AR series yet for this version of Legato. That will come to you directly so do not install 15.05 on an AR platform.

Regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 9, 2015, 11:54pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/3 "2015-06-09T23:54:02Z")

</div>

Hi Andrew,

The first time I got this error was using the top-level Makefile at top-level dir.

First I thought it was a problem with the legato-af package, this is why I executed separated bitbake fetch and compile tasks and I had the same problem, as I posted here.

Even after executing a “bitbake legato-af -c clean” and them “make image\_bin” I had the same problem before.

It seems that the package libopencore-amrwb.so.0 is missing as showed in:

| /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/sysroots/x86\_64-linux/usr/libexec/armv7a-vfp-neon-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: warning: `libopencore-amrwb.so.0`, needed by /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/lib/libComponent\_le\_pa\_audio.so, not found (try using -rpath or -rpath-link)

Should this package be generated in some recipe?

Is there any way to bypass this `libComponent_le_pa_audio` generation?

Thanks for your help.  
Danillo

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [June 10, 2015, 11:58am UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/4 "2015-06-10T11:58:39Z")

</div>

Please be sure to have the ninja-build package installed on your build machine:

```auto
sudo apt-get install ninja-build
```

If you do not install this package then legato-af recipe will fail to build.

Jay

---

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 10, 2015, 3:34pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/5 "2015-06-10T15:34:33Z")

</div>

Hello Jay,  
I have ninja-build installed.  
It is possible to see it in the log I posted:

[quote]| $ ninja -v -d explain -f /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/build.ninja  
| ninja explain: output /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/bin/audioDaemon doesn’t exist  
| ninja explain: /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/platformServices/apps/audio/\_build\_audioService.ar7/staging/bin/audioDaemon is dirty[/quote]

This is not the problem…

The package libopencore-amrwb.so.0 seems to be defined in recipes-misc/libopencore-amr/libopencore-amr\_0.1.3.bb of /layer/meta-telephony/ in OpenEmbedded.  
However, this recipe, and this layer are not in Legato 15.05.

Can you check if it is really required?  
Can you provide the fix?

Regards,  
Danillo

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [June 10, 2015, 3:42pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/6 "2015-06-10T15:42:01Z")

</div>

The libopencore-amr recipe is located here:  
meta-swi/common/recipes-multimedia/libopencore-amr/libopencore-amr\_0.1.3.bb

Try to build it prior to retry to build legato-af:

```auto
bitbake libopencore-amr -c compile -f
```

Jay

---

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 10, 2015, 4:42pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/7 "2015-06-10T16:42:36Z")

</div>

Hi Jay,

Tks. I followed your suggestion and the error changed:

| # Install default startup scripts.  
| install -d build/ar7/staging/mnt/flash/startupDefaults  
| install targetFiles/mdm-9x15/startup/\* -t build/ar7/staging/mnt/flash/startupDefaults  
| # Create a tarball containing everything in the staging area.  
| tar -C build/ar7/staging -cf build/ar7/legato-runtime.tar .  
| mklegatoimg -t ar7 -d build/ar7/staging -o build/ar7  
| Target: ar7  
| Input: /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7/staging  
| Output: /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/git/build/ar7  
| Unable to find mkyaffs2image within toolchain, please update your toolchain.  
| make: \*\*\* [package\_9x15] Error 1  
| WARNING: /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do\_compile.29923:1 exit 2 from  
| make $LEGATO\_TARGET  
| ERROR: Function failed: do\_compile (log file is located at /home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/build\_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do\_compile.29923)  
ERROR: Task 1292 (/home/f59dms0/tcu\_gen2kai/FW/LegatoYocto1505/meta-swi/common/recipes-legato/legato-af/legato-af\_git.bb, do\_compile) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 1810 tasks of which 1700 didn’t need to be rerun and 1 failed.

Rgds,  
Danillo

---

<div class="post-metadata">

**Author:** ![JayM2M](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JayM2M](https://forum.legato.io/u/JayM2M)\
**Post date:** [June 10, 2015, 4:56pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/8 "2015-06-10T16:56:57Z")

</div>

> [@santosdanillo](#):
>
> | Unable to find mkyaffs2image within toolchain, please update your toolchain.

May be it is an issue with the build environment variables.

Can you try to exit your current shell session and then try to do a “make” at the root of your yocto folder?

Jay

---

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 10, 2015, 5:05pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/9 "2015-06-10T17:05:46Z")

</div>

Hi Jay,

Tks for your support.  
I executed ‘bitbake yaffs2-utils’ manually inside build\_bin/  
then ‘bitbake mdm9x15-image-minimal’  
and ‘legato-af-git’ could finallycomplete do\_compile 😉

images generated at:  
deploy/images/swi-mdm9x15

let’s test.

Rgds,  
Danillo

---

<div class="post-metadata">

**Author:** ![amitchell](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/amitchell/32/68_2.png) [@amitchell](https://forum.legato.io/u/amitchell)\
**Post date:** [June 10, 2015, 10:43pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/10 "2015-06-10T22:43:35Z")

</div>

Hi Danillo,

It’s great that you got to the end, but I’d love to understand why it failed in the first place. I retried on 2 different machine running different Ubuntu versions today and both ran start to finish without issue. Is there something unusual about your environment?

Andrew

---

<div class="post-metadata">

**Author:** ![santosdanillo](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@santosdanillo](https://forum.legato.io/u/santosdanillo)\
**Post date:** [June 11, 2015, 7:07am UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/11 "2015-06-11T07:07:43Z")

</div>

Hi Andrew,

No idea. I will try a clean decompressed area and let you know.

I have a Ubuntu 14.04 LTS in a Intel(R) Core™ i5-4210M CPU @ 2.60GHz with 4Gbs RAM.

$ uname -a  
Linux F59DMS0P-Ubuntu 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015 x86\_64 x86\_64 x86\_64 GNU/Linux

During my first build try I had problems with disk space, not sure this could impact the others try.

Rgds,  
Danillo

---

<div class="post-metadata">

**Author:** ![hbm\_idneo](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@hbm\_idneo](https://forum.legato.io/u/hbm_idneo)\
**Post date:** [June 16, 2015, 9:20am UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/12 "2015-06-16T09:20:25Z")

</div>

Hi all,

Finally, I have been able to build LegatoYocto 15.05 following the posts of Danillo and Andrew. I have suffered the same problems as Danillo during the building process.

In my case, I have a Lubuntu 14.04 LTS and below my system information:  
$ uname -a  
Linux idneo-hbm 3.13.0-49-generic #83-Ubuntu SMP Fri Apr 10 20:14:51 UTC 2015 i686 i686 i686 GNU/Linux

Best regards,

Héctor

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [January 25, 2018, 6:00pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/13 "2018-01-25T18:00:57Z")

</div>

I had the same issue trying to build R7 of the kernel for WP7601. This is with no Legato build and 16.04 Ubuntu virtualbox VM provided by Sierra Wireless. I fixed it the same way by doing a bitbake.

---

<div class="post-metadata">

**Author:** ![gregnietsky](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@gregnietsky](https://forum.legato.io/u/gregnietsky)\
**Post date:** [March 23, 2018, 12:01pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/14 "2018-03-23T12:01:50Z")

</div>

I have a solution the problem happens when you build without legato-af

```
commit b7d78274c6c16c972f3abdfa19134ff03ed601e0
Author: Gregory Hinton Nietsky <gregnietsky@gmail.com>
Date: Fri Mar 23 00:47:41 2018 +0200

    Create DEPLOY_DIR_IMAGE if it does not exist
    Add dependancy for yaffs2-utils when building rootfs

diff --git a/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb b/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb
index c683b9e..d99f294 100644
--- a/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb
+++ b/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb
@@ -6,8 +6,10 @@ require ../../../meta-swi-mdm9xxx/recipes-core/images/mdm9xxx-qemu-image-minimal
 
 rootfs_symlink() {
     # Provide minimal image as rootfs symlink
+ if [! -d ${DEPLOY_DIR_IMAGE}];then
+ mkdir -p ${DEPLOY_DIR_IMAGE}
+ fi;
     ln -sf ${IMAGE_LINK_NAME}.4k.default ${DEPLOY_DIR_IMAGE}/rootfs
 }
 
 do_rootfs[postfuncs] += "rootfs_symlink"
-
diff --git a/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc b/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
index aaeed29..016997a 100644
--- a/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
+++ b/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc
@@ -28,6 +28,8 @@ IMAGE_INSTALL += "crda"
 IMAGE_INSTALL += "i2cgpioctl"
 IMAGE_INSTALL += "sierra-init-tiwifi"
 
+DEPENDS += "yaffs2-utils-native"
+
 # Only add Legato if this is a LEGATO_BUILD
 def check_legato_pkg(d):
     legato_build = d.getVar('LEGATO_BUILD', True) or "false"

```

---

<div class="post-metadata">

**Author:** ![EvetsMostel](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@EvetsMostel](https://forum.legato.io/u/EvetsMostel)\
**Post date:** [March 26, 2018, 3:04pm UTC](https://forum.legato.io/t/legato-15-05-build-error-in-bitbake/145/15 "2018-03-26T15:04:24Z")

</div>

Yes, none of my builds included Legato.
