https://bugzilla.suse.com/show_bug.cgi?id=1190340
Bug ID: 1190340 Summary: armv7hl 5.14 kernel build fails for Leap 15.4 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: tiwai@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
Now we start building the armv7hl kernel for Leap 15.4, and it fails as:
[ 9793s] GEN modules.builtin [ 9793s] LD .tmp_vmlinux.btf [ 9827s] BTF .btf.vmlinux.bin.o [ 9884s] [4957384] STRUCT thread_info's field 'vfpstate' offset=2048 bit_size=0 type=4957356 Error emitting field [ 9884s] Encountered error while encoding BTF. .... [ 9994s] FAILED: load BTF from vmlinux: No such file or directory [ 9994s] make[1]: *** [/home/abuild/rpmbuild/BUILD/kernel-default-5.14.2/linux-5.14/Makefile:1200: vmlinux] Error 255
My initial attempt worked because BTF wasn't enabled due to the old tools. OTOH, the same 5.14 build is OK with stable branch, so there is still some missing piece, supposedly.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c1
--- Comment #1 from Guillaume GARDET guillaume.gardet@arm.com --- A local build shows a slightly different error: [ 2568s] GEN modules.builtin [ 2568s] LD .tmp_vmlinux.btf [ 2598s] BTF .btf.vmlinux.bin.o [ 2651s] [4956386] STRUCT cpu_context_save's field 'sp' offset=256 bit_size=0 type=4956171 Error emitting field [ 2651s] Encountered error while encoding BTF. [ 2651s] LD .tmp_vmlinux.kallsyms1 [ 2658s] KSYMS .tmp_vmlinux.kallsyms1.S [ 2660s] AS .tmp_vmlinux.kallsyms1.S [ 2663s] LD .tmp_vmlinux.kallsyms2 [ 2669s] KSYMS .tmp_vmlinux.kallsyms2.S [ 2672s] AS .tmp_vmlinux.kallsyms2.S [ 2674s] LD vmlinux [ 2703s] BTFIDS vmlinux [ 2703s] FAILED: load BTF from vmlinux: No such file or directory [ 2703s] make[1]: *** [/home/abuild/rpmbuild/BUILD/kernel-default-5.14.0/linux-5.14/Makefile:1200: vmlinux] Error 255 [ 2703s] make[1]: *** Deleting file 'vmlinux' [ 2704s] make: *** [../Makefile:220: __sub-make] Error 2
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c2
--- Comment #2 from Shung-Hsi Yu shung-hsi.yu@suse.com --- Seems to build with cross-arm-gcc7-7.5.0+r278197 and dwarves/pahole-1.22 on my Tumbleweed machine.
The error probably comes from pahole, maybe the version is too old?
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c3
Takashi Iwai tiwai@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msuchanek@suse.com
--- Comment #3 from Takashi Iwai tiwai@suse.com --- (In reply to Shung-Hsi Yu from comment #2)
The error probably comes from pahole, maybe the version is too old?
That's my suspect, too. SUSE:SLE-15-SP4:GA/dwarves is 1.21+git177.1ef87b2, and this might miss something that has been fixed in 1.22 release.
I've been building a test kernel in IBS home:tiwai:sle15-sp4-kernel repo with dwarves-1.22 package, but the build takes long...
Adding Michal to Cc.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c4
--- Comment #4 from Michal Suchanek msuchanek@suse.com --- Adding dwarves 1.22 in any case.
It seems the repository has been rebased so I don't have a clear idea what changed since the snapshot we are using.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c5
--- Comment #5 from Takashi Iwai tiwai@suse.com --- The build in IBS home:tiwai:sle15-sp4-kernel looks good, so dwarves-1.2.2 seems fixing the problem.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c6
Michal Suchanek msuchanek@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Michal Suchanek msuchanek@suse.com --- Thanks for testing
We should get dwarves 1.22 soon.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c7
--- Comment #7 from Guillaume GARDET guillaume.gardet@arm.com --- (In reply to Michal Suchanek from comment #6)
Thanks for testing
We should get dwarves 1.22 soon.
dwarves 1.22 landed yesterday, but a rebuild of Kernel:SLE15-SP4/kernel-default for armv7 must be triggered.
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c8
--- Comment #8 from Takashi Iwai tiwai@suse.com --- (In reply to Guillaume GARDET from comment #7)
(In reply to Michal Suchanek from comment #6)
Thanks for testing
We should get dwarves 1.22 soon.
dwarves 1.22 landed yesterday, but a rebuild of Kernel:SLE15-SP4/kernel-default for armv7 must be triggered.
The update of KOTD happens regularly once per day on OBS, so it'll be done in today or tomorrow :)
https://bugzilla.suse.com/show_bug.cgi?id=1190340 https://bugzilla.suse.com/show_bug.cgi?id=1190340#c11
--- Comment #11 from Swamp Workflow Management swamp@suse.de --- openSUSE-RU-2022:10114-1: An update that has three recommended fixes and contains two features can now be installed.
Category: recommended (low) Bug References: 1188419,1188420,1190340 CVE References: JIRA References: SLE-17288,SLE-18805 Sources used: openSUSE Backports SLE-15-SP3 (src): dwarves-1.19-bp153.2.2.1, dwarves-1.22-bp153.2.3.1
kernel-bugs@lists.opensuse.org