DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v2] ring: build on Windows
@ 2020-05-20 10:44 Fady Bader
  2020-05-20 20:46 ` Ranjit Menon
  2020-05-21  4:17 ` Honnappa Nagarahalli
  0 siblings, 2 replies; 5+ messages in thread
From: Fady Bader @ 2020-05-20 10:44 UTC (permalink / raw)
  To: dev
  Cc: thomas, talshn, yohadt, olivier.matz, harini.ramakrishnan,
	ocardona, anand.rawat, ranjit.menon, dmitry.kozliuk

Exported per_lcore__rte_errno function to compile ring for windows.

compilation error logs:
librte_ring_rte_ring.c.obj : error LNK2019: unresolved
external symbol per_lcore__rte_errno referenced in
function rte_ring_lookup

The cause was that per_lcore__rte_errno function wasn't included
in the export list.
To solve this per_lcore__rte_errno was added to the Windows export
list.

Signed-off-by: Fady Bader <fady@mellanox.com>
Depends-on: series-9374 ("Windows basic memory management")
---
 lib/librte_eal/rte_eal_exports.def | 1 +
 lib/librte_eal/rte_eal_version.map | 3 +++
 lib/meson.build                    | 5 ++++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def
index 854b83bcd..cbb6b8cfe 100644
--- a/lib/librte_eal/rte_eal_exports.def
+++ b/lib/librte_eal/rte_eal_exports.def
@@ -1,5 +1,6 @@
 EXPORTS
 	__rte_panic
+	per_lcore__rte_errno
 	rte_calloc
 	rte_calloc_socket
 	rte_eal_get_configuration
diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map
index bdd014638..0f1b983b8 100644
--- a/lib/librte_eal/rte_eal_version.map
+++ b/lib/librte_eal/rte_eal_version.map
@@ -390,4 +390,7 @@ EXPERIMENTAL {
 	rte_trace_point_lookup;
 	rte_trace_regexp;
 	rte_trace_save;
+
+	# added in 20.08
+	__emutls_v.per_lcore__rte_errno;
 };
diff --git a/lib/meson.build b/lib/meson.build
index d190d84ef..98ee5ec57 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -36,7 +36,10 @@ libraries = [
 	'flow_classify', 'bpf', 'graph', 'node']
 
 if is_windows
-	libraries = ['kvargs','eal'] # only supported libraries for windows
+	libraries = [
+	'kvargs',
+	'eal',
+	'ring'] # only supported libraries for windows
 endif
 
 default_cflags = machine_args
-- 
2.16.1.windows.4


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

* Re: [dpdk-dev] [PATCH v2] ring: build on Windows
  2020-05-20 10:44 [dpdk-dev] [PATCH v2] ring: build on Windows Fady Bader
@ 2020-05-20 20:46 ` Ranjit Menon
  2020-05-21  4:17 ` Honnappa Nagarahalli
  1 sibling, 0 replies; 5+ messages in thread
From: Ranjit Menon @ 2020-05-20 20:46 UTC (permalink / raw)
  To: Fady Bader, dev
  Cc: thomas, talshn, yohadt, olivier.matz, harini.ramakrishnan,
	ocardona, anand.rawat, dmitry.kozliuk

