Build errors for core-image-base using yocto 2.6

I am attempting to build the core-image-base using yocto 2.6. I have followed the setup guide here (https://www.digi.com/resources/documentation/digidocs/embedded/dey/2.6/cc6ul/yocto_r_system-development) and successfully set up a virtual machine running Ubuntu 16.04 and then downloaded the yocto repo using the suggested methods. I have then run bitbake core-image-base to start the build and about half way through the build it will fail due to #include “nm-enums-types.h” not being found. I am unable to correct this error

I have not attempted to customise the build but really just test the build system with a simple run.

Any help would be appreciated.

Some of the error log from the build is pasted in below

alex@alex-VirtualBox:~/workspace/ccimx6ulsbc$ bitbake core-image-base
NOTE: Started PRServer with DBfile: /home/alex/workspace/ccimx6ulsbc/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 35587, PID: 11683
Parsing recipes: 100% |###############################################################| Time: 0:08:23
Parsing of 2421 .bb files complete (0 cached, 2421 parsed). 3423 targets, 200 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “1.40.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “ubuntu-16.04”
TARGET_SYS = “arm-dey-linux-gnueabi”
MACHINE = “ccimx6ulsbc”
DISTRO = “dey”
DISTRO_VERSION = “2.6-r1”
TUNE_FEATURES = “arm armv7ve vfp thumb neon callconvention-hard cortexa7”
TARGET_FPU = “hard”
meta
meta-poky
meta-yocto-bsp = “HEAD:e6949336479e611a142834b6d9241514cbaeaf80”
meta-oe
meta-python
meta-networking
meta-webserver = “HEAD:2d088d252624b19df384aecc434d23afb636178f”
meta-qt5 = “HEAD:1520d5b2b2beec5e1c3209d3178219e93ef08bca”
meta-swupdate = “HEAD:bfe8133749c8bd444aab2372f1dd737eb35454c3”
meta-freescale = “HEAD:8b9a1e19b1983301bbad9f0c61a4d2adc3fdd741”
meta-fsl-demos = “HEAD:4a244af3993ae662624c6f615464e6806cc719a2”
meta-digi-arm
meta-digi-dey = “HEAD:471d8ad583aa80ce7cd4b8b206b62d1828901139”

| In file included from …/NetworkManager-1.14.4/shared/nm-default.h:311:0,
| from …/NetworkManager-1.14.4/clients/nm-online.c:34:
| …/NetworkManager-1.14.4/libnm/NetworkManager.h:60:10: fatal error: nm-enum-types.h: No such file or directory
| #include “nm-enum-types.h”
| ^~~~~~~~~~~~~~~~~

how much memory does your VM have? It is recommended to use a real PC with i7 and at least 16Gb of RAM for successful Yocto build

The VM only has 4GB of RAM at the moment. I will find some more RAM from somewhere and have another go.

I was expecting this to be some sort of missing dependency though, does the Yocto repo contain all of the components needed to build the basic image?

yes, it has all the dependencies and should build if you follow the manual. We run a daily build to make sure updates do not break it.

So after moving the Yocto build to a dedicated PC with the recommended build spec the build problem has gone.

The VM I was using only had 4GB for RAM on a PC with only 8GB in total so I guess that one of the processes was running out of memory during the build and causing the errors.