siemens / meta-iot2000

SIMATIC IOT2000 Yocto Board Support Package
Other
127 stars 85 forks source link

build of an image failed with exit code '1' #174

Closed STUBA-rupr closed 2 years ago

STUBA-rupr commented 2 years ago

Any hints how to succeed with the build of an image? I tried to build the image kas-example-rt.yml and kas-example-swupdate.yml native or docker (I tried also checkout the tag V3.1.1.), tried also with wget https://raw.githubusercontent.com/siemens/kas/2.6.3/kas-container in OS Ubuntu 18.04 TLS, 20.04 TLS with the same result: image image little more success I got with editing kas-bsp.yml with 2021-11-15 | build-appliance-image: Update to dunfell head revision yocto-.1.12dunfell-23.0.12

  poky:

    url: https://git.yoctoproject.org/git/poky

    refspec: 0839888394a6e42e96f9f0d201376eb38bc79b24

    layers:

      meta:

      meta-poky:

      meta-yocto-bsp:

for this case only node-red failed.

Any hints how can I succeed?

jan-kiszka commented 2 years ago

What exactly was reported as error for the upm recipe build?

One frequent source for troubles is an imbalance between available CPU cores and RAM for the build job: If you run in VM that has too little RAM assigned, the number of parallel builds on the different cores my hit an out-of-memory condition, and the build will fail.

STUBA-rupr commented 2 years ago

Hi @jan-kiszka thanks for a prompt feedback, I will reprocess it again to give you the answer, I am trying another build. I am using the VM with 8 CPUs and 8 GB RAM.

STUBA-rupr commented 2 years ago

Hi @jan-kiszka I changed VM configuration to 4 CPUs and 8 GB RAM and I got the image built. Really nice catch, thank you!