DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Error while building DPDK version 19.11 over latest kernel version
@ 2020-10-01 17:04 Klei rama
  2020-10-02  7:15 ` Thomas Monjalon
  2020-10-02  7:16 ` David Marchand
  0 siblings, 2 replies; 3+ messages in thread
From: Klei rama @ 2020-10-01 17:04 UTC (permalink / raw)
  To: users

Hei,

I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
the latest kernel version 5.9. It gives me an error while I try to build
it. The error is when I try to build linux/kni module.
The error looks something like this:

*dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
*get_user_pages_remote*’ from incompatible pointer type [
*-Werror=incompatible-pointer-types*]


Is there any workaround?Do I need to disable that module or should I
downgrade the kernel version? I wanted to debug my application and see if
it needs kni module but I did not not how to disable kni module. I tried
common_base and common_linux under config directory but could not find the
line which disable this module.


Any kind of help will be very much appreciated.


Cheers,

Klei

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

* Re: [dpdk-users] Error while building DPDK version 19.11 over latest kernel version
  2020-10-01 17:04 [dpdk-users] Error while building DPDK version 19.11 over latest kernel version Klei rama
@ 2020-10-02  7:15 ` Thomas Monjalon
  2020-10-02  7:16 ` David Marchand
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2020-10-02  7:15 UTC (permalink / raw)
  To: Klei rama; +Cc: users

01/10/2020 19:04, Klei rama:
> Hei,
> 
> I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
> the latest kernel version 5.9. It gives me an error while I try to build
> it. The error is when I try to build linux/kni module.
> The error looks something like this:
> 
> *dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
> *get_user_pages_remote*’ from incompatible pointer type [
> *-Werror=incompatible-pointer-types*]
> 
> 
> Is there any workaround?

Yes, it will be fixed with the backport of this patch:
http://git.dpdk.org/dpdk/commit/?id=87efaea6376c8

> Do I need to disable that module or should I
> downgrade the kernel version? I wanted to debug my application and see if
> it needs kni module but I did not not how to disable kni module. I tried
> common_base and common_linux under config directory but could not find the
> line which disable this module.

You can disable KNI in the config file:
	CONFIG_RTE_KNI_KMOD=n




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

* Re: [dpdk-users] Error while building DPDK version 19.11 over latest kernel version
  2020-10-01 17:04 [dpdk-users] Error while building DPDK version 19.11 over latest kernel version Klei rama
  2020-10-02  7:15 ` Thomas Monjalon
@ 2020-10-02  7:16 ` David Marchand
  1 sibling, 0 replies; 3+ messages in thread
From: David Marchand @ 2020-10-02  7:16 UTC (permalink / raw)
  To: Klei rama; +Cc: users

On Fri, Oct 2, 2020 at 9:06 AM Klei rama <kleirama90@gmail.com> wrote:
> I am trying to build DPDK version 19.11 in my ubuntu machine (18.04) with
> the latest kernel version 5.9. It gives me an error while I try to build
> it. The error is when I try to build linux/kni module.
> The error looks something like this:
>
> *dpdk/kernel/linux/kni/kni_dev.h:104:30:* *error: *passing argument 1 of ‘
> *get_user_pages_remote*’ from incompatible pointer type [
> *-Werror=incompatible-pointer-types*]

There was a patch merged recently in the main branch.
See: https://git.dpdk.org/dpdk/commit/?id=87efaea6376c


-- 
David Marchand


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

end of thread, other threads:[~2020-10-02  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 17:04 [dpdk-users] Error while building DPDK version 19.11 over latest kernel version Klei rama
2020-10-02  7:15 ` Thomas Monjalon
2020-10-02  7:16 ` David Marchand

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).