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

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

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

跳至解决方案
935 次查看
Bugger
Contributor III
../qemu-8.2.2/linux-user/syscall.c:365:8: error: redefinition of ‘struct sched_attr’
 
0 项奖励
回复
1 解答
933 次查看
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 项奖励
回复
1 回复
934 次查看
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 项奖励
回复