Build error 22.03.2 for custom image

Trying to build an image without ipv6 (make menuconfig: Enable IPv6 support in packages UNCHECKED), I receive following error:

touch /etc/openwrt/RUT955_v30_owrt220302/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.kernel_installed
ERROR: module '/etc/openwrt/RUT955_v30_owrt220302/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.10.146/net/ipv6/netfilter/n           ft_reject_ipv6.ko' is missing.
modules/ recipe for target '/etc/openwrt/RUT955_v30_owrt220302/bin/targets/ath79/generic/packages/kmod-nft-core_5.10.14           6-1_mips_24kc.ipk' failed
make[3]: *** [/etc/openwrt/RUT955_v30_owrt220302/bin/targets/ath79/generic/packages/kmod-nft-core_5.10.146-1_mips_24kc.ipk] Error 1
make[3]: Leaving directory '/etc/openwrt/RUT955_v30_owrt220302/package/kernel/linux'
time: package/kernel/linux/compile#3.69#0.23#3.91
    ERROR: package/kernel/linux failed to build.
package/Makefile:114: recipe for target 'package/kernel/linux/compile' failed
make[2]: *** [package/kernel/linux/compile] Error 1
make[2]: Leaving directory '/etc/openwrt/RUT955_v30_owrt220302'
package/Makefile:110: recipe for target '/etc/openwrt/RUT955_v30_owrt220302/staging_dir/target-mips_24kc_musl/stamp/.package_compile' fai           led
make[1]: *** [/etc/openwrt/RUT955_v30_owrt220302/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/etc/openwrt/RUT955_v30_owrt220302'
/etc/openwrt/RUT955_v30_owrt220302/include/ recipe for target 'world' failed
make: *** [world] Error 2

There was something about this in the mailing list a while back that the linux kernel has removed the support to compile without IPv6 and doing so will fail so that checkbox was changed to always set.
So you pretty much can’t build a image without IPv6 anymore.

I build mine without the dhcp servers upstream and downstream. Then at least the firmware doesn’t do anything with the IPv6.

But then the meaning of the checkbox
Enable IPv6 support in packages
also referes to the kernel options.
Which should not be the case. Uncheck results in the build error.

There is no real meaning of that checkbox anymore, that was why it was made always on.
But this was coming anyway whether or not Torvald was going to do anything. It is some time ago but in the mailing list it was kind of a poll if support of "non IPv6" was to be continued and "non IPv6" pretty much lost, but it didn't disappear as a function. It was just made voluntarily for the dev if they wanted to care about it in the code or not.
But already then many packages developers had stopped even making code caring of this checkbox.

But then Torvald in the kernel put the final nail in the coffin as far as I understood.

Then it would be a good idea to remove this item from 'make menuconfig global_build_settings' completely. Not to give the "stupid" user like me an option, which simply does not work.

1 Like

But still the old code has its IPv6 on/off support, and it is only one makemenu as far as I know that must fit all variants.

Or to fix it, just to remove the (bad) consequence regarding kernel options.
To avoid some packages to contain redundant code regarding IPv6.