Error while build Openwrt

make[3] -C package/system/fstools compile
make[3] -C feeds/packages/net/eoip compile
make[3] -C package/network/utils/nftables compile
make[3] -C package/kernel/ksmbd compile
ERROR: package/kernel/ksmbd failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/user/openwrt/include/toplevel.mk:230: world] Error 1

image

The error message actually tells you what to do, to investigate further ...

1 Like

openwrt/build_dir/target-x86_64_musl/linux-x86_64/symvers/nat46.symvers /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/symvers/netatop.symvers /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/symvers/openvswitch.symvers /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/symvers/siit.symvers /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/symvers/trelay.symvers" KERNELRELEASE=5.10.161 M="/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5" EXTRA_CFLAGS="-DCONFIG_SMB_INSECURE_SERVER=1" CONFIG_SMB_INSECURE_SERVER=y CONFIG_SMB_SERVER=m modules
make[4]: Entering directory '/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.161'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
echo >&2;
echo >&2 " ERROR: Kernel configuration is invalid.";
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it.";
echo >&2 ;
/bin/false)
make -f ./scripts/Makefile.build obj=/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5
single-build=
need-builtin=1 need-modorder=1
make[5]: *** No rule to make target '/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5/unicode.o', needed by '/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5/ksmbd.o'. Stop.
make[4]: *** [Makefile:1837: /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5] Error 2
make[4]: Leaving directory '/home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.10.161'
make[3]: *** [Makefile:76: /home/user/NexappOs/openwrt/build_dir/target-x86_64_musl/linux-x86_64/ksmbd-3.4.5/.built] Error 2
make[3]: Leaving directory '/home/user/NexappOs/openwrt/package/kernel/ksmbd'
time: package/kernel/ksmbd/compile#1.35#0.29#1.61
ERROR: package/kernel/ksmbd failed to build.
make[2]: *** [package/Makefile:116: package/kernel/ksmbd/compile] Error 1
make[2]: Leaving directory '/home/user/NexappOs/openwrt'
make[1]: *** [package/Makefile:110: /home/user/NexappOs/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user/NexappOs/openwrt'
make: *** [/home/user/NexappOs/openwrt/include/toplevel.mk:230: world] Error 2

You will have to run the above to find out what’s going on.

j1 sets make to run a single thread. V=s or V=sc adds verbosity.

When it fails again, you’ll have to search backwards to find the cause.

Follow the prompts.

1 Like

.... and use the </> button when posting cli output.

3 Likes

But there shouldn't be that kind of errors related a normally existing kernel module.

Something strange in the build env?

@akshay
have you run either "make menuconfig" or "make defconfig" before the build?

Agreed.

His screenshot indicates he did at least do that.

At least opened menuconfig, but you can also close it without saving changes :wink: