# Yocto version

**URL:** <https://hub.mender.io/t/yocto-version/3770>\
**Category:** General Discussions\
**Created:** [June 18, 2021, 9:44am UTC](https://hub.mender.io/t/yocto-version/3770 "2021-06-18T09:44:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 18, 2021, 9:44am UTC](https://hub.mender.io/t/yocto-version/3770/1 "2021-06-18T09:44:21Z")

</div>

Hi,

I’m working on a Raspberry 3 Compute Module based project. I’m having issues integrating Mender based on dunfell. What is/are the current supported version(s) I can use?

With kind regards,  
Matthijs ter Woord

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 18, 2021, 2:18pm UTC](https://hub.mender.io/t/yocto-version/3770/2 "2021-06-18T14:18:52Z")

</div>

Hi @mterwood

While we have not explicitly tested the CM on dunfell (at least _I_ have not), I would expect it to work since it is supposed to be binary compatible with the RPI3. I suppose it’s possible the drivers are a bit different based on what is included in the CM and is what is part of the base board. Can you elaborate on what issues you are having?

Drew

---

<div class="post-metadata">

**Author:** ![lramirez](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lramirez/32/1195_2.png) [@lramirez](https://hub.mender.io/u/lramirez)\
**Post date:** [June 18, 2021, 4:22pm UTC](https://hub.mender.io/t/yocto-version/3770/3 "2021-06-18T16:22:27Z")

</div>

Based on [Raspberry Pi 3 Model B/B+](https://hub.mender.io/t/raspberry-pi-3-model-b-b/57), mender was validated to work with Dunfell.  
Can you double-check your steps with the ones described in the link above?

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 19, 2021, 7:40am UTC](https://hub.mender.io/t/yocto-version/3770/4 "2021-06-19T07:40:29Z")

</div>

Somehow I feel like I’m losing sanity here.

I have a local.conf file, with a custom layer. This layer contains, amongst other small stuff, an image definition. When I build that image, it takes a while and the build fails. Retrying then (maybe once or twice more) results in a successful build. Am I missing something?

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 19, 2021, 11:06am UTC](https://hub.mender.io/t/yocto-version/3770/5 "2021-06-19T11:06:13Z")

</div>

What I now did, was clean the tmp, sstate and out directories. Then build the image. It fails on building binutils.

Retry, and everything builds fine. Is this something others see as well?

I collected logs of both build attempts, if anyone is interested.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 19, 2021, 9:52pm UTC](https://hub.mender.io/t/yocto-version/3770/6 "2021-06-19T21:52:49Z")

</div>

Sounds to me like a race condition of some kind. If you can share the failing build log that may be instructive.  
Drew

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 21, 2021, 7:44am UTC](https://hub.mender.io/t/yocto-version/3770/7 "2021-06-21T07:44:33Z")

</div>

See the following gist for log files. First one is from the failing attempt, second one from the succeeding, which was executed exactly the same way.

> <https://gist.github.com/mterwoord/a0acaf0f322a3728ffa77b32bf5603dd>

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 21, 2021, 2:00pm UTC](https://hub.mender.io/t/yocto-version/3770/8 "2021-06-21T14:00:45Z")

</div>

Hmm. I see the following in your failure log.

```auto
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
/yocto/out/TWCB_COMBINED/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/binutils/2.34-r0/recipe-sysroot/usr/include/c++/9.3.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type ' __gnu_cxx::__ normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >' changed in GCC 7.1
 1195 | _M_realloc_insert(end(), __x);
      | ^ ~~~~~~~~~~~~~~~~
arm-poky-linux-gnueabi-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Makefile:1137: recipe for target 'powerpc.o' failed
make[4]: *** [powerpc.o] Error 1
make[4]: *** Waiting for unfinished jobs....

```

I googled the error messages and it seems related to a memory issue, out of memory or something. Can you try again with less parallelism?

What is your build host? Is it a native install or a VM? How much RAM? How many CPUs?

Drew

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 22, 2021, 3:42pm UTC](https://hub.mender.io/t/yocto-version/3770/9 "2021-06-22T15:42:12Z")

</div>

Build host is a VM on HyperV. Has 12 virtual CPU’s (out of 12 cores/threads of an i7-6800k).

Runs on a RAID5 disk setup, with 8GB of ram. Wil increase that to 16 and try a full build again. Will keep you posted.

I really hope this is the issue, will keep you posted. (I googled now and see the hints towards out of memory. If that’s the case, I’m feeling stupid)

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 22, 2021, 3:56pm UTC](https://hub.mender.io/t/yocto-version/3770/10 "2021-06-22T15:56:33Z")

</div>

I seem to recall seeing somewhere a recommendation of 1GB per core so hopefully, that is your issue.

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 22, 2021, 4:27pm UTC](https://hub.mender.io/t/yocto-version/3770/11 "2021-06-22T16:27:56Z")

</div>

Looking at the VM’s host (instead of connecting via SSH), I now see a lot of “Out of memory: killed process” messages. I think we’re close here. 🙂

---

<div class="post-metadata">

**Author:** ![mterwoord](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mterwoord/32/100_2.png) [@mterwoord](https://hub.mender.io/u/mterwoord)\
**Post date:** [June 23, 2021, 6:44am UTC](https://hub.mender.io/t/yocto-version/3770/12 "2021-06-23T06:44:09Z")

</div>

That solved it. Complete build within 2 hours, without any errors or retries. Thanks for googling for me. Will try to do myself next time…
