[dpdk-dev] KNI compilation

Ferruh Yigit ferruh.yigit at intel.com
Mon Aug 30 19:44:35 CEST 2021


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


More information about the dev mailing list