Help on compiling OpenWrt with Unknown package 'kernel'

why did this happen?

mz@server:~/openwrt$ /home/mz/openwrt/staging_dir/host/bin/opkg --offline-root /home/mz/openwrt/build_dir/target-arm_cortex-a9+neon_musl_eabi/root-imx6 --force-postinstall --add-dest root:/ --add-arch all:100 --add-arch arm_cortex-a9_neon:200 install /home/mz/openwrt/bin/targets/imx6/generic/packages/kernel_5.4.215-1-5e1afed82e767f67b3baf09c8fb32f8f_arm_cortex-a9_neon.ipk --verbosity=4
opkg_install_cmd: /home/mz/openwrt/bin/targets/imx6/generic/packages/kernel_5.4.215-1-5e1afed82e767f67b3baf09c8fb32f8f_arm_cortex-a9_neon.ipk
pkg_init_from_file: applying abpkg flag to /home/mz/openwrt/bin/targets/imx6/generic/packages/kernel_5.4.215-1-5e1afed82e767f67b3baf09c8fb32f8f_arm_cortex-a9_neon.ipk
opkg_prepare_url_for_install: Package kernel provided by hand (/home/mz/openwrt/bin/targets/imx6/generic/packages/kernel_5.4.215-1-5e1afed82e767f67b3baf09c8fb32f8f_arm_cortex-a9_neon.ipk).
flag_related_packages: propagating pkg flag to dependent abpkg libc
pkg_vec_insert_merge: Adding new pkg=kernel version=5.4.215-1 arch=arm_cortex-a9_neon.
pkg_hash_load_feeds:
pkg_hash_load_package_details_helper: found yet incomplete flagged abpkg libc
pkg_hash_load_package_details: Found 1 packages requiring details, reloading feeds
pkg_hash_load_feeds:
pkg_hash_load_package_details_helper: skipping already seen flagged abpkg libc
pkg_hash_load_status_files:
pkg_info_preinstall_check: Updating file owner list.
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel:
pkg_hash_fetch_best_installation_candidate: Adding kernel to providers.
pkg_hash_fetch_best_installation_candidate: kernel arch=arm_cortex-a9_neon arch_priority=200 version=5.4.215-1.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
Unknown package 'kernel'.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
write_status_files_if_changed: Nothing to be done.
hash_table: pkg-hash, 24576 bytes
        n_buckets=1024, n_elements=2, n_collisions=0
        max_bucket_len=0, n_used_buckets=2, ave_bucket_len=1.00
        n_hits=3, n_misses=3
hash_table: file-hash, 24576 bytes
        n_buckets=1024, n_elements=0, n_collisions=0
        max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
        n_hits=0, n_misses=0
hash_table: obs-file-hash, 1536 bytes
        n_buckets=64, n_elements=0, n_collisions=0
        max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
        n_hits=0, n_misses=0
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libc for kernel
 * pkg_hash_fetch_best_installation_candidate: Packages for kernel found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kernel.
mz@server:~/openwrt$

Not enough information provided to understand what you are trying to do.

What is your goal and how are you trying to achieve it? What architecture? any info at all would get you more replies.

1 Like

:slight_smile:
Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-58-generic x86_64)
with https://openwrt.org/docs/guide-developer/build-system/install-buildsystem
and gcc-multilib g++-multilib

not root, no sudo

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
git checkout openwrt-21.02
git checkout v21.02.5
git pull
echo 'src-git node https://github.com/nxhack/openwrt-node-packages.git;openwrt-21.02' >> feeds.conf.default
./scripts/feeds update -a -i
./scripts/feeds install -a -f
./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-*
./scripts/feeds install -a -p node
make menuconfig

target -> imx6
subtarget -> multi profile
languages -> node.js -> node-zigbee2mqtt
save, exit
make

I will try to repeat it again in another path

Ok, so does your build environment work without including the 3rd party feed?

If so, contact the maintainer to find out what their feed has broken.

Also, v21 is getting old, you should build against v22 as a minimum or master

1 Like

node-packages only, not kernel

make[3] -C feeds/node/node compile
make[3] -C feeds/node/node host-compile
make[3] -C feeds/node/node-bufferutil compile
make[3] -C feeds/node/node-utf-8-validate compile
make[3] -C feeds/node/node-clean-modules host-compile
make[3] -C feeds/node/node-zigbee2mqtt compile

My comment remains, try with a clean, fresh git pull from the official openwrt git, to make certain your build environment is working

2 Likes

v.22.03.03 compiled fine
with the 3rd party feed
rm -rf v.21 :slight_smile:

Congratulations