cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution SDK installed but will NOT BUILD

JU
Associate III

I'm trying to get the OpenSTLinux build environment up & running for the 1st time, following the instructions on the wiki step-by-step.

So far I have:

Built a Ubuntu 18 Virtual machine in Virtualbox - (18.04.5LTS, 4 cores, 8GbRAM, 500Gb HDD)

Followed all the Starter package / Distribution package install & setup steps

Programmed the DK2 and EVB with the Starter Packages (tip: you need Virtualbox Extensions enabling USB2.0 & add STMicroelectronics* as a USB filter)

But now I am trying to actually build the whole project using BitBake and it keeps failing.

I have not modified the OpenSTLinux at all, I have set it all up using the directory structure suggested in the Wiki, initialised the environment per the instructions, and invoked:

bitbake -v st-image-weston 2>&1 | tee build.log

And the process appears to have failed, which is rather dissappointing, although I can't tell if the error is a "real" error or just something that doesn't really matter.

Here's errors from the log:

ERROR: Task (/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.2.bb:do_patch) failed with exit code '1'
ERROR: tf-a-stm32mp-2.2.r1-r0 do_patch: Command Error: 'quilt --quiltrc /home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/tf-a-stm32mp/2.2.r1-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Summary: 1 task failed:
  /home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.2.bb:do_patch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

EDIT to add:

I have tried building st-image-core but it still fails, with errors:

ERROR: Task (/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile) failed with exit code '1'
  CC      /home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/optee-os-stm32mp/3.9.0.r1-r0/build/stm32mp157f-ed1/core-lib/libmbedtls/mbedtls/library/md.o

make docs
 
make[1]: Entering directory '/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/build'
 
make[2]: Entering directory '/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/build/doc'
 
makeinfo ../../git/doc/libext2fs.texinfo
 
Traceback (most recent call last):
  File "/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/recipe-sysroot-native/bin/makeinfo", line 100, in <module>
    stub_msg
AssertionError: Don't know how to get default output file name from input file!
This stand-in version of makeinfo is not yet fully capable of emulating
the real version from the GNU texinfo suite. If you see this message, file a
bug report with details on the recipe that failed.
 
 
Makefile:369: recipe for target 'libext2fs.info' failed
make[2]: [libext2fs.info] Error 1 (ignored)
making all in lib/et
 
make[1]: Entering directory '/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/build/lib/et'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/build/lib/et'
 
Traceback (most recent call last):
  File "/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/e2fsprogs-native/1.45.4-r0/recipe-sysroot-native/bin/makeinfo", line 100, in <module>
    stub_msg
AssertionError: Don't know how to get default output file name from input file!
This stand-in version of makeinfo is not yet fully capable of emulating
the real version from the GNU texinfo suite. If you see this message, file a
bug report with details on the recipe that failed.
[57/137] /home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/libical/3.0.7-r0/recipe-sysroot-native/usr/bin/cmake -E cmake_symlink_library lib/libicalss.so.3.0.7  lib/libicalss.so.3 lib/libicalss.so && :
 
Traceback (most recent call last):
  File "/home/john/STM32/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/e2fsprogs/1.45.4-r0/recipe-sysroot-native/bin/makeinfo", line 100, in <module>
    stub_msg
AssertionError: Don't know how to get default output file name from input file!
This stand-in version of makeinfo is not yet fully capable of emulating
the real version from the GNU texinfo suite. If you see this message, file a
bug report with details on the recipe that failed.
 
 
Makefile:369: recipe for target 'libext2fs.info' failed
make[2]: [libext2fs.info] Error 1 (ignored)

...continued in next post because of forum post size limits!

1 REPLY 1
JU
Associate III

...well to answer my own question it looks like the VM is running out of memory:

> dmesg | grep memory
[16630.256542]  out_of_memory+0x109/0x510
[16630.256615] Tasks state (memory values in pages):
[16630.256815] Out of memory: Killed process 11543 (cc1plus) total-vm:1129268kB, anon-rss:437096kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:2224kB oom_score_adj:0

Guess I need to upgrade!