patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] examples/ntb: fix build dependency
@ 2021-11-16 20:51 David Marchand
  2021-11-17  8:58 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: David Marchand @ 2021-11-16 20:51 UTC (permalink / raw)
  To: dev; +Cc: thomas, stable, Jingjing Wu, Junfeng Guo, Xiaoyun Li

Caught while building with -Ddisable_drivers=*/*.
This example requires raw/ntb specific API.
Fix dependency to avoid a compilation error:

FAILED: examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o 
ccache gcc -Iexamples/c590b3c@@dpdk-ntb@exe -Iexamples -I../examples 
  -Iexamples/ntb -I../examples/ntb -I. -I../ -Iconfig -I../config
  -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include
  -I../lib/eal/linux/include -Ilib/eal/x86/include
  -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common
  -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs
  -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics
  -Ilib/telemetry -I../lib/telemetry -Ilib/mempool -I../lib/mempool
  -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf
  -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter
  -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/rawdev
  -I../lib/rawdev -fdiagnostics-color=always -pipe -Wall
  -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra
  -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral
  -Wformat-security -Wmissing-declarations -Wmissing-prototypes
  -Wnested-externs -Wold-style-definition -Wpointer-arith
  -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings
  -Wno-missing-field-initializers -D_GNU_SOURCE -march=corei7
  -Wno-format-truncation -D_FILE_OFFSET_BITS=64
  -DALLOW_EXPERIMENTAL_API  -MD
  -MQ 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o'
  -MF 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o.d'
  -o 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o'
  -c ../examples/ntb/ntb_fwd.c
../examples/ntb/ntb_fwd.c:21:10: fatal error: rte_pmd_ntb.h:
  No such file or directory
 #include <rte_pmd_ntb.h>
          ^~~~~~~~~~~~~~~
compilation terminated.

Fixes: 5194299d6ef5 ("examples/ntb: support more functions")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 examples/ntb/meson.build | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/examples/ntb/meson.build b/examples/ntb/meson.build
index 37899dfeb6..18eaffdf21 100644
--- a/examples/ntb/meson.build
+++ b/examples/ntb/meson.build
@@ -12,11 +12,8 @@ if not is_linux
     subdir_done()
 endif
 
-deps += 'rawdev'
+deps += ['rawdev', 'raw_ntb']
 cflags += ['-D_FILE_OFFSET_BITS=64']
 sources = files(
         'ntb_fwd.c',
 )
-if dpdk_conf.has('RTE_RAW_NTB')
-    deps += 'raw_ntb'
-endif
-- 
2.23.0


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

* Re: [PATCH] examples/ntb: fix build dependency
  2021-11-16 20:51 [PATCH] examples/ntb: fix build dependency David Marchand
@ 2021-11-17  8:58 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2021-11-17  8:58 UTC (permalink / raw)
  To: David Marchand; +Cc: dev, stable, Jingjing Wu, Junfeng Guo, Xiaoyun Li

16/11/2021 21:51, David Marchand:
> Caught while building with -Ddisable_drivers=*/*.
> This example requires raw/ntb specific API.
> Fix dependency to avoid a compilation error:
> 
> FAILED: examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o 
> ccache gcc -Iexamples/c590b3c@@dpdk-ntb@exe -Iexamples -I../examples 
>   -Iexamples/ntb -I../examples/ntb -I. -I../ -Iconfig -I../config
>   -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include
>   -I../lib/eal/linux/include -Ilib/eal/x86/include
>   -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common
>   -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs
>   -Ilib/telemetry/../metrics -I../lib/telemetry/../metrics
>   -Ilib/telemetry -I../lib/telemetry -Ilib/mempool -I../lib/mempool
>   -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/mbuf
>   -I../lib/mbuf -Ilib/ethdev -I../lib/ethdev -Ilib/meter
>   -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Ilib/rawdev
>   -I../lib/rawdev -fdiagnostics-color=always -pipe -Wall
>   -Winvalid-pch -Werror -O2 -g -include rte_config.h -Wextra
>   -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral
>   -Wformat-security -Wmissing-declarations -Wmissing-prototypes
>   -Wnested-externs -Wold-style-definition -Wpointer-arith
>   -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings
>   -Wno-missing-field-initializers -D_GNU_SOURCE -march=corei7
>   -Wno-format-truncation -D_FILE_OFFSET_BITS=64
>   -DALLOW_EXPERIMENTAL_API  -MD
>   -MQ 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o'
>   -MF 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o.d'
>   -o 'examples/c590b3c@@dpdk-ntb@exe/ntb_ntb_fwd.c.o'
>   -c ../examples/ntb/ntb_fwd.c
> ../examples/ntb/ntb_fwd.c:21:10: fatal error: rte_pmd_ntb.h:
>   No such file or directory
>  #include <rte_pmd_ntb.h>
>           ^~~~~~~~~~~~~~~
> compilation terminated.
> 
> Fixes: 5194299d6ef5 ("examples/ntb: support more functions")
> Cc: stable@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>

Applied, thanks.




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

end of thread, other threads:[~2021-11-17  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 20:51 [PATCH] examples/ntb: fix build dependency David Marchand
2021-11-17  8:58 ` Thomas Monjalon

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

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

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


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