On Fri, Jun 26, 2020 at 12:15 PM stan <upaitag(a)zoho.com> wrote:
I sent the message below to the kernel list on Wednesday, and have not
seen it on the list yet. So I am copying Justin, who I expect would be
the person that would answer this question if possible, and resending
it in case it somehow got lost in the data center move.
Hi,
I am trying to build a custom kernel from the src.rpm for 5.8.0.0.rc2
(kernel-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.src.rpm) on FC31, and
it fails with the following error. I've tried two candidates so far,
and both failed (0622, 0623). The same configuration works on 5.7
kernels.
Can you provide any insight, or a workaround?
What changes are you making to your custom build? This is not
something we are hitting in rawhide.
Justin
>
> In file included from ./arch/x86/include/asm/atomic.h:5,
> from ./include/linux/atomic.h:7,
> from ./include/linux/llist.h:51,
> from ./include/linux/irq_work.h:5,
> from kernel/smp.c:10:
> kernel/smp.c: In function 'smp_init':
> ./include/linux/compiler.h:392:38: error: call to
> '__compiletime_assert_156' declared with attribute error:
> BUILD_BUG_ON failed: offsetof(struct task_struct,
> wake_entry_type) - offsetof(struct task_struct, wake_entry) !=
> offsetof(struct __call_single_data, flags) - offsetof(struct
> __call_single_data, llist) 392 | _compiletime_assert(condition,
> msg, __compiletime_assert_, __COUNTER__) |
> ^ ./include/linux/compiler.h:373:4: note: in
> definition of macro '__compiletime_assert' 373 | prefix ##
> suffix(); \ | ^~~~~~ ./include/linux/compiler.h:392:2:
> note: in expansion of macro '_compiletime_assert' 392 |
> _compiletime_assert(condition, msg, __compiletime_assert_,
> __COUNTER__) | ^~~~~~~~~~~~~~~~~~~
> ./include/linux/build_bug.h:39:37: note: in expansion of macro
> 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg)
> compiletime_assert(!(cond), msg) |
> ^~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:50:2: note:
> in expansion of macro 'BUILD_BUG_ON_MSG' 50 |
> BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) |
> ^~~~~~~~~~~~~~~~ kernel/smp.c:687:2: note: in expansion of macro
> 'BUILD_BUG_ON' 687 | BUILD_BUG_ON(offsetof(struct task_struct,
> wake_entry_type) - offsetof(struct task_struct, wake_entry) != |
> ^~~~~~~~~~~~ make[1]: *** [scripts/Makefile.build:281:
> kernel/smp.o] Error 1 make[1]: *** Waiting for unfinished jobs....