DPDK usage discussions
 help / color / 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, back to index

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

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox