IMX93 - Yocto - Bitabake - Error on "oe_runmake" during bitbake core-image-minimal

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX93 - Yocto - Bitabake - Error on "oe_runmake" during bitbake core-image-minimal

1,022 次查看
il_ciancio
Contributor III

Hello NXP Experts,

i have followed "IMXLXYOCTOUG i.MX Yocto Project User's Guide" in order to generate an image.

I am having an issue during  bitbake core-image-minimal for this configuration (local.conf):

  • MACHINE ??= 'imx93-11x11-lpddr4x-evk'
    DISTRO ?= 'fsl-imx-fb'

Attached you can find the log from the prompt.

Below an extract:

| 364 | struct sched_attr {
| | ^~~~~~~~~~
| In file included from /usr/include/bits/sched.h:60,
| from /usr/include/sched.h:43,
| from /usr/include/pthread.h:22,
| from /home/mosaico/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/8.1.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/glib-2.0/glib/deprecated/gthread.h:126,
| from /home/mosaico/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/8.1.2/recipe-sysroot-native/usr/lib/pkgconfig/../../../usr/include/glib-2.0/glib.h:115,
| from /home/mosaico/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/8.1.2/qemu-8.1.2/include/glib-compat.h:32,
| from /home/mosaico/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/8.1.2/qemu-8.1.2/include/qemu/osdep.h:144,
| from ../qemu-8.1.2/linux-user/syscall.c:20:
| /usr/include/linux/sched/types.h:102:8: note: originally defined here
| 102 | struct sched_attr {
| | ^~~~~~~~~~

 

Can you help me?

Regards,

Alessandro C.

标记 (3)
0 项奖励
回复
4 回复数

989 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @il_ciancio!

Thank you for contacting NXP Support!

 

Do you have the proper packages to compile?

 

Essential Yocto Project host packages are:

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils
iputils-ping python3-git python3-jinja2 python3-subunit zstd liblz4-tool file
locales libacl1

 

Try reducing the cores of the Yocto compilation adding the next lines in local.conf file:

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

 

We recommend 4GB of ram of each core.

 

Best Regards!

Chavira

0 项奖励
回复

977 次查看
il_ciancio
Contributor III
Hi,
thanks a lot for your reply.
I am working on CentosOS. I have re-initialized a Virtual Machine and I have limited the cores to 4 and 8.
I have also followed the new guide for Yocto (2025 release) with styhead branch.
I have the same errors:

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.6/x86_64-nativesdk-libc-4.6.tar.xz;sha256sum=... (will check PREMIRRORS first)
Sstate summary: Wanted 2400 Local 0 Mirrors 0 Missed 2400 Current 0 (0% match, 0% complete)##################################### | ETA: 0:00:00
Initialising tasks: 100% |##################################################################################################################| Time: 0:00:06
NOTE: Executing Tasks
Setscene tasks: 2400 of 2400
ERROR: qemu-native-9.0.2-r0 do_compile: oe_runmake failed
ERROR: qemu-native-9.0.2-r0 do_compile: Execution of '/home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602' failed with exit code 1
ERROR: Logfile of failure stored in: /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/log.do_compile.1044602

| from /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/qemu-9.0.2/include/qemu/osdep.h:161,
| from ../qemu-9.0.2/linux-user/syscall.c:20:
| /usr/include/linux/sched/types.h:102:8: note: originally defined here
| 102 | struct sched_attr {
| | ^~~~~~~~~~
| [952/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/linux-user_mmap.c.o
| [953/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/linux-user_thunk.c.o
| [954/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/linux-user_uaccess.c.o
| [955/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/accel_tcg_user-exec.c.o
| [956/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/linux-user_strace.c.o
| [957/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/fpu_softfloat.c.o
| [958/1885] Compiling C object libqemu-ppc64le-linux-user.fa.p/target_ppc_translate.c.o
| ninja: build stopped: subcommand failed.
| make: *** [Makefile:167: run-ninja] Error 1
..........................................
| ERROR: oe_runmake failed
| WARNING: /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602:187 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 187
| #2: die, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 172
| #3: oe_runmake, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 177
| #4: base_do_compile, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 155
| #5: do_compile, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 149
| #6: main, /home/imx-yocto-bsp/build/tmp/work/x86_64-linux/qemu-native/9.0.2/temp/run.do_compile.1044602, line 197


Any idea?

0 项奖励
回复

971 次查看
Chavira
NXP TechSupport
NXP TechSupport

HI @il_ciancio!

 

We recommend to use Ubuntu 22 since CentOS is not tested yet.

Are you following the i.MX Yocto Project User's Guide ?

 

I just compile our new release without problems in Ubuntu 22.

 

 

0 项奖励
回复

947 次查看
il_ciancio
Contributor III

Apparently the problem is on Centos distribution.

I have moved on a new VM with ubuntu22 and the bitbake is finished without error.

I will try again and I will close the tickets later.