openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
19.59k stars 10.24k forks source link

kmod-sched-bpf missing act_bpf.ko #16071

Open hack3ric opened 1 month ago

hack3ric commented 1 month ago

Describe the bug

When building OpenWrt from main with BPF and DEBUG_INFO_BTF enabled, kmod-sched-bpf failed to build because act_bpf.ko was missing. However, cls_bpf.ko exists and builds successfully.

ERROR: module '/home/hacker/Projects/3rdparty/openwrt/build_dir/target-aarch64_generic_musl/linux-armsr_armv8/linux-6.6.43/net/sched/act_bpf.ko' is missing.
make[3]: *** [modules/netsupport.mk:807: /home/hacker/Projects/3rdparty/openwrt/bin/targets/armsr/armv8/packages/kmod-sched-bpf_6.6.43-r1_aarch64_generic.ipk] Error 1
make[3]: Leaving directory '/home/hacker/Projects/3rdparty/openwrt/package/kernel/linux' 
time: package/kernel/linux/compile#1.56#0.22#1.76
    ERROR: package/kernel/linux failed to build.

OpenWrt version

d604b2699b6015f99ff194b34f532958bde7d442

OpenWrt release

SNAPSHOT

OpenWrt target/subtarget

armsr/armv8

Device

QEMU

Image kind

Self-built image

Steps to reproduce

  1. Clone the project
  2. Apply the diffconfig below
  3. make -j$(nproc)

Actual behaviour

Image building failed at Linux and kmod-sched-bpf

Expected behaviour

Image builds successfully

Additional info

mimic and kmod-mimic in the following diffconfig refers to my own package, which depends on kmod-sched-bpf.

Diffconfig

CONFIG_TARGET_armsr=y
CONFIG_TARGET_armsr_armv8=y
CONFIG_TARGET_armsr_armv8_DEVICE_generic=y
CONFIG_DEVEL=y
CONFIG_BPF_TOOLCHAIN_HOST=y
CONFIG_BPF_TOOLCHAIN_HOST_PATH=""
# CONFIG_BPF_TOOLCHAIN_NONE is not set
CONFIG_DWARVES=y
CONFIG_HAS_BPF_TOOLCHAIN=y
CONFIG_KERNEL_DEBUG_INFO_BTF=y
CONFIG_KERNEL_DEBUG_INFO_BTF_MODULES=y
# CONFIG_KERNEL_DEBUG_INFO_REDUCED is not set
CONFIG_KERNEL_MODULE_ALLOW_BTF_MISMATCH=y
CONFIG_PACKAGE_kmod-mimic=y
CONFIG_PACKAGE_kmod-sched-bpf=y
CONFIG_PACKAGE_libbpf=y
CONFIG_PACKAGE_libelf=y
CONFIG_PACKAGE_libffi=y
CONFIG_PACKAGE_mimic=y
CONFIG_PACKAGE_zlib=y
CONFIG_USE_LLVM_HOST=y

Terms

github-actions[bot] commented 1 month ago

Invalid Version reported. `` Is this from a clean repository?

github-actions[bot] commented 1 month ago

Invalid Release reported. `` Is this from a clean repository?

github-actions[bot] commented 1 month ago

Invalid Target/Subtarget reported. `` Is this from a supported device?

rx78gp01 commented 1 month ago

your config is missing kmod-sched-core.

hack3ric commented 1 month ago

Then it should be added to sched-bpf's dependencies? If it is I'll submit a PR.