Collected errors: * pkg_hash_check_unresolved: cannot find dependency kernel

Hi all, When I try to clone a new view and start the build i'm getting the below error, I also have noticed that this errror is being seen when I execute make kernel_menuconfig and later put a build (not only this case but also this is happening in random times). I don't know what's exactly causing this error, but once we do a make clean and build again this error is getting resolved. Can anyone please tell what the reason for this error might be and is there anything related to do with config files to resolve this? Thanks in advance.

Error:

Configuring kmod-cfg80211.
Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-input-core
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-input-core found, but incompatible with the architectures configured
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-button-hotplug:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package kmod-button-hotplug.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-scsi-core
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-scsi-core found, but incompatible with the architectures configured
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ata-core
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ata-core found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ata-core.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ata-ahci
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ata-ahci found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ata-ahci.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package kmod-scsi-core.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-leds-gpio
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-leds-gpio found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-leds-gpio.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-lib-crc-ccitt
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-crc-ccitt found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-lib-crc-ccitt.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-reject
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-reject found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-reject.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-reject6
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-reject6 found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-reject6.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-ipt
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipt found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-ipt.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-ipt6
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-ipt6 found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-ipt6.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ipt-core
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-core found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ipt-core.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-conntrack
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-conntrack found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-conntrack.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-conntrack6
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-conntrack6 found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-conntrack6.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-nat
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-nat found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-nat.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nf-flow
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-flow found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nf-flow.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ipt-conntrack
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-conntrack found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ipt-conntrack.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ipt-offload
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-offload found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ipt-offload.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ipt-nat
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-nat found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ipt-nat.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ip6tables
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ip6tables found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ip6tables.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-slhc
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-slhc found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-slhc.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-ppp
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-ppp found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-ppp.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-pppox
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-pppox found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-pppox.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-pppoe
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-pppoe found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-pppoe.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-nls-base
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nls-base found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-nls-base.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-usb-core
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-core found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-usb-core.
  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015) for kmod-usb3
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb3 found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package kmod-usb3.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package iptables.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for ip6tables:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package ip6tables.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for firewall:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package firewall.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for ppp:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package ppp.
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for ppp-mod-pppoe:
  • kernel (= 5.4.164-1-8a2cd101258d501c6f2932f17b897015)
    
  • opkg_install_cmd: Cannot install package ppp-mod-pppoe.
    package/Makefile:94: recipe for target 'package/install' failed
    make[2]: *** [package/install] Error 255
    make[2]: Leaving directory '/home/administrator/New_openwrt/openwrt_packages/openwrt-21.02'
    package/Makefile:138: recipe for target '/home/administrator/New_openwrt/openwrt_packages/openwrt-21.02/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_install' failed
    make[1]: *** [/home/administrator/New_openwrt/openwrt_packages/openwrt-21.02/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/administrator/New_openwrt/openwrt_packages/openwrt-21.02'
    /home/administrator/New_openwrt/openwrt_packages/openwrt-21.02/include/toplevel.mk:239: recipe for target 'world' failed
    make: *** [world] Error 2
3 Likes

If you modify kernel config, you need to recompile all modules.

Make clean is the cure like you have noticed.

All kernel stuff should be compiled on the same build run with same config for all modules. Other you get version checksum hash errors.

2 Likes