Skip to contentSkip to conversation

linux-bb.org: work around for too few arguments to function init_disassemble_info() error

PATCH In review Ryan Eatmon 2 participants 3 messages Feb 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-bb.org: work around for too few arguments to function init_disassemble_info() error

binutils 2.39 changed the signature of init_disassemble_info(), which now causes perf and bpftool to fail to compile.

Relevant binutils commit: [1]

There is a proper fix in development upstream[2].
This is a work-around for older kernels.

Inspired by a patch by Anton Antonov to fix this issue on meta-arm kernels. [3]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
[2] https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/
[3] https://patchwork.yoctoproject.org/project/arm/patch/[email protected]/#5104

---
 meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +2 -1
index 2e0f2448..35fb40cd 100644
@@ -25,7 +25,8 @@ SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf"
 PV:k3 = "5.10.153+git${SRCPV}"
 BRANCH:k3 = "5.10-arm64"
 
-SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}"
+SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
+           file://init_disassemble_info-signature-changes-causes-compile-failures.patch"
 
 DEFCONFIG_NAME = "bb.org_defconfig"
 KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 25 lines · Ryan Eatmon via lists.yoctoproject.org

binutils 2.39 changed the signature of init_disassemble_info(), which now causes perf and bpftool to fail to compile.

Relevant binutils commit: [1]

There is a proper fix in development upstream[2].
This is a work-around for older kernels.

Inspired by a patch by Anton Antonov to fix this issue on meta-arm kernels. [3]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
[2] https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/
[3] https://patchwork.yoctoproject.org/project/arm/patch/[email protected]/#5104

---
 meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +0 -0
index 2e0f2448..35fb40cd 100644

meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf" · line 29

Quoted 6 lines
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +2 -1
@@ -25,7 +25,8 @@ SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf"
 PV:k3 = "5.10.153+git${SRCPV}"
 BRANCH:k3 = "5.10-arm64"
 
-SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}"
+SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
+           file://init_disassemble_info-signature-changes-causes-compile-failures.patch"

Did you forget to add the patch?

Quoted 4 lines
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +0 -0
 DEFCONFIG_NAME = "bb.org_defconfig"
 KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
Signature · 1 line
2.17.1
#2 lore raw
Quoted 29 lines · Denys Dmytriyenko
Quoted 28 lines · Ryan Eatmon via lists.yoctoproject.org

binutils 2.39 changed the signature of init_disassemble_info(), which now causes perf and bpftool to fail to compile.

Relevant binutils commit: [1]

There is a proper fix in development upstream[2].
This is a work-around for older kernels.

Inspired by a patch by Anton Antonov to fix this issue on meta-arm kernels. [3]

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
[2] https://patchwork.kernel.org/project/netdevbpf/cover/[email protected]/
[3] https://patchwork.yoctoproject.org/project/arm/patch/[email protected]/#5104

---
  meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +0 -0
index 2e0f2448..35fb40cd 100644
@@ -25,7 +25,8 @@ SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf"
  PV:k3 = "5.10.153+git${SRCPV}"
  BRANCH:k3 = "5.10-arm64"
 
Quoted 5 lines

meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb SRCREV:k3 = "11ebcc09f32669fac8254dff56d500f86c4c2caf" · line 29

Quoted 3 lines
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +2 -1
-SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH}"
+SRC_URI = "git://git.beagleboard.org/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
+           file://init_disassemble_info-signature-changes-causes-compile-failures.patch"

Did you forget to add the patch?

No, the patch was introduced for the linux-ti-staging back in November. So the patch is already in the repo, this recipe just needs to include it in order to compile on master.

Quoted 5 lines
Quoted 5 lines
meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +0 -0
  DEFCONFIG_NAME = "bb.org_defconfig"
  KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS