DPDK-dev Archive on lore.kernel.org
 help / color / Atom feed
From: Gregory Etelson <getelson@mellanox.com>
To: "bugzilla@dpdk.org" <bugzilla@dpdk.org>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Asaf Penso <asafp@mellanox.com>,
	Thomas Monjalon <thomas@monjalon.net>,
	Shy Shyman <shys@mellanox.com>
Subject: Re: [dpdk-dev] [Bug 519] DPDK 20.08-rc3 meson build fails with MLNX_OFED_LINUX-5.1-0.6.6.0
Date: Sun, 2 Aug 2020 14:13:01 +0000
Message-ID: <DB8PR05MB67619E8907F27CD0CA10C217A84C0@DB8PR05MB6761.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <bug-519-3@http.bugs.dpdk.org/>

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.

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-31  4:02 bugzilla
2020-08-02 14:13 ` Gregory Etelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB8PR05MB67619E8907F27CD0CA10C217A84C0@DB8PR05MB6761.eurprd05.prod.outlook.com \
    --to=getelson@mellanox.com \
    --cc=asafp@mellanox.com \
    --cc=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    --cc=shys@mellanox.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK-dev Archive on lore.kernel.org

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

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.dpdk.dev


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