Kernel-4.19: "return with modified stack frame" warnings during build |
||
Issue descriptionWhen building kernel-4.19 with GCC (using Samus as a target) I see a bunch of build warnings that look like this: drivers/firmware/google/gsmi.o: warning: objtool: gsmi_set_variable()+0x1a0: return with modified stack frame
,
Oct 8
It looks like I see them when building a v4.19 based kernel in the v3.18 repo, but not in the linux-next repo. I'm guessing they must be using different versions of gcc. I'll take a harder look tomorrow.
,
Oct 9
Confirmed, this happens 100% of the time when building in kernel-3_14, but not at all when building in linux-next. Both are at the same commit id: 088c04f5bc33 CHROMIUM: Normalize defconfig From looking at the commands being run I think they are both using the same versions of gcc and other tools.
,
Oct 9
I see the same warning whether building everything via "build_packages", or when emerging just sys-kernel/chromeos-kernel-3_14.
,
Jan 2
It turns out that this is due to the fact that sys-kernel/chromeos-kernel-3_14 creates a gcov-enabled build, while sys-kernel/chromeos-kernel-4_19 and sys-kernel/chromeos-kernel-next do not. The latter two use clang by default, but for this testing I had them use gcc via a USE flag. In the v3.14 repo you can avoid triggering this issue with the USE flag "-kernel_afdo". In any case, since a) the older kernels that do use gcov don't see this, b) the more recent kernels use clang, I'll just close this as "won't fix". We can revisit if we need to use gcov or the llvm equivalent on a recent kernel.
,
Jan 2
|
||
►
Sign in to add a comment |
||
Comment 1 by groeck@chromium.org
, Oct 8