The assembly is not implemented on the kmod-amneziawg package

OpenWRT 23.05.3 (OS Ubuntu 22.04
Prepare on:
Operating System: Ubuntu 22.04.4 LTS
Kernel: Linux 5.15.0-113-generic
Architecture: x86-64

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev libssl-dev \
python3-setuptools rsync swig unzip zlib1g-dev file wget
mkdir ~/openwrt-amneziawg/
cd ~/openwrt-amneziawg/
wget https://downloads.openwrt.org/releases/23.05.3/targets/ramips/mt7621/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64.tar.xz
tar xvf openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64.tar.xz
cd openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/
echo 'src-git amnezia https://github.com/amnezia-vpn/amneziawg-openwrt' >> feeds.conf.default

./scripts/feeds update -a

./scripts/feeds install amneziawg-tools kmod-amneziawg luci-proto-amneziawg

Packages amneziawg-tools luci-proto-amneziawg were assembled without problems
The assembly is not implemented on the kmod-amneziawg package

make -j1 V=s package/feeds/amnezia/kmod-amneziawg/compile

vm-ubnt2204-wrt:~/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64$ make -j1 V=s package/feeds/amnezia/kmod-amneziawg/compile
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'eip197-mini-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2x-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8152-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'amdgpu-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'radeon-firmware', which does not exist
make[2]: Entering directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/scripts/config'
tmp/.config-package.in:70:warning: ignoring type redefinition of 'PACKAGE_libc' from 'bool' to 'tristate'
tmp/.config-package.in:98:warning: ignoring type redefinition of 'PACKAGE_libgcc' from 'bool' to 'tristate'
tmp/.config-package.in:219:warning: ignoring type redefinition of 'PACKAGE_libpthread' from 'bool' to 'tristate'
tmp/.config-package.in:401:warning: ignoring type redefinition of 'PACKAGE_rpcd' from 'bool' to 'tristate'
tmp/.config-package.in:416:warning: ignoring type redefinition of 'PACKAGE_rpcd-mod-file' from 'bool' to 'tristate'
tmp/.config-package.in:428:warning: ignoring type redefinition of 'PACKAGE_rpcd-mod-iwinfo' from 'bool' to 'tristate'
tmp/.config-package.in:453:warning: ignoring type redefinition of 'PACKAGE_rpcd-mod-ucode' from 'bool' to 'tristate'
tmp/.config-package.in:466:warning: ignoring type redefinition of 'PACKAGE_ubus' from 'bool' to 'tristate'
tmp/.config-package.in:478:warning: ignoring type redefinition of 'PACKAGE_ubusd' from 'bool' to 'tristate'
tmp/.config-package.in:489:warning: ignoring type redefinition of 'PACKAGE_uci' from 'bool' to 'tristate'
tmp/.config-package.in:503:warning: ignoring type redefinition of 'PACKAGE_libiwinfo-data' from 'bool' to 'tristate'
tmp/.config-package.in:659:warning: ignoring type redefinition of 'PACKAGE_ucode' from 'bool' to 'tristate'
tmp/.config-package.in:682:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-fs' from 'bool' to 'tristate'
tmp/.config-package.in:703:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-math' from 'bool' to 'tristate'
tmp/.config-package.in:713:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-nl80211' from 'bool' to 'tristate'
tmp/.config-package.in:735:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-rtnl' from 'bool' to 'tristate'
tmp/.config-package.in:757:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-ubus' from 'bool' to 'tristate'
tmp/.config-package.in:769:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-uci' from 'bool' to 'tristate'
tmp/.config-package.in:780:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-uloop' from 'bool' to 'tristate'
tmp/.config-package.in:796:warning: ignoring type redefinition of 'PACKAGE_libblobmsg-json' from 'bool' to 'tristate'
tmp/.config-package.in:807:warning: ignoring type redefinition of 'PACKAGE_libiwinfo' from 'bool' to 'tristate'
tmp/.config-package.in:821:warning: ignoring type redefinition of 'PACKAGE_libjson-c' from 'bool' to 'tristate'
tmp/.config-package.in:844:warning: ignoring type redefinition of 'PACKAGE_liblucihttp' from 'bool' to 'tristate'
tmp/.config-package.in:864:warning: ignoring type redefinition of 'PACKAGE_liblucihttp-ucode' from 'bool' to 'tristate'
tmp/.config-package.in:875:warning: ignoring type redefinition of 'PACKAGE_libnl-tiny' from 'bool' to 'tristate'
tmp/.config-package.in:884:warning: ignoring type redefinition of 'PACKAGE_libubox' from 'bool' to 'tristate'
tmp/.config-package.in:904:warning: ignoring type redefinition of 'PACKAGE_libubus' from 'bool' to 'tristate'
tmp/.config-package.in:925:warning: ignoring type redefinition of 'PACKAGE_libuci' from 'bool' to 'tristate'
tmp/.config-package.in:946:warning: ignoring type redefinition of 'PACKAGE_libucode' from 'bool' to 'tristate'
tmp/.config-package.in:956:warning: ignoring type redefinition of 'PACKAGE_rpcd-mod-luci' from 'bool' to 'tristate'
tmp/.config-package.in:974:warning: ignoring type redefinition of 'PACKAGE_luci-base' from 'bool' to 'tristate'
tmp/.config-package.in:1011:warning: ignoring type redefinition of 'LUCI_LANG_ar' from 'bool' to 'tristate'
tmp/.config-package.in:1014:warning: ignoring type redefinition of 'LUCI_LANG_bg' from 'bool' to 'tristate'
tmp/.config-package.in:1017:warning: ignoring type redefinition of 'LUCI_LANG_bn_BD' from 'bool' to 'tristate'
tmp/.config-package.in:1020:warning: ignoring type redefinition of 'LUCI_LANG_ca' from 'bool' to 'tristate'
tmp/.config-package.in:1023:warning: ignoring type redefinition of 'LUCI_LANG_cs' from 'bool' to 'tristate'
tmp/.config-package.in:1026:warning: ignoring type redefinition of 'LUCI_LANG_da' from 'bool' to 'tristate'
tmp/.config-package.in:1029:warning: ignoring type redefinition of 'LUCI_LANG_de' from 'bool' to 'tristate'
tmp/.config-package.in:1032:warning: ignoring type redefinition of 'LUCI_LANG_el' from 'bool' to 'tristate'
tmp/.config-package.in:1035:warning: ignoring type redefinition of 'LUCI_LANG_es' from 'bool' to 'tristate'
tmp/.config-package.in:1038:warning: ignoring type redefinition of 'LUCI_LANG_fi' from 'bool' to 'tristate'
tmp/.config-package.in:1041:warning: ignoring type redefinition of 'LUCI_LANG_fr' from 'bool' to 'tristate'
tmp/.config-package.in:1044:warning: ignoring type redefinition of 'LUCI_LANG_he' from 'bool' to 'tristate'
tmp/.config-package.in:1047:warning: ignoring type redefinition of 'LUCI_LANG_hi' from 'bool' to 'tristate'
tmp/.config-package.in:1050:warning: ignoring type redefinition of 'LUCI_LANG_hu' from 'bool' to 'tristate'
tmp/.config-package.in:1053:warning: ignoring type redefinition of 'LUCI_LANG_it' from 'bool' to 'tristate'
tmp/.config-package.in:1056:warning: ignoring type redefinition of 'LUCI_LANG_ja' from 'bool' to 'tristate'
tmp/.config-package.in:1059:warning: ignoring type redefinition of 'LUCI_LANG_ko' from 'bool' to 'tristate'
tmp/.config-package.in:1062:warning: ignoring type redefinition of 'LUCI_LANG_lt' from 'bool' to 'tristate'
tmp/.config-package.in:1065:warning: ignoring type redefinition of 'LUCI_LANG_mr' from 'bool' to 'tristate'
tmp/.config-package.in:1068:warning: ignoring type redefinition of 'LUCI_LANG_ms' from 'bool' to 'tristate'
tmp/.config-package.in:1071:warning: ignoring type redefinition of 'LUCI_LANG_nb_NO' from 'bool' to 'tristate'
tmp/.config-package.in:1074:warning: ignoring type redefinition of 'LUCI_LANG_nl' from 'bool' to 'tristate'
tmp/.config-package.in:1077:warning: ignoring type redefinition of 'LUCI_LANG_pl' from 'bool' to 'tristate'
tmp/.config-package.in:1080:warning: ignoring type redefinition of 'LUCI_LANG_pt' from 'bool' to 'tristate'
tmp/.config-package.in:1083:warning: ignoring type redefinition of 'LUCI_LANG_pt_BR' from 'bool' to 'tristate'
tmp/.config-package.in:1086:warning: ignoring type redefinition of 'LUCI_LANG_ro' from 'bool' to 'tristate'
tmp/.config-package.in:1089:warning: ignoring type redefinition of 'LUCI_LANG_ru' from 'bool' to 'tristate'
tmp/.config-package.in:1092:warning: ignoring type redefinition of 'LUCI_LANG_sk' from 'bool' to 'tristate'
tmp/.config-package.in:1095:warning: ignoring type redefinition of 'LUCI_LANG_sv' from 'bool' to 'tristate'
tmp/.config-package.in:1098:warning: ignoring type redefinition of 'LUCI_LANG_tr' from 'bool' to 'tristate'
tmp/.config-package.in:1101:warning: ignoring type redefinition of 'LUCI_LANG_uk' from 'bool' to 'tristate'
tmp/.config-package.in:1104:warning: ignoring type redefinition of 'LUCI_LANG_vi' from 'bool' to 'tristate'
tmp/.config-package.in:1107:warning: ignoring type redefinition of 'LUCI_LANG_zh_Hans' from 'bool' to 'tristate'
tmp/.config-package.in:1110:warning: ignoring type redefinition of 'LUCI_LANG_zh_Hant' from 'bool' to 'tristate'
tmp/.config-package.in:1476:warning: ignoring type redefinition of 'PACKAGE_cgi-io' from 'bool' to 'tristate'
tmp/.config-package.in:1518:warning: ignoring type redefinition of 'PACKAGE_iwinfo' from 'bool' to 'tristate'
tmp/.config-package.in:1528:warning: ignoring type redefinition of 'PACKAGE_jshn' from 'bool' to 'tristate'
tmp/.config-package.in:1596:warning: ignoring type redefinition of 'PACKAGE_libjson-script' from 'bool' to 'tristate'
tmp/.config-package.in:1606:warning: ignoring type redefinition of 'PACKAGE_ucode-mod-html' from 'bool' to 'tristate'
Config-build.in:3095:warning: defaults for choice values not supported
Config-build.in:3099:warning: defaults for choice values not supported
Config-build.in:3103:warning: defaults for choice values not supported
#
# No change to .config
#
make[1]: Entering directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64'
make[2]: Entering directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/package/kernel/linux'
echo "kernel" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-acompress" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-crc32c" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-hash" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
WARNING: kmod-crypto-hw-padlock is not available in the kernel config - generating empty package
WARNING: kmod-hwmon-pwmfan is not available in the kernel config - generating empty package
WARNING: kmod-i2c-pxa is not available in the kernel config - generating empty package
echo "kmod-leds-gpio" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc-ccitt" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc32c" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-lzo" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
WARNING: kmod-ixgbevf is not available in the kernel config - generating empty package
WARNING: kmod-iavf is not available in the kernel config - generating empty package
echo "kmod-nf-reject" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-reject6" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack6" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log6" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-nat" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-flow" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nfnetlink" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-core" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-nat" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-offload" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-fib" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-slhc" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-ppp" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppox" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppoe" >> /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
WARNING: kmod-parport-pc is not available in the kernel config - generating empty package
WARNING: kmod-thermal is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-core is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-realtek is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-cmedia is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-analog is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-idt is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-si3054 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-cirrus is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-ca0110 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-ca0132 is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-conexant is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-via is not available in the kernel config - generating empty package
WARNING: kmod-sound-hda-codec-hdmi is not available in the kernel config - generating empty package
touch -r /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/packages/.built /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/packages/.autoremove 2>/dev/null >/dev/null
find /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/packages -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir'  -print0 | xargs -r -0 rm -rf
make[2]: [Makefile:65: compile] Error 1 (ignored)
make[2]: Leaving directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/package/kernel/linux'
time: package/kernel/linux/compile#1.94#0.34#2.09
make[2]: Entering directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/feeds/amnezia/kmod-amneziawg'
touch /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/kmod-amneziawg-0.0.1/.prepared_abb2e987509e7ab2af100eb3c693af8a_18f1e190c5d53547fed41a3eaa76e9e9_check
cp -fr /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.150/drivers/net/wireguard/{*.c,*.h,selftest/} /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/kmod-amneziawg-0.0.1
cp: cannot stat '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.150/drivers/net/wireguard/*.c': No such file or directory
cp: cannot stat '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.150/drivers/net/wireguard/*.h': No such file or directory
cp: cannot stat '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.150/drivers/net/wireguard/selftest/': No such file or directory
make[2]: *** [Makefile:48: /home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/kmod-amneziawg-0.0.1/.prepared_abb2e987509e7ab2af100eb3c693af8a_18f1e190c5d53547fed41a3eaa76e9e9] Error 1
make[2]: Leaving directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/feeds/amnezia/kmod-amneziawg'
time: package/feeds/amnezia/kmod-amneziawg/compile#0.59#0.14#0.56
    ERROR: package/feeds/amnezia/kmod-amneziawg failed to build.
make[1]: *** [package/Makefile:129: package/feeds/amnezia/kmod-amneziawg/compile] Error 1
make[1]: Leaving directory '/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64'
make: *** [/home/vech/openwrt-amneziawg/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64/include/toplevel.mk:225: package/feeds/amnezia/kmod-amneziawg/compile] Error 2

Where did I go wrong?

are you sure you've fulfilled all requirements for building ?

Adding packages
./scripts/feeds install amneziawg-tools kmod-amneziawg luci-proto-amneziawg wireguard-tools luci-proto-wireguard kmod-wireguard
Doesn't change the error

you're not answering the question.

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem

https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem#debianubuntumint

From here I took instructions for installing all the necessary dependencies

Yes, I met all the requirements, I used the same environment to build the firmware earlier

This folder is missing, where can I get it from? shouldn't it be in the downloaded https://downloads.openwrt.org/releases/23.05.3/targets/ramips/mt7621/openwrt-sdk-23.05.3-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64.tar .xz

Or did I forget some command to create this folder with kernel headers?

You can't build kmod-amneziawg with SDK, you need to use the toolchain. There's a PR for kmod-amneziawg in OpenWrt repo and it's stalled because it doesn't get built with CI either.

I'm already trying to build the full firmware (not SDK)
Still an error about the absence of chacha-mips.ko