Hi Ferruh, Sorry, I forgot to mention, Yes, I was compiling with -Denable_kmods=true.
I just partially found a root cause. The target system Photon OS (It VMware distro) It has 4 kernels variation regular, RT, ESX, security. ( I was using ESX variation that optimized for ESXi but it looks like something is disabled in the kernel that prevents KNI to compile) when I use a regular kernel source tree, it does compile. I was trying to figure out what KNI actually requires from the kernel source tree or what instrumentation I can use it to see the more verbose errors. ninja -v doesn't really provide details. Thank you very much On Mon, Aug 30, 2021 at 9:44 PM Ferruh Yigit <ferruh.yi...@intel.com> wrote: > On 8/30/2021 5:47 PM, spyroot wrote: > > Hi Folks, > > > > I troubleshooting already for a couple of hours but still not clear why > > exactly the build process > > failing on the KNI module. I've tried to disable KNI but it same issue. > > Any ideas what might be a root cause. It x86_64 > > > > > > [1/2] Generating rte_kni with a custom command > > FAILED: kernel/linux/kni/rte_kni.ko > > make -j4 -C /lib/modules/5.10.52-3.ph4-esx/build > > M=/root/dpdk-stable-20.11.2/build/kernel/linux/kni > > src=/root/dpdk-stable-20.11.2/kernel/linux/kni 'MODULE_CFLAGS=-include > > /root/dpdk-stable-20.11.2/config/rte_config.h > > -I/root/dpdk-stable-20.11.2/lib/librte_eal/include > > -I/root/dpdk-stable-20.11.2/lib/librte_kni > > -I/root/dpdk-stable-20.11.2/build > > -I/root/dpdk-stable-20.11.2/kernel/linux/kni' modules > > make: Entering directory '/usr/src/linux-headers-5.10.52-3.ph4-esx' > > make[1]: *** No rule to make target > > '/root/dpdk-stable-20.11.2/build/kernel/linux/kni/kni_misc.o', needed by > > '/root/dpdk-stable-20.11.2/build/kernel/linux/kni/rte_kni.o'. Stop. > > make: *** [Makefile:1821: > /root/dpdk-stable-20.11.2/build/kernel/linux/kni] > > Error 2 > > make: Leaving directory '/usr/src/linux-headers-5.10.52-3.ph4-esx' > > ninja: build stopped: subcommand failed. > > > > Kind Regards, > > Mus> > > > > Hi spyroot (Mus> ?), > > modules already disabled by default, you should be enabling it via > '-Denable_kmods=true' meson option, if you want to disable kni just not > enabling > kmods should be enough. > > btw, I have tried and not able to reproduce the issue in 20.11.2 in my > platforml, kni compiles fine. > Can you confirm you have kernel source installed in your system? > Or to be more specific, does '/usr/src/linux-headers-5.10.52-3.ph4-esx' > patch > has kernel source code? > > And can you please share your full commands for build? > > Cheers, > ferruh >