DPDK patches and discussions
 help / color / Atom feed
* [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with MLNX_OFED_LINUX-5.1-0.6.6.0
@ 2020-07-31  4:02 bugzilla
  2020-08-02 14:13 ` Gregory Etelson
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2020-07-31  4:02 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=519

            Bug ID: 519
           Summary: DPDK 20.08-rc3 meson build fails with
                    MLNX_OFED_LINUX-5.1-0.6.6.0
           Product: DPDK
           Version: 20.08
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: meson
          Assignee: dev@dpdk.org
          Reporter: lee.roberts@hpe.com
  Target Milestone: ---

Created attachment 114
  --> https://bugs.dpdk.org/attachment.cgi?id=114&action=edit
console output from failed build

DPDK 20.08-rc3 fails to build on RHEL 8.2 with MLNX_OFED_LINUX-5.1-0.6.6.0.
MLNX_OFED_LINUX was installed with "./mlnxofedinstall --upstream-libs --dpdk".

[root@vp10p1 dpdk-20.08-rc3]# ninja -C build
ninja: Entering directory `build'
[1053/2565]GLinkingitarget_drivers/librte_common_mlx5.so.20.0.3.Kstom/command.Khns3_fdir.c.o'.Ktor.c.o'.KKs'.K3.symbols'.K'.Ko'.K
FAILED: drivers/librte_common_mlx5.so.20.0.3
cc  -o drivers/librte_common_mlx5.so.20.0.3
'drivers/a715181@@rte_common_mlx5@sha/meson-generated_.._rte_common_mlx5.pmd.c.o'
'drivers/a7
15181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_devx_cmds.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common.c.o' 'dr
ivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_mp.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_common_
mr.c.o' 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_malloc.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5
_common_pci.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_nl.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/commo
n_mlx5_linux_mlx5_common_os.c.o'
'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_common_verbs.c.o'
'drivers/a715181@@tmp
_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o' -Wl,--no-undefined
-Wl,--as-needed -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-son
ame,librte_common_mlx5.so.20.0 -Wl,--no-as-needed -pthread -lm -ldl -lnuma
lib/librte_hash.so.20.0.3 lib/librte_eal.so.20.0.3 lib/librte_kvargs.so.20.0.3
lib/librte_telemetry.so.20.0.3 lib/librte_ring.so.20.0.3
lib/librte_pci.so.20.0.3 drivers/librte_bus_pci.so.20.0.3
lib/librte_net.so.20.0.3 lib/librte_mbuf.so.20.0.3 lib/librte_mempool.so.20.0.3
-Wl,--end-group
-Wl,--version-script=/home/lroberts/dpdk-20.08-rc3/drivers/common/mlx5/rte_common_mlx5_version.map
'-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/'
-Wl,-rpath-link,/home/lroberts/dpdk-20.08-rc3/build/lib:/home/lroberts/dpdk-20.08-rc3/build/drivers
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_dv_open_device':
mlx5_glue.c:(.text+0x3e0): undefined reference to `mlx5dv_open_device'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_dv_free_pp':
mlx5_glue.c:(.text+0x211): undefined reference to `mlx5dv_pp_free'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_dv_alloc_pp':
mlx5_glue.c:(.text+0x221): undefined reference to `mlx5dv_pp_alloc'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_dr_reclaim_domain_memory':
mlx5_glue.c:(.text+0x23b): undefined reference to
`mlx5dv_dr_domain_set_reclaim_device_memory'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_devx_get_event':
mlx5_glue.c:(.text+0x241): undefined reference to `mlx5dv_devx_get_event'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_devx_subscribe_devx_event_fd':
mlx5_glue.c:(.text+0x254): undefined reference to
`mlx5dv_devx_subscribe_devx_event_fd'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_devx_subscribe_devx_event':
mlx5_glue.c:(.text+0x264): undefined reference to
`mlx5dv_devx_subscribe_devx_event'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_devx_destroy_event_channel':
mlx5_glue.c:(.text+0x271): undefined reference to
`mlx5dv_devx_destroy_event_channel'
...
mlx5_glue.c:(.text+0xa21): undefined reference to `ibv_open_device'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_free_device_list':
mlx5_glue.c:(.text+0xa31): undefined reference to `ibv_free_device_list'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_get_device_list':
mlx5_glue.c:(.text+0xa41): undefined reference to `ibv_get_device_list'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_dealloc_pd':
mlx5_glue.c:(.text+0xa51): undefined reference to `ibv_dealloc_pd'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_alloc_pd':
mlx5_glue.c:(.text+0xa61): undefined reference to `ibv_alloc_pd'
drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o: In
function `mlx5_glue_fork_init':
mlx5_glue.c:(.text+0xa71): undefined reference to `ibv_fork_init'
collect2: error: ld returned 1 exit status
[1102/2565]
CompilinggCrobject_'lib/76b5a35@@rte_pipeline@sta/librte_pipeline_rte_table_action.c.o'.KK.K.Ks'.K
ninja: build stopped: subcommand failed.
[root@vp10p1 dpdk-20.08-rc3]# 

Build succeeds with "make".

Build succeeds with MLNX_OFED_LINUX-5.0-2.1.8.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* Re: [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with MLNX_OFED_LINUX-5.1-0.6.6.0
  2020-07-31  4:02 [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with MLNX_OFED_LINUX-5.1-0.6.6.0 bugzilla
@ 2020-08-02 14:13 ` Gregory Etelson
  0 siblings, 0 replies; 2+ messages in thread
From: Gregory Etelson @ 2020-08-02 14:13 UTC (permalink / raw)
  To: bugzilla, dev; +Cc: Asaf Penso, Thomas Monjalon, Shy Shyman

The compilation fault did not reproduce on my setup:
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.2 (Ootpa)
$ meson --version
0.49.2
$ ninja --version
1.8.2
ofed_info -s
MLNX_OFED_LINUX-5.1-0.6.6.0
$ git show HEAD
commit 6636b04b82897816e0e05134f55a578cb7e124bc (tag: v20.08-rc3)
$ meson -Dexamples=all build
$ ninja -C build

According to the log, compiler failed to locate symbols defined in libibverbs include directory. 
Please verify openibd service was running during compilation.

Regards,
Gregory

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of bugzilla@dpdk.org
> Sent: Friday, July 31, 2020 07:03
> To: dev@dpdk.org
> Subject: [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with
> MLNX_OFED_LINUX-5.1-0.6.6.0
> 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.
> dpdk.org%2Fshow_bug.cgi%3Fid%3D519&amp;data=02%7C01%7Cgetelson%
> 40mellanox.com%7C989a13808b2a402eb9bd08d835069c26%7Ca652971c7d2
> e4d9ba6a4d149256f461b%7C0%7C0%7C637317649796122841&amp;sdata=9
> lB8qWK1KjBitjt3%2BFswpSPu%2F3UbkHEEOruL%2B%2BgqgFk%3D&amp;rese
> rved=0
> 
>             Bug ID: 519
>            Summary: DPDK 20.08-rc3 meson build fails with
>                     MLNX_OFED_LINUX-5.1-0.6.6.0
>            Product: DPDK
>            Version: 20.08
>           Hardware: x86
>                 OS: Linux
>             Status: UNCONFIRMED
>           Severity: normal
>           Priority: Normal
>          Component: meson
>           Assignee: dev@dpdk.org
>           Reporter: lee.roberts@hpe.com
>   Target Milestone: ---
> 
> Created attachment 114
>   -->
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.
> dpdk.org%2Fattachment.cgi%3Fid%3D114%26action%3Dedit&amp;data=02%
> 7C01%7Cgetelson%40mellanox.com%7C989a13808b2a402eb9bd08d835069c
> 26%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C63731764979612
> 2841&amp;sdata=fYyBoMnz9xsmwr7IMmXpb%2FRMjLNVir6PesYIpSztxvc%3
> D&amp;reserved=0
> console output from failed build
> 
> DPDK 20.08-rc3 fails to build on RHEL 8.2 with MLNX_OFED_LINUX-5.1-
> 0.6.6.0.
> MLNX_OFED_LINUX was installed with "./mlnxofedinstall --upstream-libs --
> dpdk".
> 
> [root@vp10p1 dpdk-20.08-rc3]# ninja -C build
> ninja: Entering directory `build'
> [1053/2565]GLinkingitarget_drivers/librte_common_mlx5.so.20.0.3.Kstom/c
> ommand.Khns3_fdir.c.o'.Ktor.c.o'.KKs'.K3.symbols'.K'.Ko'.K
> FAILED: drivers/librte_common_mlx5.so.20.0.3
> cc  -o drivers/librte_common_mlx5.so.20.0.3
> 'drivers/a715181@@rte_common_mlx5@sha/meson-
> generated_.._rte_common_mlx5.pmd.c.o'
> 'drivers/a7
> 15181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_devx_cmds.c.
> o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_co
> mmon.c.o' 'dr
> ivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_comm
> on_mp.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_co
> mmon_
> mr.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5_ma
> lloc.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_mlx5
> _common_pci.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_ml
> x5_nl.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/commo
> n_mlx5_linux_mlx5_common_os.c.o'
> 'drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_ml
> x5_common_verbs.c.o'
> 'drivers/a715181@@tmp
> _rte_common_mlx5@sta/common_mlx5_linux_mlx5_glue.c.o' -Wl,--no-
> undefined -Wl,--as-needed -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-son
> ame,librte_common_mlx5.so.20.0 -Wl,--no-as-needed -pthread -lm -ldl -
> lnuma
> lib/librte_hash.so.20.0.3 lib/librte_eal.so.20.0.3 lib/librte_kvargs.so.20.0.3
> lib/librte_telemetry.so.20.0.3 lib/librte_ring.so.20.0.3
> lib/librte_pci.so.20.0.3 drivers/librte_bus_pci.so.20.0.3
> lib/librte_net.so.20.0.3 lib/librte_mbuf.so.20.0.3
> lib/librte_mempool.so.20.0.3 -Wl,--end-group -Wl,--version-
> script=/home/lroberts/dpdk-20.08-
> rc3/drivers/common/mlx5/rte_common_mlx5_version.map
> '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/'
> -Wl,-rpath-link,/home/lroberts/dpdk-20.08-
> rc3/build/lib:/home/lroberts/dpdk-20.08-rc3/build/drivers
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_dv_open_device':
> mlx5_glue.c:(.text+0x3e0): undefined reference to `mlx5dv_open_device'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_dv_free_pp':
> mlx5_glue.c:(.text+0x211): undefined reference to `mlx5dv_pp_free'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_dv_alloc_pp':
> mlx5_glue.c:(.text+0x221): undefined reference to `mlx5dv_pp_alloc'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_dr_reclaim_domain_memory':
> mlx5_glue.c:(.text+0x23b): undefined reference to
> `mlx5dv_dr_domain_set_reclaim_device_memory'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_devx_get_event':
> mlx5_glue.c:(.text+0x241): undefined reference to `mlx5dv_devx_get_event'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_devx_subscribe_devx_event_fd':
> mlx5_glue.c:(.text+0x254): undefined reference to
> `mlx5dv_devx_subscribe_devx_event_fd'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_devx_subscribe_devx_event':
> mlx5_glue.c:(.text+0x264): undefined reference to
> `mlx5dv_devx_subscribe_devx_event'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_devx_destroy_event_channel':
> mlx5_glue.c:(.text+0x271): undefined reference to
> `mlx5dv_devx_destroy_event_channel'
> ...
> mlx5_glue.c:(.text+0xa21): undefined reference to `ibv_open_device'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_free_device_list':
> mlx5_glue.c:(.text+0xa31): undefined reference to `ibv_free_device_list'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_get_device_list':
> mlx5_glue.c:(.text+0xa41): undefined reference to `ibv_get_device_list'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_dealloc_pd':
> mlx5_glue.c:(.text+0xa51): undefined reference to `ibv_dealloc_pd'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_alloc_pd':
> mlx5_glue.c:(.text+0xa61): undefined reference to `ibv_alloc_pd'
> drivers/a715181@@tmp_rte_common_mlx5@sta/common_mlx5_linux_mlx
> 5_glue.c.o: In function `mlx5_glue_fork_init':
> mlx5_glue.c:(.text+0xa71): undefined reference to `ibv_fork_init'
> collect2: error: ld returned 1 exit status [1102/2565]
> CompilinggCrobject_'lib/76b5a35@@rte_pipeline@sta/librte_pipeline_rte_t
> able_action.c.o'.KK.K.Ks'.K
> ninja: build stopped: subcommand failed.
> [root@vp10p1 dpdk-20.08-rc3]#
> 
> Build succeeds with "make".
> 
> Build succeeds with MLNX_OFED_LINUX-5.0-2.1.8.0
> 
> --
> You are receiving this mail because:
> You are the assignee for the bug.

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  4:02 [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with MLNX_OFED_LINUX-5.1-0.6.6.0 bugzilla
2020-08-02 14:13 ` Gregory Etelson

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