Skip to content

TOOL-32499 linux-kernel-generic build fails on resolute: install-tools runs the bpftool doc step with do_tools_common=false - #442

Draft
dbjwhs-perforce wants to merge 1 commit into
os-upgradefrom
dlpx/pr/dbjwhs-perforce/507f719b-338a-476c-89d8-6dc6804d2fdb
Draft

dbjwhs-perforce wants to merge 1 commit into
os-upgradefrom
dlpx/pr/dbjwhs-perforce/507f719b-338a-476c-89d8-6dc6804d2fdb

Conversation

@dbjwhs-perforce

Copy link
Copy Markdown

Problem

The os-upgrade build of linux-kernel-generic on Ubuntu 26.04 (resolute, Ubuntu-7.0.0-29.29) fails in the build stage:

make -C .../debian/build/tools/tools/bpf/bpftool doc
make[1]: *** .../debian/build/tools/tools/bpf/bpftool: No such file or directory.  Stop.
make: *** [debian/rules.d/3-binary-indep.mk:82: install-tools] Error 2

kernel_build passes do_tools_common=false to every kernel, because linux-tools-common is installed from the package mirror. In the resolute tree, the install-tools bpftool block (do_linux_tools and do_tools_bpftool) no longer sits inside the do_tools_noble_hwe guard that the noble tree has, and it is outside the do_tools_common block. debian.master/rules.d/amd64.mk sets do_tools_bpftool = true, so the block runs, but the debian/build/tools tree it reads is only created when do_tools_common=true.

The other flavors do not hit this: azure passes do_tools_common=true itself, and the aws, gcp and oracle trees do not enable do_tools_bpftool. The build linux-kernel-generic on os-upgrade nightly also failed on 2026-12-01.

Solution

Pass do_tools_bpftool=false for the generic flavor in packages/linux-kernel-generic/config.delphix.sh. Nothing in appliance-build or delphix-platform references the bpftool package, so the build only drops a package that nothing installs.

Testing Done

  • shellcheck -x and shfmt -d on the changed file: no findings.
  • Reproduced the original failure on a DCoA dlpx-internal-buildserver-develop clone with the replayed generic patchset (linux-kernel-generic PR 65 head, tag Ubuntu-7.0.0-29.29): buildpkg.sh -l linux-kernel-generic failed in install-tools with the error above, about an hour into the build stage.
  • Re-ran the same build with this change on that VM. It passed install-tools (no bpftool doc step, no error) and is compiling the kernel. The final result will be recorded here when the build finishes.
  • Not tested: the nightly update-package and build-package Jenkins jobs, and the other flavors (the change is limited to the generic config).

…s runs the bpftool doc step with do_tools_common=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant