building core-image-minimal #bitbake #ubuntu #yocto
I'm trying to build a yocto image (core-image-minimal) using ubuntu 22.04 (on VM VirtualBox) but when I run the command (bitbake core-image-minimal) I keep getting this error:
ERROR: gcc-9.5.0-r0 do_compile: oe_runmake failed
ERROR: gcc-9.5.0-r0 do_compile: Execution of '/home/shaikah/Projects/yocto/build-mp1/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gcc/9.5.0-r0/temp/run.do_compile.58198' failed with exit code 1
ERROR: Logfile of failure stored in: /home/shaikah/Projects/yocto/build-mp1/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gcc/9.5.0-r0/temp/log.do_compile.58198 Log data follows:
| DEBUG: Executing python function autotools_aclocals | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Python function autotools_aclocals finished | DEBUG: Executing shell function do_compile | NOTE: make -j 2 configure-gcc | make: *** No rule to make target 'configure-gcc'. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. | ERROR: Execution of '/home/shaikah/Projects/yocto/build-mp1/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gcc/9.5.0-r0/temp/run.do_compile.58198' failed with exit code 1
ERROR: Task (/home/shaikah/Projects/yocto/poky/meta/recipes-devtools/gcc/gcc_9.5.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 627 tasks of which 620 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/shaikah/Projects/yocto/poky/meta/recipes-devtools/gcc/gcc_9.5.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
I tried cleaning then rebuilding but it didn't work.
Please provide more details like the initial messages showing the MACHINE, DISTRO and Yocto release. Did you install the required packages ?
https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages
--
Marco
Yes I did
Here they're:
Build Configuration:BB_VERSION = "1.46.0"BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "poky"DISTRO_VERSION = "3.1.33"TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "dunfell:63d05fc061006bf1a88630d6d91cdc76ea33fbf2" meta-oe
meta-python = "dunfell:01358b6d705071cc0ac5aefa7670ab235709729a" meta-st-stm32mp = "dunfell:a8d55e2fe13d6be03222f45b3115a96938b2553a"
Thank you
Quoted 14 lines · alaraij.shaikah via lists.yoctoproject.org
Yes I did
Here they're:Build Configuration:
BB_VERSION = "1.46.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "stm32mp1" DISTRO = "poky" DISTRO_VERSION = "3.1.33" TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard"
Quoted 6 lines
meta
meta-poky
meta-yocto-bsp = "dunfell:63d05fc061006bf1a88630d6d91cdc76ea33fbf2"
meta-oe
meta-python = "dunfell:01358b6d705071cc0ac5aefa7670ab235709729a"
meta-st-stm32mp = "dunfell:a8d55e2fe13d6be03222f45b3115a96938b2553a”
I’d try deleting your build-mp1/tmp/ directory and trying again, just in case there has been build tree corruption.
But if that doesn’t work, start by removing the ST BSP from the problem:
$ git clone -b dunfell https://git.yoctoproject.org/poky $ cd poky $ . oe-init-build-env $ MACHINE=qemuarm bitbake gcc
If that works then you know the problem is in meta-st somewhere, and you should contact ST for support.
Ross
You are using an old and quite obsolete " *ST Ecosystem* " based on Yocto 'dunfell'.
This "ST Ecosystem" requires an older version of Ubuntu and you can't use 22.04.
I recommend you to go back to *Ubuntu 20.04* , because with more recent versions, you will surely encounter other problems. This is the 'weird' world created by ST and it's called 'Ecosystem' :-(
--
Marco