On Fri, 26 Jun 2020 21:34:27 +0200
Ondrej Mosnacek <omosnace(a)redhat.com> wrote:
Apparently you are not the only one hitting this problem:
Seems you need to turn off CONFIG_GCC_PLUGIN_RANDSTRUCT to work around
it (but hopefully the guys will fix it in a better way eventually).
It wasn't really hard to find the thread:
1. `git blame kernel/smp.c` to find which commit introduced the lines
that throw the error.
2. The commit message has a helpful link to the original patch
submission in the LKML archives.
3. Clicked the third reply (longest subthread) to the patch itself and
read the rest of the replies in the thread.
4. Bingo ;-)
And like others in the above thread, when I turn off
CONFIG_GCC_PLUGIN_RANDSTRUCT, compilation succeeds.