Solved :
Quemu fails due to glibc 2.41 defines this type but QEMU folks seemed to miss to add the patch.
Why does this happen in the tree published by NXP?
Guess it's not related using the latest Ubuntu distro ad Yocto has its own Linux source tree.
https://patchew.org/QEMU/20241011193140.1047648-1-raj.khem@gmail.com/
/frdm-imx93/tmp/work/x86_64-linux/qemu-native/8.2.2/qemu-8.2.2/linux-user
/* sched_attr is not defined in glibc */
/* From GLIBC 2.41 it is defined !*/
#ifndef SCHED_ATTR_SIZE_VER0
struct sched_attr {
uint32_t size;
uint32_t sched_policy;
uint64_t sched_flags;
int32_t sched_nice;
uint32_t sched_priority;
uint64_t sched_runtime;
uint64_t sched_deadline;
uint64_t sched_period;
uint32_t sched_util_min;
uint32_t sched_util_max;
};
#endif