IMX93 Yocto build fails Ubuntu 25.04 fails with redefinition of ‘struct sched_attr’

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX93 Yocto build fails Ubuntu 25.04 fails with redefinition of ‘struct sched_attr’

Jump to solution
953 Views
Bugger
Contributor III
../qemu-8.2.2/linux-user/syscall.c:365:8: error: redefinition of ‘struct sched_attr’
 
0 Kudos
Reply
1 Solution
951 Views
Bugger
Contributor III

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

View solution in original post

0 Kudos
Reply
1 Reply
952 Views
Bugger
Contributor III

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
0 Kudos
Reply