Bug 1216042

Summary: Kernels fail to build in Kernel:stable:Backport
Product: [openSUSE] openSUSE Distribution Reporter: Manfred Hollstein <manfred.h>
Component: KernelAssignee: Jan Engelhardt <jengelh>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: jslaby, manfred.h, msuchanek, opensuse
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Manfred Hollstein 2023-10-09 08:25:17 UTC
The recently updated binutils in openSUSE_Leap_15.4 generate new DT_ tags which dwarves does not know about:

[ 1122s] Unsupported DW_TAG_unspecified_type(0x3b)
[ 1122s] Encountered error while encoding BTF.

osc branch --nodevelproject openSUSE:Factory dwarves Kernel:stable:Backport

would probably solve this issue.
Comment 1 Jiri Slaby 2023-10-09 08:58:32 UTC
IMO dwarves should be updated to 1.25 in Leap, so that it can handle updated tags which the new binutils generate.
Comment 2 Jiri Slaby 2023-10-09 09:04:15 UTC
(Forgot to note that I temporarily worked around this by linking dwarves from Factory (1.25) to Kernel:stable:Backport.)
Comment 3 Michal Suchanek 2023-10-09 09:44:20 UTC
dwarves is part of SLE so it needs to be updated there, and SLE does not have the required libraries for that.

The current dwarves can be only built with vendored libbpf.
Comment 5 Jiri Slaby 2023-10-10 10:43:47 UTC
(In reply to Michal Suchanek from comment #3)
> dwarves is part of SLE so it needs to be updated there, and SLE does not
> have the required libraries for that.

OTOH 1.25 builds fine in Kernel:stable:Backport, i.e. against Leap:15.5:Update (it was :15.4: yesterday before Takashi did the switch and was OK too). I didn't check SLE, but does Leap have enough and SLE not?
Comment 6 Michal Suchanek 2023-10-10 11:29:22 UTC
No, it's built with vendored libbpf which probably works but is unfit for releasing in SLE.
Comment 8 Andreas Stieger 2024-04-06 06:35:29 UTC
*** Bug 1222388 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Stieger 2024-04-06 06:35:57 UTC
Seen on 15.5
Comment 10 Bob Goddard 2024-04-10 14:14:49 UTC
This is also a problem in 15.5.

Is this going to be fixed, or do we have to wait until 16 which is over a year away?
Comment 11 Michal Suchanek 2024-04-10 14:22:43 UTC
dwarves are updated in 15.6
Comment 12 Bob Goddard 2024-05-08 12:14:20 UTC
(In reply to Michal Suchanek from comment #11)
> dwarves are updated in 15.6

I do not think it is acceptable that we have to wait until 15.6 for a fix.
Comment 13 Bob Goddard 2024-05-09 13:55:03 UTC
(In reply to Bob Goddard from comment #12)
> (In reply to Michal Suchanek from comment #11)
> > dwarves are updated in 15.6
> 
> I do not think it is acceptable that we have to wait until 15.6 for a fix.

It is NOT acceptable that this issue is not being fixed.

The inability to build a kernel should not be left until 15.6.
Comment 14 Michal Suchanek 2024-05-09 13:59:54 UTC
You can install the build tools from Kernel:stable:Backport project as well as the prebuilt kernels.

In 15.6 dwarves is new enough to build the upstream kernel out of the box, for now.
Comment 15 Bob Goddard 2024-05-09 14:09:11 UTC
(In reply to Michal Suchanek from comment #14)
> You can install the build tools from Kernel:stable:Backport project as well
> as the prebuilt kernels.
> 
> In 15.6 dwarves is new enough to build the upstream kernel out of the box,
> for now.

That is NOT acceptable.

We should not have to go through hoops & I am sure as heck NOT going to install a whole bunch of other packages..

I just tried to install from https://download.opensuse.org/repositories/Kernel:/stable:/Backport/standard/aarch64/ & there is no build tools or any dwarves package listed.