Skip to content

Conversation

@Zapper9982
Copy link

This PR majorly refactors the Lunatik OpenWrt package to support modular selection of features .

  1. Dynamically constructs EXTRA_KCONFIG based on the selected OpenWrt packages. This maps OpenWrt selection (CONFIG_PACKAGE_kmod-lunatik-) to the internal Lunatik Kconfig symbols (CONFIG_LUNATIK_).

  2. Temporarily pointed PKG_SOURCE_URL to a development fork (Zapper9982/lunatik) to verify the Kconfig integration

@Zapper9982 Zapper9982 marked this pull request as draft January 17, 2026 20:03
@Zapper9982
Copy link
Author

Proof of work :

image

@Zapper9982 Zapper9982 marked this pull request as ready for review January 17, 2026 22:34
@lneto lneto requested a review from marcelstanley January 18, 2026 12:38
@lneto
Copy link

lneto commented Jan 18, 2026

hey, @Zapper9982 did you try to build? it seems that autogen is not being called any longer..

du build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_sym.h
0	build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_sym.h

lunatik_sym.h is empty and I'm gettins this error..

ring@openwifi:~/openwrt$ make V=s package/feeds/luainkernel/lunatik/compile
WARNING: Makefile 'package/utils/audit/Makefile' has a dependency on 'libev', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libtirpc', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libtirpc', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/dome-telegraf/Makefile' has a build dependency on 'golang/host', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
make[2]: Entering directory '/home/ring/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/ring/openwrt/scripts/config'
make[1]: Entering directory '/home/ring/openwrt'
+ mkdir -p /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl
+ cd /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl
+ mkdir -p bin lib stamp usr/include usr/lib
mkdir -p /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/stamp
touch /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/.prepared
make[2]: Entering directory '/home/ring/openwrt/package/libs/toolchain'
echo "libc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.07#0.03#0.10
make[2]: Entering directory '/home/ring/openwrt/feeds/luainkernel/lang/lua5.4'
echo "liblua5.4" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/lua5.4.default.install
echo "lua5.4" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/lua5.4.default.install
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/lang/lua5.4'
time: package/feeds/luainkernel/lua5.4/compile#0.07#0.05#0.11
make[2]: Entering directory '/home/ring/openwrt/package/firmware/linux-firmware'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/ring/openwrt/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.08#0.02#0.10
make[2]: Entering directory '/home/ring/openwrt/package/kernel/gpio-button-hotplug'
echo "kmod-gpio-button-hotplug" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/gpio-button-hotplug.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/kernel/gpio-button-hotplug'
time: package/kernel/gpio-button-hotplug/compile#0.05#0.03#0.08
make[2]: Entering directory '/home/ring/openwrt/package/kernel/linux'
echo "kernel" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-aead" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ccm" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-cmac" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-crc32c" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ctr" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-gcm" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-gf128" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ghash" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-hash" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-hmac" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-manager" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-null" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-rng" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-geniv" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-seqiv" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha1" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha3" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha256" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha512" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-hwmon-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-leds-gpio" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc-ccitt" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc32c" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-reject" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-reject6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-ipt" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-ipt-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-nat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-flow" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-br-netfilter" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nfnetlink" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-bridge" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-nat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-offload" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-netdev" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-fib" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-compat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-slhc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-ppp" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppox" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppoe" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nls-base" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ledtrig-usbport" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ohci" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ehci" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb2" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#0.95#0.03#0.98
make[2]: Entering directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
LINUX_DIR=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86
mkdir -p /home/ring/openwrt/dl
SHELL= flock /home/ring/openwrt/tmp/.lunatik-3.6.4.tar.zst.flock -c '  	 /home/ring/openwrt/scripts/dl_github_archive.py --dl-dir="/home/ring/openwrt/dl" --url="https://github.com/Zapper9982/lunatik" --version="70187755" --subdir="lunatik-3.6.4" --source="lunatik-3.6.4.tar.zst" --hash="x" --submodules  || ( 	echo "Checking out files from the git repository..."; mkdir -p /home/ring/openwrt/tmp/dl && cd /home/ring/openwrt/tmp/dl && rm -rf lunatik-3.6.4 && [ \! -d lunatik-3.6.4 ] && git clone  https://github.com/Zapper9982/lunatik lunatik-3.6.4 && (cd lunatik-3.6.4 && git checkout 70187755) && export TAR_TIMESTAMP=`cd lunatik-3.6.4 && git log -1 --format='\''@%ct'\''` && echo "Generating formal git archive (apply .gitattributes rules)" && (cd lunatik-3.6.4 && git config core.abbrev 8 && git archive --format=tar HEAD --output=../lunatik-3.6.4.tar.git) && tar --ignore-failed-read -C lunatik-3.6.4 -f lunatik-3.6.4.tar.git -r .git .gitmodules 2>/dev/null && rm -rf lunatik-3.6.4 && mkdir lunatik-3.6.4 && tar -C lunatik-3.6.4 -xf lunatik-3.6.4.tar.git && (cd lunatik-3.6.4 && git submodule update --init --recursive --  && rm -rf .git .gitmodules) && echo "Packing checkout..." && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c lunatik-3.6.4 | 	zstd -T0 --ultra -20 -c > /home/ring/openwrt/tmp/dl/lunatik-3.6.4.tar.zst && mv /home/ring/openwrt/tmp/dl/lunatik-3.6.4.tar.zst /home/ring/openwrt/dl/ && rm -rf lunatik-3.6.4; );     '
lunatik-3.6.4.tar.zst: Download from https://github.com/Zapper9982/lunatik failed
lunatik-3.6.4.tar.zst: Requires sha256sum for verification
Checking out files from the git repository...
Cloning into 'lunatik-3.6.4'...
remote: Enumerating objects: 22800, done.
remote: Counting objects: 100% (378/378), done.
remote: Compressing objects: 100% (235/235), done.
remote: Total 22800 (delta 267), reused 143 (delta 143), pack-reused 22422 (from 4)
Receiving objects: 100% (22800/22800), 5.06 MiB | 53.37 MiB/s, done.
Resolving deltas: 100% (16880/16880), done.
Note: switching to '70187755'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

 git switch -c <new-branch-name>

Or undo this operation with:

 git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 70187755 Add config for LUNATIK_RUNTIME
Generating formal git archive (apply .gitattributes rules)
Submodule 'klibc' (https://github.com/luainkernel/klibc.git) registered for path 'klibc'
Submodule 'lua' (https://github.com/luainkernel/lua.git) registered for path 'lua'
Cloning into '/home/ring/openwrt/tmp/dl/lunatik-3.6.4/klibc'...
Cloning into '/home/ring/openwrt/tmp/dl/lunatik-3.6.4/lua'...
Submodule path 'klibc': checked out '24e0fc1b7248f92735e957d3f36670165b57ac34'
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Total 2 (delta 2), reused 2 (delta 2), pack-reused 0 (from 0)
Unpacking objects: 100% (2/2), 1.10 KiB | 1.10 MiB/s, done.
From https://github.com/luainkernel/lua
* branch              f3de931cba79196f9ab56256149b80140b178b5b -> FETCH_HEAD
Submodule path 'lua': checked out 'f3de931cba79196f9ab56256149b80140b178b5b'
Packing checkout...
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.prepared_06e0c20fe8731935c26e22483aaaf7ea_6664517399ebbbc92a37c5bb081b5c53_check
. /home/ring/openwrt/include/shell.sh; zstdcat /home/ring/openwrt/dl/lunatik-3.6.4.tar.zst | tar -C /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4
cd /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 && ./gensymbols.sh lua/lua.h lua/lauxlib.h lua/lualib.h > lunatik_sym.h
./gensymbols.sh: 6: -Ilua/: not found
cp /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Kbuild /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Makefile
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.prepared_06e0c20fe8731935c26e22483aaaf7ea_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.configured_*
rm -f /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.lunatik_installed
(cd /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/./; if [ -x ./configure ]; then find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.guess | xargs -r chmod u+w; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.guess | xargs -r -n1 cp --remove-destination /home/ring/openwrt/scripts/config.guess; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.sub | xargs -r chmod u+w; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.sub | xargs -r -n1 cp --remove-destination /home/ring/openwrt/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="mipsel-openwrt-linux-musl-ld.bfd" NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mips16 -minterlink-mips16 -Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" CPPFLAGS="-I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/usr/include -I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/include -I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/include/fortify " LDFLAGS="-L/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/usr/lib -L/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built_check
make -C /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86 M="/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4" EXTRA_CFLAGS="-Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" KBUILD_AFLAGS="-I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" KCFLAGS="-fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/ring/openwrt/staging_dir/host/include -I/home/ring/openwrt/staging_dir/hostpkg/include -I/home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Sun Apr 13 16:38:32 2025" KBUILD_BUILD_VERSION="0" KBUILD_HOSTLDFLAGS="-L/home/ring/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/gpio-button-hotplug.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/lunatik.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/mac80211.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/mt76.symvers" CC="mipsel-openwrt-linux-musl-gcc" KERNELRELEASE=6.6.86 CONFIG_LUNATIK=m CONFIG_LUNATIK_RUNTIME=y CONFIG_LUNATIK_RUN=m CONFIG_LUNATIK_DEVICE=m CONFIG_LUNATIK_LINUX=m CONFIG_LUNATIK_SOCKET=m CONFIG_LUNATIK_RCU=m CONFIG_LUNATIK_THREAD=m CONFIG_LUNATIK_FIB=n CONFIG_LUNATIK_DATA=m CONFIG_LUNATIK_PROBE=n CONFIG_LUNATIK_SYSCALL=n CONFIG_LUNATIK_XDP=n CONFIG_LUNATIK_FIFO=m CONFIG_LUNATIK_XTABLE=n CONFIG_LUNATIK_NETFILTER=m CONFIG_LUNATIK_COMPLETION=m CONFIG_LUNATIK_CRYPTO_SHASH=n CONFIG_LUNATIK_CRYPTO_SKCIPHER=n CONFIG_LUNATIK_CRYPTO_AEAD=n CONFIG_LUNATIK_CRYPTO_RNG=n CONFIG_LUNATIK_CRYPTO_COMP=n CONFIG_LUNATIK_CPU=n CONFIG_LUNATIK_HID=n CONFIG_LUNATIK_SIGNAL=n CONFIG_LUNATIK_BYTEORDER=m CONFIG_LUNATIK_NOTIFIER=n CONFIG_LUNATIK_INSTALL_EXAMPLES=n CONFIG_LUNATIK_INSTALL_TESTS=n modules
make[3]: Entering directory '/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86'
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lapi.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lcode.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lctype.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldebug.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldo.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldump.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lfunc.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lgc.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/llex.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lmem.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lobject.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lopcodes.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lparser.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstate.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstring.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltable.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltm.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lundump.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lvm.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lzio.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lauxlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lbaselib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lcorolib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldblib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstrlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltablib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lutf8lib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lmathlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/linit.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/loadlib.o
 AS [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/arch/mips/setjmp.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_aux.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_obj.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_core.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivmoddi4.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__divdi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivdi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__moddi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__umoddi3.o
 LD [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik.o
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/arch/mips/setjmp.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_aux.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_obj.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_core.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivmoddi4.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__divdi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivdi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__moddi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__umoddi3.o: warning: linking abicalls files with non-abicalls files
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_run.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/lualinux.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luasocket.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luarcu.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luathread.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadata.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luafifo.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luanetfilter.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luacompletion.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luabyteorder.o
 MODPOST /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Module.symvers
ERROR: modpost: "lua_pushvalue" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rawsetp" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_pushnil" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_settop" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_gettop" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rawgetp" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_getfield" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_tointegerx" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_pushcclosure" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rotate" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
WARNING: modpost: suppressed 163 unresolved symbol warnings because there were too many)
make[5]: *** [scripts/Makefile.modpost:145: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Module.symvers] Error 1
make[4]: *** [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86/Makefile:1873: modpost] Error 2
make[3]: *** [Makefile:234: __sub-make] Error 2
make[3]: Leaving directory '/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86'
make[2]: *** [Makefile:204: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built] Error 2
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
time: package/feeds/luainkernel/lunatik/compile#11.43#1.48#12.54
   ERROR: package/feeds/luainkernel/lunatik failed to build.
make[1]: *** [package/Makefile:179: package/feeds/luainkernel/lunatik/compile] Error 1
make[1]: Leaving directory '/home/ring/openwrt'
make: *** [/home/ring/openwrt/include/toplevel.mk:233: package/feeds/luainkernel/lunatik/compile] Error 2

@Zapper9982
Copy link
Author

hey, @Zapper9982 did you try to build? it seems that autogen is not being called any longer..

du build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_sym.h
0	build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_sym.h

lunatik_sym.h is empty and I'm gettins this error..

ring@openwifi:~/openwrt$ make V=s package/feeds/luainkernel/lunatik/compile
WARNING: Makefile 'package/utils/audit/Makefile' has a dependency on 'libev', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libtirpc', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libtirpc', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/dome-telegraf/Makefile' has a build dependency on 'golang/host', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
make[2]: Entering directory '/home/ring/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/ring/openwrt/scripts/config'
make[1]: Entering directory '/home/ring/openwrt'
+ mkdir -p /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl
+ cd /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl
+ mkdir -p bin lib stamp usr/include usr/lib
mkdir -p /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/stamp
touch /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/.prepared
make[2]: Entering directory '/home/ring/openwrt/package/libs/toolchain'
echo "libc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.07#0.03#0.10
make[2]: Entering directory '/home/ring/openwrt/feeds/luainkernel/lang/lua5.4'
echo "liblua5.4" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/lua5.4.default.install
echo "lua5.4" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/lua5.4.default.install
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/lang/lua5.4'
time: package/feeds/luainkernel/lua5.4/compile#0.07#0.05#0.11
make[2]: Entering directory '/home/ring/openwrt/package/firmware/linux-firmware'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/home/ring/openwrt/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.08#0.02#0.10
make[2]: Entering directory '/home/ring/openwrt/package/kernel/gpio-button-hotplug'
echo "kmod-gpio-button-hotplug" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/gpio-button-hotplug.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/kernel/gpio-button-hotplug'
time: package/kernel/gpio-button-hotplug/compile#0.05#0.03#0.08
make[2]: Entering directory '/home/ring/openwrt/package/kernel/linux'
echo "kernel" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-aead" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ccm" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-cmac" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-crc32c" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ctr" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-gcm" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-gf128" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-ghash" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-hash" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-hmac" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-manager" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-null" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-rng" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-geniv" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-seqiv" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha1" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha3" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha256" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-crypto-sha512" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-hwmon-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-leds-gpio" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc-ccitt" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-lib-crc32c" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-reject" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-reject6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-ipt" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-ipt-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-conntrack6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-log6" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-nat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nf-flow" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-br-netfilter" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nfnetlink" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-bridge" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-nat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-offload" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-netdev" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-fib" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nft-compat" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-slhc" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-ppp" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppox" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-pppoe" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-nls-base" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-core" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ledtrig-usbport" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ohci" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb-ehci" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
echo "kmod-usb2" >> /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/linux.default.install
make[2]: Leaving directory '/home/ring/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#0.95#0.03#0.98
make[2]: Entering directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
LINUX_DIR=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86
mkdir -p /home/ring/openwrt/dl
SHELL= flock /home/ring/openwrt/tmp/.lunatik-3.6.4.tar.zst.flock -c '  	 /home/ring/openwrt/scripts/dl_github_archive.py --dl-dir="/home/ring/openwrt/dl" --url="https://github.com/Zapper9982/lunatik" --version="70187755" --subdir="lunatik-3.6.4" --source="lunatik-3.6.4.tar.zst" --hash="x" --submodules  || ( 	echo "Checking out files from the git repository..."; mkdir -p /home/ring/openwrt/tmp/dl && cd /home/ring/openwrt/tmp/dl && rm -rf lunatik-3.6.4 && [ \! -d lunatik-3.6.4 ] && git clone  https://github.com/Zapper9982/lunatik lunatik-3.6.4 && (cd lunatik-3.6.4 && git checkout 70187755) && export TAR_TIMESTAMP=`cd lunatik-3.6.4 && git log -1 --format='\''@%ct'\''` && echo "Generating formal git archive (apply .gitattributes rules)" && (cd lunatik-3.6.4 && git config core.abbrev 8 && git archive --format=tar HEAD --output=../lunatik-3.6.4.tar.git) && tar --ignore-failed-read -C lunatik-3.6.4 -f lunatik-3.6.4.tar.git -r .git .gitmodules 2>/dev/null && rm -rf lunatik-3.6.4 && mkdir lunatik-3.6.4 && tar -C lunatik-3.6.4 -xf lunatik-3.6.4.tar.git && (cd lunatik-3.6.4 && git submodule update --init --recursive --  && rm -rf .git .gitmodules) && echo "Packing checkout..." && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c lunatik-3.6.4 | 	zstd -T0 --ultra -20 -c > /home/ring/openwrt/tmp/dl/lunatik-3.6.4.tar.zst && mv /home/ring/openwrt/tmp/dl/lunatik-3.6.4.tar.zst /home/ring/openwrt/dl/ && rm -rf lunatik-3.6.4; );     '
lunatik-3.6.4.tar.zst: Download from https://github.com/Zapper9982/lunatik failed
lunatik-3.6.4.tar.zst: Requires sha256sum for verification
Checking out files from the git repository...
Cloning into 'lunatik-3.6.4'...
remote: Enumerating objects: 22800, done.
remote: Counting objects: 100% (378/378), done.
remote: Compressing objects: 100% (235/235), done.
remote: Total 22800 (delta 267), reused 143 (delta 143), pack-reused 22422 (from 4)
Receiving objects: 100% (22800/22800), 5.06 MiB | 53.37 MiB/s, done.
Resolving deltas: 100% (16880/16880), done.
Note: switching to '70187755'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

 git switch -c <new-branch-name>

Or undo this operation with:

 git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 70187755 Add config for LUNATIK_RUNTIME
Generating formal git archive (apply .gitattributes rules)
Submodule 'klibc' (https://github.com/luainkernel/klibc.git) registered for path 'klibc'
Submodule 'lua' (https://github.com/luainkernel/lua.git) registered for path 'lua'
Cloning into '/home/ring/openwrt/tmp/dl/lunatik-3.6.4/klibc'...
Cloning into '/home/ring/openwrt/tmp/dl/lunatik-3.6.4/lua'...
Submodule path 'klibc': checked out '24e0fc1b7248f92735e957d3f36670165b57ac34'
remote: Enumerating objects: 2, done.
remote: Counting objects: 100% (2/2), done.
remote: Total 2 (delta 2), reused 2 (delta 2), pack-reused 0 (from 0)
Unpacking objects: 100% (2/2), 1.10 KiB | 1.10 MiB/s, done.
From https://github.com/luainkernel/lua
* branch              f3de931cba79196f9ab56256149b80140b178b5b -> FETCH_HEAD
Submodule path 'lua': checked out 'f3de931cba79196f9ab56256149b80140b178b5b'
Packing checkout...
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.prepared_06e0c20fe8731935c26e22483aaaf7ea_6664517399ebbbc92a37c5bb081b5c53_check
. /home/ring/openwrt/include/shell.sh; zstdcat /home/ring/openwrt/dl/lunatik-3.6.4.tar.zst | tar -C /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4
cd /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 && ./gensymbols.sh lua/lua.h lua/lauxlib.h lua/lualib.h > lunatik_sym.h
./gensymbols.sh: 6: -Ilua/: not found
cp /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Kbuild /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Makefile
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.prepared_06e0c20fe8731935c26e22483aaaf7ea_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.configured_*
rm -f /home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.lunatik_installed
(cd /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/./; if [ -x ./configure ]; then find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.guess | xargs -r chmod u+w; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.guess | xargs -r -n1 cp --remove-destination /home/ring/openwrt/scripts/config.guess; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.sub | xargs -r chmod u+w; find /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/ -name config.sub | xargs -r -n1 cp --remove-destination /home/ring/openwrt/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="mipsel-openwrt-linux-musl-ld.bfd" NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4=lunatik-3.6.4 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -mips16 -minterlink-mips16 -Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" CPPFLAGS="-I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/usr/include -I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/include -I/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/include/fortify " LDFLAGS="-L/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/usr/lib -L/home/ring/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built
touch /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built_check
make -C /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86 M="/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4" EXTRA_CFLAGS="-Wimplicit-fallthrough=0 -Wno-declaration-after-statement -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4 -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/include -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua -I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" KBUILD_AFLAGS="-I/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/include/arch/mips" KCFLAGS="-fmacro-prefix-map=/home/ring/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl -fno-caller-saves " HOSTCFLAGS="-O2 -I/home/ring/openwrt/staging_dir/host/include -I/home/ring/openwrt/staging_dir/hostpkg/include -I/home/ring/openwrt/staging_dir/target-mipsel_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Sun Apr 13 16:38:32 2025" KBUILD_BUILD_VERSION="0" KBUILD_HOSTLDFLAGS="-L/home/ring/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/gpio-button-hotplug.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/lunatik.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/mac80211.symvers /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/symvers/mt76.symvers" CC="mipsel-openwrt-linux-musl-gcc" KERNELRELEASE=6.6.86 CONFIG_LUNATIK=m CONFIG_LUNATIK_RUNTIME=y CONFIG_LUNATIK_RUN=m CONFIG_LUNATIK_DEVICE=m CONFIG_LUNATIK_LINUX=m CONFIG_LUNATIK_SOCKET=m CONFIG_LUNATIK_RCU=m CONFIG_LUNATIK_THREAD=m CONFIG_LUNATIK_FIB=n CONFIG_LUNATIK_DATA=m CONFIG_LUNATIK_PROBE=n CONFIG_LUNATIK_SYSCALL=n CONFIG_LUNATIK_XDP=n CONFIG_LUNATIK_FIFO=m CONFIG_LUNATIK_XTABLE=n CONFIG_LUNATIK_NETFILTER=m CONFIG_LUNATIK_COMPLETION=m CONFIG_LUNATIK_CRYPTO_SHASH=n CONFIG_LUNATIK_CRYPTO_SKCIPHER=n CONFIG_LUNATIK_CRYPTO_AEAD=n CONFIG_LUNATIK_CRYPTO_RNG=n CONFIG_LUNATIK_CRYPTO_COMP=n CONFIG_LUNATIK_CPU=n CONFIG_LUNATIK_HID=n CONFIG_LUNATIK_SIGNAL=n CONFIG_LUNATIK_BYTEORDER=m CONFIG_LUNATIK_NOTIFIER=n CONFIG_LUNATIK_INSTALL_EXAMPLES=n CONFIG_LUNATIK_INSTALL_TESTS=n modules
make[3]: Entering directory '/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86'
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lapi.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lcode.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lctype.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldebug.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldo.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldump.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lfunc.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lgc.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/llex.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lmem.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lobject.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lopcodes.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lparser.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstate.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstring.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltable.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltm.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lundump.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lvm.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lzio.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lauxlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lbaselib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lcorolib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ldblib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lstrlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/ltablib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lutf8lib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/lmathlib.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/linit.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lua/loadlib.o
 AS [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/arch/mips/setjmp.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_aux.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_obj.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_core.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivmoddi4.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__divdi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivdi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__moddi3.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__umoddi3.o
 LD [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik.o
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/arch/mips/setjmp.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_aux.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_obj.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_core.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivmoddi4.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__divdi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__udivdi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__moddi3.o: warning: linking abicalls files with non-abicalls files
mipsel-openwrt-linux-musl-ld: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/klibc/usr/klibc/libgcc/__umoddi3.o: warning: linking abicalls files with non-abicalls files
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lunatik_run.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/lualinux.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luasocket.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luarcu.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luathread.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadata.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luafifo.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luanetfilter.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luacompletion.o
 CC [M]  /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luabyteorder.o
 MODPOST /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Module.symvers
ERROR: modpost: "lua_pushvalue" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rawsetp" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_pushnil" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_settop" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_gettop" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rawgetp" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_getfield" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_tointegerx" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_pushcclosure" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
ERROR: modpost: "lua_rotate" [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/lib/luadevice.ko] undefined!
WARNING: modpost: suppressed 163 unresolved symbol warnings because there were too many)
make[5]: *** [scripts/Makefile.modpost:145: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/Module.symvers] Error 1
make[4]: *** [/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86/Makefile:1873: modpost] Error 2
make[3]: *** [Makefile:234: __sub-make] Error 2
make[3]: Leaving directory '/home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-6.6.86'
make[2]: *** [Makefile:204: /home/ring/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/lunatik-3.6.4/.built] Error 2
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
time: package/feeds/luainkernel/lunatik/compile#11.43#1.48#12.54
   ERROR: package/feeds/luainkernel/lunatik failed to build.
make[1]: *** [package/Makefile:179: package/feeds/luainkernel/lunatik/compile] Error 1
make[1]: Leaving directory '/home/ring/openwrt'
make: *** [/home/ring/openwrt/include/toplevel.mk:233: package/feeds/luainkernel/lunatik/compile] Error 2

Hi yes lemme look into this

@Zapper9982
Copy link
Author

@lneto So i got down to it , there seems to be an issue in lua/ltable.c ,

size |= (size >> 32); /* unsigned int has more than 32 bits */ on this line , so the build fails as of now .

making it : size |= (unsigned int)((unsigned long long)size >> 32);

should fix it

The original Lua code has a conditional 64-bit shift that is correctly excluded by the preprocessor on 32-bit targets, but GCC still analyzes and warns about it. The fix makes the shift operation type-safe by explicitly casting to a 64-bit type before shifting, eliminating the warning without changing runtime behavior

Comment on lines -89 to +119
DEPENDS:=\
+lua5.4
DEPENDS:=+lua5.4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, don't mix style changes and feat

define Build/Prepare
$(Build/Prepare/Default)
cd $(PKG_BUILD_DIR) && ./gensymbols.sh $(LUA_API) > lunatik_sym.h
cd $(PKG_BUILD_DIR) && CC=gcc ./gensymbols.sh $(LUA_API) > lunatik_sym.h
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't assume gcc.. CC=${CC}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldnt use cross compiler here , we should use host compiler so i will make it $(HOSTCC)

@lneto
Copy link

lneto commented Jan 19, 2026

@lneto So i got down to it , there seems to be an issue in lua/ltable.c ,

size |= (size >> 32); /* unsigned int has more than 32 bits */ on this line , so the build fails as of now .

making it : size |= (unsigned int)((unsigned long long)size >> 32);

should fix it

The original Lua code has a conditional 64-bit shift that is correctly excluded by the preprocessor on 32-bit targets, but GCC still analyzes and warns about it. The fix makes the shift operation type-safe by explicitly casting to a 64-bit type before shifting, eliminating the warning without changing runtime behavior

I don't think it should be a problem; did you try to build the same without your patch? Lua should be correctly configured. It's most likely that your patch is breaking some config. BTW, I don't see the error you are reporting anywhere. Can you share the log?

@Zapper9982
Copy link
Author

@lneto So i got down to it , there seems to be an issue in lua/ltable.c ,
size |= (size >> 32); /* unsigned int has more than 32 bits */ on this line , so the build fails as of now .
making it : size |= (unsigned int)((unsigned long long)size >> 32);
should fix it
The original Lua code has a conditional 64-bit shift that is correctly excluded by the preprocessor on 32-bit targets, but GCC still analyzes and warns about it. The fix makes the shift operation type-safe by explicitly casting to a 64-bit type before shifting, eliminating the warning without changing runtime behavior

I don't think it should be a problem; did you try to build the same without your patch? Lua should be correctly configured. It's most likely that your patch is breaking some config. BTW, I don't see the error you are reporting anywhere. Can you share the log?

_generic/lunatik-3.6.4/lua/lobject.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lopcodes.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lparser.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstate.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.o /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.c: In function 'luaH_realasize': /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.c:269:19: error: right shift count >= width of type [-Werror=shift-count-overflow] 269 | size |= (size >> 32); /* unsigned int has more than 32 bits */ | ^~ cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:289: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.o] Error 1 make[3]: *** [Makefile:1907: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4] Error 2 make[3]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167' make[2]: *** [Makefile:204: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/.built] Error 2 make[2]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt_feed/kernel/lunatik' time: package/feeds/lunatik/lunatik/compile#6.84#1.32#17.80 ERROR: package/feeds/lunatik/lunatik failed to build. make[1]: *** [package/Makefile:129: package/feeds/lunatik/lunatik/compile] Error 1 make[1]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt' make: *** [/home/zapper9982/Documents/lunatik/openwrt/include/toplevel.mk:233: package/feeds/lunatik/lunatik/compile] Error 2

@lneto here

@lneto
Copy link

lneto commented Jan 19, 2026

@lneto So i got down to it , there seems to be an issue in lua/ltable.c ,
size |= (size >> 32); /* unsigned int has more than 32 bits */ on this line , so the build fails as of now .
making it : size |= (unsigned int)((unsigned long long)size >> 32);
should fix it
The original Lua code has a conditional 64-bit shift that is correctly excluded by the preprocessor on 32-bit targets, but GCC still analyzes and warns about it. The fix makes the shift operation type-safe by explicitly casting to a 64-bit type before shifting, eliminating the warning without changing runtime behavior

I don't think it should be a problem; did you try to build the same without your patch? Lua should be correctly configured. It's most likely that your patch is breaking some config. BTW, I don't see the error you are reporting anywhere. Can you share the log?

_generic/lunatik-3.6.4/lua/lobject.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lopcodes.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lparser.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstate.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.o /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.c: In function 'luaH_realasize': /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.c:269:19: error: right shift count >= width of type [-Werror=shift-count-overflow] 269 | size |= (size >> 32); /* unsigned int has more than 32 bits */ | ^~ cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:289: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/ltable.o] Error 1 make[3]: *** [Makefile:1907: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4] Error 2 make[3]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167' make[2]: *** [Makefile:204: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/.built] Error 2 make[2]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt_feed/kernel/lunatik' time: package/feeds/lunatik/lunatik/compile#6.84#1.32#17.80 ERROR: package/feeds/lunatik/lunatik failed to build. make[1]: *** [package/Makefile:129: package/feeds/lunatik/lunatik/compile] Error 1 make[1]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt' make: *** [/home/zapper9982/Documents/lunatik/openwrt/include/toplevel.mk:233: package/feeds/lunatik/lunatik/compile] Error 2

@lneto here

Can you make sure it's happening without your changes as well? It seems to me that you are not including the right headers.

@Zapper9982
Copy link
Author

Hey @lneto i have been getting an unsafe memcpy error as of now , i am not sure what to do about it

@lneto
Copy link

lneto commented Jan 19, 2026

Hey @lneto i have been getting an unsafe memcpy error as of now , i am not sure what to do about it

Please, always share the full logs, so we can try to help ;-)

@Zapper9982
Copy link
Author

CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lparser.o
CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstate.o
CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o
/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c: In function 'internshrstr':
/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c:245:3: error: implicit declaration of function 'unsafe_memcpy' [-Werror=implicit-function-declaration]
245 | unsafe_memcpy(getshrstr(ts), str, l * sizeof(char),
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:289: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o] Error 1
make[3]: *** [Makefile:1907: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4] Error 2
make[3]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167'
make[2]: *** [Makefile:204: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/.built] Error 2
make[2]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt_feed/kernel/lunatik'
time: package/feeds/lunatik/lunatik/compile#6.93#1.58#70.03
ERROR: package/feeds/lunatik/lunatik failed to build.
make[1]: *** [package/Makefile:129: package/feeds/lunatik/lunatik/compile] Error 1
make[1]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt'
make: *** [/home/zapper9982/Documents/lunatik/openwrt/include/toplevel.mk:233: package/lunatik/compile] Error 2

@lneto
Copy link

lneto commented Jan 19, 2026

CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lparser.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstate.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c: In function 'internshrstr': /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c:245:3: error: implicit declaration of function 'unsafe_memcpy' [-Werror=implicit-function-declaration] 245 | unsafe_memcpy(getshrstr(ts), str, l * sizeof(char), | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:289: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o] Error 1 make[3]: *** [Makefile:1907: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4] Error 2 make[3]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167' make[2]: *** [Makefile:204: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/.built] Error 2 make[2]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt_feed/kernel/lunatik' time: package/feeds/lunatik/lunatik/compile#6.93#1.58#70.03 ERROR: package/feeds/lunatik/lunatik failed to build. make[1]: *** [package/Makefile:129: package/feeds/lunatik/lunatik/compile] Error 1 make[1]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt' make: *** [/home/zapper9982/Documents/lunatik/openwrt/include/toplevel.mk:233: package/lunatik/compile] Error 2

It looks like the build is not finding this API, can you share your OpenWRT config?

@lneto
Copy link

lneto commented Jan 19, 2026

the build problem I have now is to sort out the dependency of luarcu on lunatik_run

Package kmod-lunatik-run is missing dependencies for the following libraries:
luarcu.ko
make[2]: *** [Makefile:216: /home/ring/openwrt/bin/targets/ramips/mt76x8/packages/kmod-lunatik-run_6.6.86.3.6.4-r1_mipsel_24kc.ipk] Error 1
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
time: package/feeds/luainkernel/lunatik/compile#12.86#1.79#14.08
    ERROR: package/feeds/luainkernel/lunatik failed to build.
make[1]: *** [package/Makefile:179: package/feeds/luainkernel/lunatik/compile] Error 1
make[1]: Leaving directory '/home/ring/openwrt'
make: *** [/home/ring/openwrt/include/toplevel.mk:233: package/feeds/luainkernel/lunatik/compile] Error 2

@Zapper9982
Copy link
Author

CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lparser.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstate.o CC [M] /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c: In function 'internshrstr': /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.c:245:3: error: implicit declaration of function 'unsafe_memcpy' [-Werror=implicit-function-declaration] 245 | unsafe_memcpy(getshrstr(ts), str, l * sizeof(char), | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:289: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/lua/lstring.o] Error 1 make[3]: *** [Makefile:1907: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4] Error 2 make[3]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.167' make[2]: *** [Makefile:204: /home/zapper9982/Documents/lunatik/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/lunatik-3.6.4/.built] Error 2 make[2]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt_feed/kernel/lunatik' time: package/feeds/lunatik/lunatik/compile#6.93#1.58#70.03 ERROR: package/feeds/lunatik/lunatik failed to build. make[1]: *** [package/Makefile:129: package/feeds/lunatik/lunatik/compile] Error 1 make[1]: Leaving directory '/home/zapper9982/Documents/lunatik/openwrt' make: *** [/home/zapper9982/Documents/lunatik/openwrt/include/toplevel.mk:233: package/lunatik/compile] Error 2

It looks like the build is not finding this API, can you share your OpenWRT config?

yes managed to get my config right

@Zapper9982
Copy link
Author

the build problem I have now is to sort out the dependency of luarcu on lunatik_run

Package kmod-lunatik-run is missing dependencies for the following libraries:
luarcu.ko
make[2]: *** [Makefile:216: /home/ring/openwrt/bin/targets/ramips/mt76x8/packages/kmod-lunatik-run_6.6.86.3.6.4-r1_mipsel_24kc.ipk] Error 1
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
time: package/feeds/luainkernel/lunatik/compile#12.86#1.79#14.08
    ERROR: package/feeds/luainkernel/lunatik failed to build.
make[1]: *** [package/Makefile:179: package/feeds/luainkernel/lunatik/compile] Error 1
make[1]: Leaving directory '/home/ring/openwrt'
make: *** [/home/ring/openwrt/include/toplevel.mk:233: package/feeds/luainkernel/lunatik/compile] Error 2

Let me take a look into it

@Zapper9982
Copy link
Author

@lneto i wasnt able to reproduce the same issue you have been facing =) could u help me with what exactly you performed

the build problem I have now is to sort out the dependency of luarcu on lunatik_run

Package kmod-lunatik-run is missing dependencies for the following libraries:
luarcu.ko
make[2]: *** [Makefile:216: /home/ring/openwrt/bin/targets/ramips/mt76x8/packages/kmod-lunatik-run_6.6.86.3.6.4-r1_mipsel_24kc.ipk] Error 1
make[2]: Leaving directory '/home/ring/openwrt/feeds/luainkernel/kernel/lunatik'
time: package/feeds/luainkernel/lunatik/compile#12.86#1.79#14.08
    ERROR: package/feeds/luainkernel/lunatik failed to build.
make[1]: *** [package/Makefile:179: package/feeds/luainkernel/lunatik/compile] Error 1
make[1]: Leaving directory '/home/ring/openwrt'
make: *** [/home/ring/openwrt/include/toplevel.mk:233: package/feeds/luainkernel/lunatik/compile] Error 2

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.

2 participants