Closed gottaeat closed 3 years ago
i am deeply sorry, while the bootlooping issue is still there when the lto patchset is applied, the warnings above are not caused by it, a vanilla 5.12.0 + gcc 11.1 build has them as well.
On Wed, Apr 28, 2021 at 02:49:32PM -0700, mss wrote:
during the LTO stage i am getting these warnings with gcc 11.1.0, which i did not get with 10.3.0:
LTO vmlinux.o In function 'ilk_setup_wm_latency', inlined from 'intel_init_pm' at drivers/gpu/drm/i915/intel_pm.c:7628:3:
I looked at some of them and I think at least those were false positives. At some point need to fix them, but it's not urgent.
ZSTD22 arch/x86/boot/compressed/vmlinux.bin.zst In file included from arch/x86/boot/compressed/misc.c:18: In function 'parse_elf', inlined from 'extract_kernel' at arch/x86/boot/compressed/misc.c:442:2: arch/x86/boot/compressed/../string.h:15:23: warning: '__builtin_memcpy' reading 64 bytes from a region of size 0 [-Wstringop-overread] 15 | #define memcpy(d,s,l) __builtin_memcpy(d,s,l) | ^
~~~~~~ arch/x86/boot/compressed/misc.c:283:9: note: in expansion of macro 'memcpy' 283 | memcpy(&ehdr, output, sizeof(ehdr)); | ^~once the kernel that got built above is installed, the machine keeps on rebooting after the Booting the kernel stage.
That's bad. Do you see any output with earlyprintk=vga?
(or better earlyprintk=serial if you have a serial console)
Also can you please attach your .config?
Never mind, I was able to reproduce. Working on it.
Never mind, I was able to reproduce. Working on it.
Andikleen,when you want, you can join to telegram group, where some ppl can help you with compile reports and many guys want as fast as possible GCC lto compiled kernel ready .
Here is group of lots of kernel compilers :
Im inviting you to most active compilers group
t.me/cacule_sched
@andikleen
I looked at some of them and I think at least those were false positives. At some point need to fix them, but it's not urgent.
apologies if i were not clear previously, all of the warnings are there without the lto-5.12-3
changes applied, a quick search shows up other instances of multiple people getting hit with them: gcc bugzilla bug 99578
Do you see any output with earlyprintk=vga?
machine reboots silently after this stage:
Also can you please attach your .config?
Fixed now with
23dd0face96b sched: Work around undefined behavior in sched class checking
gcc was exploiting some ISO-C undefined behavior in the scheduler initialization. Please let me know if this fixes your problem.
23dd0fa does fix the issue, thank you immensely for your work, have a safe and smooth day.
during the
LTO
stage i am getting these warnings with gcc 11.1.0, which i did not get with 10.3.0:and seeing this warning on the
ZSTD22
stage:once the kernel that got built above is installed, the machine keeps on rebooting after the
Booting the kernel
stage.