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):
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.
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
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.