DPDK patches and discussions
 help / color / Atom feed
* [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
@ 2020-01-30  8:31 David Marchand
  2020-01-30 10:53 ` Hemant Agrawal
  0 siblings, 1 reply; 6+ messages in thread
From: David Marchand @ 2020-01-30  8:31 UTC (permalink / raw)
  To: Hemant Agrawal, Nipun Gupta; +Cc: dev

Hello,

I caught a build issue on v19.11.
It looks like a dependency issue between the eventdev and cryptodev
dpaa drivers.
Can you have a look?

Thanks.


  INSTALL-LIB librte_pmd_octeontx_crypto.so.20.0
  PMDINFO opdl_evdev.o.pmd.c
  CC opdl_evdev.o.pmd.o
  LD opdl_evdev.o
  PMDINFO dpaa2_eventdev.o.pmd.c
  CC dpaa2_eventdev.o.pmd.o
  LD dpaa2_eventdev.o
  LD librte_pmd_dpaa2_event.so.20.0
  PMDINFO dpaa_eventdev.o.pmd.c
  CC dpaa_eventdev.o.pmd.o
  LD dpaa_eventdev.o
  INSTALL-LIB librte_pmd_dpaa2_event.so.20.0
  LD librte_pmd_dpaa_event.so.20.0
/usr/bin/ld: cannot find -lrte_pmd_dpaa_sec
collect2: error: ld returned 1 exit status
gmake[4]: *** [/tmp/dpdk-v19.11.Jeh/mk/rte.lib.mk:98:
librte_pmd_dpaa_event.so.20.0] Error 1
gmake[3]: *** [/tmp/dpdk-v19.11.Jeh/mk/rte.subdir.mk:35: dpaa] Error 2
gmake[3]: *** Waiting for unfinished jobs....
  LD librte_pmd_octeontx_ssovf.so.20.0
  INSTALL-LIB librte_pmd_octeontx_ssovf.so.20.0
  PMDINFO dpaa_sec.o.pmd.c
  CC dpaa_sec.o.pmd.o
  LD dpaa_sec.o
  LD librte_pmd_dpaa_sec.so.20.0
  LD librte_pmd_dsw_event.so.20.0
  INSTALL-LIB librte_pmd_dpaa_sec.so.20.0
  INSTALL-LIB librte_pmd_dsw_event.so.20.0


-- 
David Marchand


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

* Re: [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
  2020-01-30  8:31 [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec David Marchand
@ 2020-01-30 10:53 ` Hemant Agrawal
  2020-01-30 11:01   ` David Marchand
  0 siblings, 1 reply; 6+ messages in thread
From: Hemant Agrawal @ 2020-01-30 10:53 UTC (permalink / raw)
  To: David Marchand, Nipun Gupta; +Cc: dev

Hi David,
	Can you elaborate more, how are you compiling? are you using the v19.11.0 tag?
event/dpaa is dependent on crypto/dpaa_sec 

but code do take care of it. 

I am unable to reproduce it on 19.11.or current top of tree

Regards,
Hemant

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Thursday, January 30, 2020 2:02 PM
> To: Hemant Agrawal <hemant.agrawal@nxp.com>; Nipun Gupta
> <nipun.gupta@nxp.com>
> Cc: dev <dev@dpdk.org>
> Subject: Dependency issue between event/dpaa and crypto/dpaa_sec
> Importance: High
> 
> Hello,
> 
> I caught a build issue on v19.11.
> It looks like a dependency issue between the eventdev and cryptodev dpaa
> drivers.
> Can you have a look?
> 
> Thanks.
> 
> 
>   INSTALL-LIB librte_pmd_octeontx_crypto.so.20.0
>   PMDINFO opdl_evdev.o.pmd.c
>   CC opdl_evdev.o.pmd.o
>   LD opdl_evdev.o
>   PMDINFO dpaa2_eventdev.o.pmd.c
>   CC dpaa2_eventdev.o.pmd.o
>   LD dpaa2_eventdev.o
>   LD librte_pmd_dpaa2_event.so.20.0
>   PMDINFO dpaa_eventdev.o.pmd.c
>   CC dpaa_eventdev.o.pmd.o
>   LD dpaa_eventdev.o
>   INSTALL-LIB librte_pmd_dpaa2_event.so.20.0
>   LD librte_pmd_dpaa_event.so.20.0
> /usr/bin/ld: cannot find -lrte_pmd_dpaa_sec
> collect2: error: ld returned 1 exit status
> gmake[4]: *** [/tmp/dpdk-v19.11.Jeh/mk/rte.lib.mk:98:
> librte_pmd_dpaa_event.so.20.0] Error 1
> gmake[3]: *** [/tmp/dpdk-v19.11.Jeh/mk/rte.subdir.mk:35: dpaa] Error 2
> gmake[3]: *** Waiting for unfinished jobs....
>   LD librte_pmd_octeontx_ssovf.so.20.0
>   INSTALL-LIB librte_pmd_octeontx_ssovf.so.20.0
>   PMDINFO dpaa_sec.o.pmd.c
>   CC dpaa_sec.o.pmd.o
>   LD dpaa_sec.o
>   LD librte_pmd_dpaa_sec.so.20.0
>   LD librte_pmd_dsw_event.so.20.0
>   INSTALL-LIB librte_pmd_dpaa_sec.so.20.0
>   INSTALL-LIB librte_pmd_dsw_event.so.20.0
> 
> 
> --
> David Marchand


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

* Re: [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
  2020-01-30 10:53 ` Hemant Agrawal
@ 2020-01-30 11:01   ` David Marchand
  2020-02-13 12:06     ` Hemant Agrawal
  0 siblings, 1 reply; 6+ messages in thread
From: David Marchand @ 2020-01-30 11:01 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: Nipun Gupta, dev

On Thu, Jan 30, 2020 at 11:53 AM Hemant Agrawal <hemant.agrawal@nxp.com> wrote:
>         Can you elaborate more, how are you compiling? are you using the v19.11.0 tag?
> event/dpaa is dependent on crypto/dpaa_sec
>
> but code do take care of it.

Yes, the v19.11 tag.
Using ./devtools/test-build.sh, and I hit the issue once with the
i686-native-linux-gcc+shared+debug+default.


I could not find a dependency in the makefiles for this.
But meson has this dependency.

drivers/event/dpaa/meson.build
deps += ['pmd_dpaa', 'pmd_dpaa_sec']


I suppose I can catch it because I build with -j28.
I have been burning^Wcompiling a lot, those weeks, but this is the
first time I caught it.


-- 
David Marchand


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

* Re: [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
  2020-01-30 11:01   ` David Marchand
@ 2020-02-13 12:06     ` Hemant Agrawal
  2020-02-13 12:16       ` David Marchand
  0 siblings, 1 reply; 6+ messages in thread
From: Hemant Agrawal @ 2020-02-13 12:06 UTC (permalink / raw)
  To: David Marchand; +Cc: Nipun Gupta, dev

Hi David,
	Sorry for taking time on it

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Thursday, January 30, 2020 4:32 PM
> To: Hemant Agrawal <hemant.agrawal@nxp.com>
> Cc: Nipun Gupta <nipun.gupta@nxp.com>; dev <dev@dpdk.org>
> Subject: Re: Dependency issue between event/dpaa and crypto/dpaa_sec
> Importance: High
> 
> On Thu, Jan 30, 2020 at 11:53 AM Hemant Agrawal
> <hemant.agrawal@nxp.com> wrote:
> >         Can you elaborate more, how are you compiling? are you using the
> v19.11.0 tag?
> > event/dpaa is dependent on crypto/dpaa_sec
> >
> > but code do take care of it.
> 
> Yes, the v19.11 tag.
> Using ./devtools/test-build.sh, and I hit the issue once with the
> i686-native-linux-gcc+shared+debug+default.
> 
> 
> I could not find a dependency in the makefiles for this.
> But meson has this dependency.
> 
> drivers/event/dpaa/meson.build
> deps += ['pmd_dpaa', 'pmd_dpaa_sec']
> 
> 
[Hemant] Makefile do have dependency set, but at a different place. I have done a small change. Please check if you can :

diff --git a/drivers/event/dpaa/Makefile b/drivers/event/dpaa/Makefile
index 2f53efdf9e..093d3a38cf 100644
--- a/drivers/event/dpaa/Makefile
+++ b/drivers/event/dpaa/Makefile
@@ -21,8 +21,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
 CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
 CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
-
-LDLIBS += -lrte_pmd_dpaa_sec
 CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa_sec

 EXPORT_MAP := rte_pmd_dpaa_event_version.map
@@ -34,6 +32,7 @@ LDLIBS += -lrte_bus_dpaa
 LDLIBS += -lrte_mempool_dpaa
 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
+LDLIBS += -lrte_pmd_dpaa_sec
 LDLIBS += -lrte_eventdev -lrte_pmd_dpaa -lrte_bus_vdev
 LDLIBS += -lrte_common_dpaax



> I suppose I can catch it because I build with -j28.
> I have been burning^Wcompiling a lot, those weeks, but this is the first time I
> caught it.
> 
> 
> --
> David Marchand


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

* Re: [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
  2020-02-13 12:06     ` Hemant Agrawal
@ 2020-02-13 12:16       ` David Marchand
  2020-02-21 14:31         ` David Marchand
  0 siblings, 1 reply; 6+ messages in thread
From: David Marchand @ 2020-02-13 12:16 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: Nipun Gupta, dev

On Thu, Feb 13, 2020 at 1:07 PM Hemant Agrawal <hemant.agrawal@nxp.com> wrote:
> > I could not find a dependency in the makefiles for this.
> > But meson has this dependency.
> >
> > drivers/event/dpaa/meson.build
> > deps += ['pmd_dpaa', 'pmd_dpaa_sec']
> >
> >
> [Hemant] Makefile do have dependency set, but at a different place. I have done a small change. Please check if you can :

I must have missed it then.
Can you describe how this dependency is expressed in the makefiles?

>
> diff --git a/drivers/event/dpaa/Makefile b/drivers/event/dpaa/Makefile
> index 2f53efdf9e..093d3a38cf 100644
> --- a/drivers/event/dpaa/Makefile
> +++ b/drivers/event/dpaa/Makefile
> @@ -21,8 +21,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
>  CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
>  CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
>  CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
> -
> -LDLIBS += -lrte_pmd_dpaa_sec
>  CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa_sec
>
>  EXPORT_MAP := rte_pmd_dpaa_event_version.map
> @@ -34,6 +32,7 @@ LDLIBS += -lrte_bus_dpaa
>  LDLIBS += -lrte_mempool_dpaa
>  LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
>  LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
> +LDLIBS += -lrte_pmd_dpaa_sec
>  LDLIBS += -lrte_eventdev -lrte_pmd_dpaa -lrte_bus_vdev
>  LDLIBS += -lrte_common_dpaax

I don't see how this would affect the building order between
drivers/event/dpaa and drivers/crypto/dpaa_sec.


-- 
David Marchand


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

* Re: [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec
  2020-02-13 12:16       ` David Marchand
@ 2020-02-21 14:31         ` David Marchand
  0 siblings, 0 replies; 6+ messages in thread
From: David Marchand @ 2020-02-21 14:31 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: Nipun Gupta, dev

On Thu, Feb 13, 2020 at 1:16 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> On Thu, Feb 13, 2020 at 1:07 PM Hemant Agrawal <hemant.agrawal@nxp.com> wrote:
> > > I could not find a dependency in the makefiles for this.
> > > But meson has this dependency.
> > >
> > > drivers/event/dpaa/meson.build
> > > deps += ['pmd_dpaa', 'pmd_dpaa_sec']
> > >
> > >
> > [Hemant] Makefile do have dependency set, but at a different place. I have done a small change. Please check if you can :
>
> I must have missed it then.
> Can you describe how this dependency is expressed in the makefiles?
>
> >
> > diff --git a/drivers/event/dpaa/Makefile b/drivers/event/dpaa/Makefile
> > index 2f53efdf9e..093d3a38cf 100644
> > --- a/drivers/event/dpaa/Makefile
> > +++ b/drivers/event/dpaa/Makefile
> > @@ -21,8 +21,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/dpaa/include/
> >  CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa
> >  CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax
> >  CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include
> > -
> > -LDLIBS += -lrte_pmd_dpaa_sec
> >  CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa_sec
> >
> >  EXPORT_MAP := rte_pmd_dpaa_event_version.map
> > @@ -34,6 +32,7 @@ LDLIBS += -lrte_bus_dpaa
> >  LDLIBS += -lrte_mempool_dpaa
> >  LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
> >  LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
> > +LDLIBS += -lrte_pmd_dpaa_sec
> >  LDLIBS += -lrte_eventdev -lrte_pmd_dpaa -lrte_bus_vdev
> >  LDLIBS += -lrte_common_dpaax
>
> I don't see how this would affect the building order between
> drivers/event/dpaa and drivers/crypto/dpaa_sec.

Just hit it again, on master.

I am simply running ./devtools/test-builds.sh with:
export DPDK_MAKE_JOBS=28
target i686-native-linux-gcc+shared+debug+default

  LD librte_pmd_dpaa2_event.so.20.0.1
  LD dpaa_eventdev.o
/usr/bin/ld: cannot find -lrte_pmd_dpaa2_sec
collect2: error: ld returned 1 exit status
gmake[4]: *** [/home/dmarchan/dpdk/mk/rte.lib.mk:100:
librte_pmd_dpaa2_event.so.20.0.1] Error 1
gmake[3]: *** [/home/dmarchan/dpdk/mk/rte.subdir.mk:35: dpaa2] Error 2
gmake[3]: *** Waiting for unfinished jobs....
  LD librte_pmd_sw_event.so.20.0.1
  LD librte_pmd_dpaa_event.so.20.0.1
/usr/bin/ld: cannot find -lrte_pmd_dpaa_sec
collect2: error: ld returned 1 exit status
gmake[4]: *** [/home/dmarchan/dpdk/mk/rte.lib.mk:100:
librte_pmd_dpaa_event.so.20.0.1] Error 1
gmake[3]: *** [/home/dmarchan/dpdk/mk/rte.subdir.mk:35: dpaa] Error 2
  INSTALL-LIB librte_pmd_sw_event.so.20.0.1
  LD librte_pmd_octeontx_ssovf.so.20.0.1
  INSTALL-LIB librte_pmd_octeontx_ssovf.so.20.0.1
  PMDINFO dpaa_sec.o.pmd.c
  CC dpaa_sec.o.pmd.o
  LD dpaa_sec.o
  PMDINFO dpaa2_sec_dpseci.o.pmd.c
  CC dpaa2_sec_dpseci.o.pmd.o
  LD librte_pmd_dpaa_sec.so.20.0.1
  LD dpaa2_sec_dpseci.o
  INSTALL-LIB librte_pmd_dpaa_sec.so.20.0.1
  LD librte_pmd_dpaa2_sec.so.20.0.1
  INSTALL-LIB librte_pmd_dpaa2_sec.so.20.0.1
  LD librte_pmd_ccp.so.20.0.1
  INSTALL-LIB librte_pmd_ccp.so.20.0.1
  LD librte_pmd_opdl_event.so.20.0.1


-- 
David Marchand


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

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30  8:31 [dpdk-dev] Dependency issue between event/dpaa and crypto/dpaa_sec David Marchand
2020-01-30 10:53 ` Hemant Agrawal
2020-01-30 11:01   ` David Marchand
2020-02-13 12:06     ` Hemant Agrawal
2020-02-13 12:16       ` David Marchand
2020-02-21 14:31         ` David Marchand

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/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 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev


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


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