DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] KNI compilation
@ 2021-08-30 16:47 spyroot
  2021-08-30 17:44 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: spyroot @ 2021-08-30 16:47 UTC (permalink / raw)
  To: dev

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] KNI compilation
  2021-08-30 16:47 [dpdk-dev] KNI compilation spyroot
@ 2021-08-30 17:44 ` Ferruh Yigit
  2021-08-30 18:41   ` spyroot
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2021-08-30 17:44 UTC (permalink / raw)
  To: spyroot, dev

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] KNI compilation
  2021-08-30 17:44 ` Ferruh Yigit
@ 2021-08-30 18:41   ` spyroot
  0 siblings, 0 replies; 3+ messages in thread
From: spyroot @ 2021-08-30 18:41 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: dev

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.yigit@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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-30 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 16:47 [dpdk-dev] KNI compilation spyroot
2021-08-30 17:44 ` Ferruh Yigit
2021-08-30 18:41   ` spyroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).