On 5/20/2020 3:44 AM, Fady Bader wrote:
> Exported per_lcore__rte_errno function to compile ring for windows.
>
> compilation error logs:
> librte_ring_rte_ring.c.obj : error LNK2019: unresolved
> external symbol per_lcore__rte_errno referenced in
> function rte_ring_lookup
>
> The cause was that per_lcore__rte_errno function wasn't included
> in the export list.
> To solve this per_lcore__rte_errno was added to the Windows export
> list.
>
> Signed-off-by: Fady Bader <fady@mellanox.com>
> Depends-on: series-9374 ("Windows basic memory management")
> ---
>   lib/librte_eal/rte_eal_exports.def | 1 +
>   lib/librte_eal/rte_eal_version.map | 3 +++
>   lib/meson.build                    | 5 ++++-
>   3 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def
> index 854b83bcd..cbb6b8cfe 100644
> --- a/lib/librte_eal/rte_eal_exports.def
> +++ b/lib/librte_eal/rte_eal_exports.def
> @@ -1,5 +1,6 @@
>   EXPORTS
>   	__rte_panic
> +	per_lcore__rte_errno
>   	rte_calloc
>   	rte_calloc_socket
>   	rte_eal_get_configuration
> diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map
> index bdd014638..0f1b983b8 100644
> --- a/lib/librte_eal/rte_eal_version.map
> +++ b/lib/librte_eal/rte_eal_version.map
> @@ -390,4 +390,7 @@ EXPERIMENTAL {
>   	rte_trace_point_lookup;
>   	rte_trace_regexp;
>   	rte_trace_save;
> +
> +	# added in 20.08
> +	__emutls_v.per_lcore__rte_errno;
>   };
> diff --git a/lib/meson.build b/lib/meson.build
> index d190d84ef..98ee5ec57 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -36,7 +36,10 @@ libraries = [
>   	'flow_classify', 'bpf', 'graph', 'node']
>   
>   if is_windows
> -	libraries = ['kvargs','eal'] # only supported libraries for windows
> +	libraries = [
> +	'kvargs',
> +	'eal',
> +	'ring'] # only supported libraries for windows

Please tab out the list of libraries above for formatting purposes.

Also, to make future changes simpler, you could do this as:

libraries = [
         'kvargs',
         'eal',
         'ring',
         ] # only supported libraries for windows


ranjit m.


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

* Re: [dpdk-dev] [PATCH v2] ring: build on Windows
  2020-05-20 10:44 [dpdk-dev] [PATCH v2] ring: build on Windows Fady Bader
  2020-05-20 20:46 ` Ranjit Menon
@ 2020-05-21  4:17 ` Honnappa Nagarahalli
  2020-05-21  8:26   ` Thomas Monjalon
  2020-05-21 15:02   ` Fady Bader
  1 sibling, 2 replies; 5+ messages in thread
From: Honnappa Nagarahalli @ 2020-05-21  4:17 UTC (permalink / raw)
  To: Fady Bader, dev
  Cc: thomas, talshn, yohadt, olivier.matz, harini.ramakrishnan,
	ocardona, anand.rawat, ranjit.menon, dmitry.kozliuk,
	Honnappa Nagarahalli, nd, nd

<snip>

> Subject: [dpdk-dev] [PATCH v2] ring: build on Window
                                                            ^^^^ change this to 'eal'.

Even though the compilation error points to rte_ring, this is not a issue in rte_ring library. Suggest changing the commit message to something like "eal: add per_lcore__rte_errno to export list for Windows".

> 
> Exported per_lcore__rte_errno function to compile ring for windows.
> 
> compilation error logs:
> librte_ring_rte_ring.c.obj : error LNK2019: unresolved external symbol
> per_lcore__rte_errno referenced in function rte_ring_lookup
> 
> The cause was that per_lcore__rte_errno function wasn't included in the
> export list.
> To solve this per_lcore__rte_errno was added to the Windows export list.
> 
> Signed-off-by: Fady Bader <fady@mellanox.com>
> Depends-on: series-9374 ("Windows basic memory management")
> ---
>  lib/librte_eal/rte_eal_exports.def | 1 +  lib/librte_eal/rte_eal_version.map | 3
> +++
>  lib/meson.build                    | 5 ++++-
>  3 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/librte_eal/rte_eal_exports.def
> b/lib/librte_eal/rte_eal_exports.def
> index 854b83bcd..cbb6b8cfe 100644
> --- a/lib/librte_eal/rte_eal_exports.def
> +++ b/lib/librte_eal/rte_eal_exports.def
> @@ -1,5 +1,6 @@
>  EXPORTS
>  	__rte_panic
> +	per_lcore__rte_errno
>  	rte_calloc
>  	rte_calloc_socket
>  	rte_eal_get_configuration
> diff --git a/lib/librte_eal/rte_eal_version.map
> b/lib/librte_eal/rte_eal_version.map
> index bdd014638..0f1b983b8 100644
> --- a/lib/librte_eal/rte_eal_version.map
> +++ b/lib/librte_eal/rte_eal_version.map
> @@ -390,4 +390,7 @@ EXPERIMENTAL {
>  	rte_trace_point_lookup;
>  	rte_trace_regexp;
>  	rte_trace_save;
> +
> +	# added in 20.08
> +	__emutls_v.per_lcore__rte_errno;
Not sure why this is required. per_lcore__rte_errno is present already in this file.

>  };
> diff --git a/lib/meson.build b/lib/meson.build index d190d84ef..98ee5ec57
> 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -36,7 +36,10 @@ libraries = [
>  	'flow_classify', 'bpf', 'graph', 'node']
> 
>  if is_windows
> -	libraries = ['kvargs','eal'] # only supported libraries for windows
> +	libraries = [
> +	'kvargs',
> +	'eal',
> +	'ring'] # only supported libraries for windows
>  endif
> 
>  default_cflags = machine_args
> --
> 2.16.1.windows.4


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

