# Issue when building with meta-mender zeus-test

**URL:** <https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825>\
**Category:** General Discussions\
**Created:** [April 23, 2020, 9:03am UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825 "2020-04-23T09:03:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [April 23, 2020, 9:03am UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/1 "2020-04-23T09:03:24Z")

</div>

Hi Mirzak,

I started integrating meta-mender (zeus-next branch) layer in my project build for Yocto Zeus.

I face some below issues, please help on this.

When I build meta-mender source for Yocto Zeus, some of the tasks are getting failed.

When I build project without meta-mender source I won’t get below errors.

Added bblayers are.

**meta-mender/meta-mender-core.**

**meta-mender/meta-mender-demo.**

Summary of some task failed, all are **do\_package\_qa** task.

Some of the build errors shown below:

**./sources/oe-core/meta/recipes-extended/libmnl/libmnl\_1.0.4.bb:do\_package\_qa**

**…/sources/oe-core/meta/recipes-support/libcap-ng/libcap-ng\_0.7.9.bb:do\_package\_qa**

**…/sources/oe-core/meta/recipes-support/attr/attr\_2.4.47.bb:do\_package\_qa**

**…/sources/oe-core/meta/recipes-extended/cracklib/cracklib\_2.9.5.bb:do\_package\_qa**

**…/sources/oe-core/meta/recipes-core/expat/expat\_2.2.8.bb:do\_package\_qa**

**…/sources/oe-core/meta/recipes-devtools/flex/flex\_2.6.0.bb:do\_package\_qa**

Thanks,

Vishal

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 23, 2020, 11:42am UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/2 "2020-04-23T11:42:56Z")

</div>

( Moved this to a separate thread )

Please share a more complete log of the errors you are using as there is not much information to go on with what was posted.

---

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [April 23, 2020, 5:03pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/3 "2020-04-23T17:03:21Z")

</div>

[meta-mender\_zeus\_next\_build\_log.yaml](https://hub.mender.io/uploads/short-url/zs81FcRT120o0dw4dhckUEkuMtw.yaml) (12.4 KB)

Hi Mirzak,

Please find the complete bitbake build log, i am using Arago Project (Yocto project compatible) and with meta-mender (zeus-next) layer i am facing these issues.

Thanks,  
Vishal

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 23, 2020, 5:28pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/4 "2020-04-23T17:28:54Z")

</div>

Unfortunately the log does not say much. The actually error messages are not printed. I do not see how the failing packages would be related to meta-mender.

Have you included the necessary configuration options required by Mender as outlined in this section,

[https://docs.mender.io/2.3/artifacts/yocto-project/building#configuring-the-build-1](https://docs.mender.io/2.3/artifacts/yocto-project/building#configuring-the-build-1)

---

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [April 26, 2020, 6:49pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/5 "2020-04-26T18:49:09Z")

</div>

Hi Mirzak,  
Thanks for your suggestion.

After including below necessary configuration options in **conf/local.conf** file, the build will no produce do\_package\_qa errors.  
Mender config parameters in conf/local.conf  
MENDER\_ARTIFACT\_NAME = “release-1”  
ARTIFACTIMG\_FSTYPE = “ext4”  
MENDER\_FEATURES\_ENABLE\_append = " mender-uboot"  
MENDER\_FEATURES\_ENABLE\_append = " mender-systemd"  
MENDER\_FEATURES\_ENABLE\_append = " mender-image"  
MENDER\_FEATURES\_DISABLE\_append = " mender-grub"

But the build is not able to produce rootfs tar file, however u-boot, kernel image and dtb file will produce successfully.

Build error log:

meta-mender-core  
meta-mender-demo = “zeus-next:6b35e2c6f6fa6519d0baf1d8a30502b3449a5ccd”

Initialising tasks: 100% |############################################################################################| Time: 0:00:01  
Sstate summary: Wanted 4 Found 1 Missed 3 Current 756 (25% match, 99% complete)  
NOTE: Executing Tasks  
NOTE: Setscene tasks completed  
ERROR: core-image-minimal-1.0-r0 do\_image\_tar: Execution of ‘/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943’ failed with exit code 1:  
**xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB**  
md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory  
WARNING: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz \> core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’

ERROR: Logfile of failure stored in: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do\_image\_tar.11943  
Log data follows:  
| DEBUG: Executing python function prepare\_excluded\_directories  
| DEBUG: Python function prepare\_excluded\_directories finished  
| DEBUG: Executing python function set\_image\_size  
| DEBUG: 140564.000000 = 140564 \* 1.000000  
| DEBUG: 434176.000000 = max(140564.000000, 430080)[430080.000000] + 4096  
| DEBUG: 434176.000000 = int(434176.000000)  
| DEBUG: 434176 = aligned(434176)  
| DEBUG: returning 434176  
| DEBUG: Python function set\_image\_size finished  
| DEBUG: Executing shell function do\_image\_tar  
| xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB  
| md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory  
| WARNING: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz \> core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’  
| **ERROR: Execution of ‘/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943’ failed with exit code 1:**  
**| xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB**  
| md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory  
| WARNING: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz \> core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’  
|  
ERROR: Task (/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal.bb:do\_image\_tar) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 2568 tasks of which 2560 didn’t need to be rerun and 1 failed.  
NOTE: Writing buildhistory  
NOTE: Writing buildhistory took: 62 seconds

Summary: 1 task failed:  
/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal.bb:do\_image\_tar

Thanks  
Vishal

---

<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:** [April 27, 2020, 4:10pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/6 "2020-04-27T16:10:51Z")

</div>

Hi @Vishalkumar_1234 what happens if you add the following to local.conf?

`IMAGE_FSTYPES_append = " tar.xz "`

(note the spaces inside the quotes are intentional and required)

Drew

---

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [April 28, 2020, 5:03pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/7 "2020-04-28T17:03:08Z")

</div>

Hi Drew,

First of all thanks for looking into this.

I see the same below errors, even after adding image FS type to local.conf file.

Is it something related to system limitation (memory usage limit), during compressing the files, which may have with mender artifacts and mender images ?

error log:  
ERROR: core-image-minimal-1.0-r0 do\_image\_tar: Execution of ‘/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.11943’ failed with exit code 1:  
**xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB**

---

<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:** [April 28, 2020, 6:04pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/8 "2020-04-28T18:04:43Z")

</div>

I don’t really know. I’ve never see that message but it sounds like it is being careful not to use all the memory.

What does “/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do\_image\_tar.11943” contain?

Drew

---

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [June 8, 2020, 12:49pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/9 "2020-06-08T12:49:34Z")

</div>

Hi Drew,

It’s been a while, working on this. Again came back to Mender, and trying it out to upgrade rootfs. But same error i am getting every time.  
The content of the log is below, which is your query in previous thread of this discussion.  
**log\_content:**  
DEBUG: Executing python function prepare\_excluded\_directories  
DEBUG: Python function prepare\_excluded\_directories finished  
DEBUG: Executing python function set\_image\_size  
DEBUG: 186960.000000 = 186960 \* 1.000000  
DEBUG: 221184.000000 = max(186960.000000, 217088)[217088.000000] + 4096  
DEBUG: 221184.000000 = int(221184.000000)  
DEBUG: 221184 = aligned(221184)  
DEBUG: returning 221184  
DEBUG: Python function set\_image\_size finished  
DEBUG: Executing shell function do\_image\_tar  
xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB  
md5sum: core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz: No such file or directory  
WARNING: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_hs\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.27661:1 exit 1 from ‘md5sum core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz \> core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz.md5’  
ERROR: Execution of ‘/home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_hs\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.27661’ failed with exit code 1:  
xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB  
md5sum: core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz: No such file or directory  
WARNING: /home/user/SVN\_BWT/Code/BWT\_Software\_WP2\_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx\_hs\_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do\_image\_tar.27661:1 exit 1 from ‘md5sum core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz \> core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz.md5’

---

<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 8, 2020, 3:23pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/10 "2020-06-08T15:23:04Z")

</div>

Well the warnings about memory usage are a bit concerning. How much RAM do you have in the build machine? I couldn’t find an explicit statement about RAM requirements but more is always better here.

Are you able to build that MACHINE without Mender integrated?

What does the following command show?

`$ bitbake -e core-image-minimal | grep '^IMAGE_FSTYPES='`

---

<div class="post-metadata">

**Author:** ![Vishalkumar\_1234](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@Vishalkumar\_1234](https://hub.mender.io/u/Vishalkumar_1234)\
**Post date:** [June 8, 2020, 4:33pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/11 "2020-06-08T16:33:44Z")

</div>

$ bitbake -e core-image-minimal | grep ‘^IMAGE\_FSTYPES=’  
IMAGE\_FSTYPES=" tar.xz wic.xz tar.xz.md5 mender mender.bmap "

Build machine has 8GB of RAM.

Yes I am able to build the rootfs image, without integrating Mender.  
When I build separately mender-client, it will build successfully.  
Issue is only during creating rootfs image and that’s with only when we integrate with Mender.

---

<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 8, 2020, 6:10pm UTC](https://hub.mender.io/t/issue-when-building-with-meta-mender-zeus-test/1825/12 "2020-06-08T18:10:36Z")

</div>

Hmm. It looks like you don’t have the sdimg file type. What are your settings for Mender in your local.conf? Do you inherit mender-full?
