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’

ソリューションへジャンプ
1,316件の閲覧回数
Bugger
Contributor III
../qemu-8.2.2/linux-user/syscall.c:365:8: error: redefinition of ‘struct sched_attr’
 
0 件の賞賛
返信
1 解決策
1,314件の閲覧回数
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 返信
1,315件の閲覧回数
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 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2087780%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX93%20Yocto%20%E3%81%AE%E3%83%93%E3%83%AB%E3%83%89%E3%81%8C%E5%A4%B1%E6%95%97%E3%81%99%E3%82%8B%20Ubuntu%2025.04%20%E3%81%8C%20'struct%20sched_attr'%20%E3%81%AE%E5%86%8D%E5%AE%9A%E7%BE%A9%E3%81%A7%E5%A4%B1%E6%95%97%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2087780%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E..%2Fqemu-8.2.2%2Flinux-user%2Fsyscall.c%3A365%3A8%3A%E3%82%A8%E3%83%A9%E3%83%BC%3A%20'struct%20sched_attr'%20%E3%81%AE%E5%86%8D%E5%AE%9A%E7%BE%A9%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E