* Re: [dpdk-dev] [PATCH v2] ring: build on Windows
  2020-05-21  4:17 ` Honnappa Nagarahalli
@ 2020-05-21  8:26   ` Thomas Monjalon
  2020-05-21 15:02   ` Fady Bader
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2020-05-21  8:26 UTC (permalink / raw)
  To: Fady Bader
  Cc: dev, Honnappa Nagarahalli, talshn, yohadt, olivier.matz,
	harini.ramakrishnan, ocardona, anand.rawat, ranjit.menon,
	dmitry.kozliuk, Honnappa Nagarahalli, nd

21/05/2020 06:17, Honnappa Nagarahalli:
> <snip>
> 
> > Subject: [dpdk-dev] [PATCH v2] ring: build on Window
>                                                             ^^^^ change this to 'eal'.
> 
> Even though the compilation error points to rte_ring, this is not a issue in rte_ring library. Suggest changing the commit message to something like "eal: add per_lcore__rte_errno to export list for Windows".

The dedicated title prefix is "eal/windows:"

> > Exported per_lcore__rte_errno function to compile ring for windows.
> > 
> > compilation error logs:
> > librte_ring_rte_ring.c.obj : error LNK2019: unresolved external symbol
> > per_lcore__rte_errno referenced in function rte_ring_lookup
> > 
> > The cause was that per_lcore__rte_errno function wasn't included in the
> > export list.
> > To solve this per_lcore__rte_errno was added to the Windows export list.
> > 
> > Signed-off-by: Fady Bader <fady@mellanox.com>
> > Depends-on: series-9374 ("Windows basic memory management")
> > ---

The "Depends-on" line is not supposed to be part of the merged commit.
The trick is to insert "---" line on top of such annotation,
so it will be automatically skipped when applying the patch with "git am".
We use the same trick for changelogs.

Reminder: a v2 patch should include a changelog and be sent with these options:
	-v2 --annotate --in-reply-to 'MESSAGE-ID-OF-v1'



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

* Re: [dpdk-dev] [PATCH v2] ring: build on Windows
  2020-05-21  4:17 ` Honnappa Nagarahalli
  2020-05-21  8:26   ` Thomas Monjalon
@ 2020-05-21 15:02   ` Fady Bader
  1 sibling, 0 replies; 5+ messages in thread
From: Fady Bader @ 2020-05-21 15:02 UTC (permalink / raw)
  To: Honnappa Nagarahalli, dev
  Cc: Thomas Monjalon, Tal Shnaiderman, Yohad Tor, olivier.matz,
	harini.ramakrishnan, ocardona, anand.rawat, ranjit.menon,
	dmitry.kozliuk, nd, nd



> -----Original Message-----
> From: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
> Sent: Thursday, May 21, 2020 7:17 AM
> To: Fady Bader <fady@mellanox.com>; dev@dpdk.org
> Cc: Thomas Monjalon <thomas@monjalon.net>; Tal Shnaiderman
> <talshn@mellanox.com>; Yohad Tor <yohadt@mellanox.com>;
> olivier.matz@6wind.com; harini.ramakrishnan@microsoft.com;
> ocardona@microsoft.com; anand.rawat@intel.com;
> ranjit.menon@intel.com; dmitry.kozliuk@gmail.com; Honnappa Nagarahalli
> <Honnappa.Nagarahalli@arm.com>; nd <nd@arm.com>; nd <nd@arm.com>
> Subject: RE: [dpdk-dev] [PATCH v2] ring: build on Windows
> 
> <snip>
> 
> > Subject: [dpdk-dev] [PATCH v2] ring: build on Window
>                                                             ^^^^ change this to 'eal'.
> 
> Even though the compilation error points to rte_ring, this is not a issue in
> rte_ring library. Suggest changing the commit message to something like
> "eal: add per_lcore__rte_errno to export list for Windows".
> 
> >
> > Exported per_lcore__rte_errno function to compile ring for windows.
> >
> > compilation error logs:
> > librte_ring_rte_ring.c.obj : error LNK2019: unresolved external symbol
> > per_lcore__rte_errno referenced in function rte_ring_lookup
> >
> > The cause was that per_lcore__rte_errno function wasn't included in
> > the export list.
> > To solve this per_lcore__rte_errno was added to the Windows export list.
> >
> > Signed-off-by: Fady Bader <fady@mellanox.com>
> > Depends-on: series-9374 ("Windows basic memory management")
> > ---
> >  lib/librte_eal/rte_eal_exports.def | 1 +
> > lib/librte_eal/rte_eal_version.map | 3
> > +++
> >  lib/meson.build                    | 5 ++++-
> >  3 files changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/lib/librte_eal/rte_eal_exports.def
> > b/lib/librte_eal/rte_eal_exports.def
> > index 854b83bcd..cbb6b8cfe 100644
> > --- a/lib/librte_eal/rte_eal_exports.def
> > +++ b/lib/librte_eal/rte_eal_exports.def
> > @@ -1,5 +1,6 @@
> >  EXPORTS
> >  	__rte_panic
> > +	per_lcore__rte_errno
> >  	rte_calloc
> >  	rte_calloc_socket
> >  	rte_eal_get_configuration
> > diff --git a/lib/librte_eal/rte_eal_version.map
> > b/lib/librte_eal/rte_eal_version.map
> > index bdd014638..0f1b983b8 100644
> > --- a/lib/librte_eal/rte_eal_version.map
> > +++ b/lib/librte_eal/rte_eal_version.map
> > @@ -390,4 +390,7 @@ EXPERIMENTAL {
> >  	rte_trace_point_lookup;
> >  	rte_trace_regexp;
> >  	rte_trace_save;
> > +
> > +	# added in 20.08
> > +	__emutls_v.per_lcore__rte_errno;
> Not sure why this is required. per_lcore__rte_errno is present already in this
> file.

It is needed for the mingw64 compilation on windows.

> 
> >  };
> > diff --git a/lib/meson.build b/lib/meson.build index
> > d190d84ef..98ee5ec57
> > 100644
> > --- a/lib/meson.build
> > +++ b/lib/meson.build
> > @@ -36,7 +36,10 @@ libraries = [
> >  	'flow_classify', 'bpf', 'graph', 'node']
> >
> >  if is_windows
> > -	libraries = ['kvargs','eal'] # only supported libraries for windows
> > +	libraries = [
> > +	'kvargs',
> > +	'eal',
> > +	'ring'] # only supported libraries for windows
> >  endif
> >
> >  default_cflags = machine_args
> > --
> > 2.16.1.windows.4


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

end of thread, other threads:[~2020-05-21 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 10:44 [dpdk-dev] [PATCH v2] ring: build on Windows Fady Bader
2020-05-20 20:46 ` Ranjit Menon
2020-05-21  4:17 ` Honnappa Nagarahalli
2020-05-21  8:26   ` Thomas Monjalon
2020-05-21 15:02   ` Fady Bader

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