From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7A922A052F; Wed, 29 Jan 2020 18:50:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E92B1C0AA; Wed, 29 Jan 2020 18:50:31 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id F13F71C065 for ; Wed, 29 Jan 2020 18:50:29 +0100 (CET) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2020 09:50:28 -0800 X-IronPort-AV: E=Sophos;i="5.70,378,1574150400"; d="scan'208";a="222522886" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.97]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Jan 2020 09:50:27 -0800 Date: Wed, 29 Jan 2020 17:50:24 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: dev@dpdk.org, Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko Message-ID: <20200129175024.GB383@bricha3-MOBL.ger.corp.intel.com> References: <20200116071656.1663967-1-thomas@monjalon.net> <20200127154402.4008069-3-thomas@monjalon.net> <20200129153751.GA375@bricha3-MOBL.ger.corp.intel.com> <4090132.ejJDZkT8p0@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4090132.ejJDZkT8p0@xps> User-Agent: Mutt/1.12.1 (2019-06-15) Subject: Re: [dpdk-dev] [PATCH v2 2/4] buildtools: get static mlx dependencies for meson X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jan 29, 2020 at 06:48:14PM +0100, Thomas Monjalon wrote: > 29/01/2020 16:37, Bruce Richardson: > > Error message I got is below. This is on Ubuntu 19.10 with gcc 9.2: > > > > LD librte_pmd_mlx5.so.20.0.1 > > /usr/bin/ld: /lib/x86_64-linux-gnu/libmlx5.a(mlx5.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GL > > I think -fPIC is missing. > Which version of rdma-core is it? > As documented, you may have to build the static libraries yourself: > http://doc.dpdk.org/guides/nics/mlx5.html#installation > CFLAGS=-fPIC cmake -DIN_PLACE=1 -DENABLE_STATIC=1 -GNinja .. && ninja > Yes, that appears to be necessary. :-( What is the big advantage of doing this over default linking using standard packages, especially since for end apps the pkg-config file is taking care of providing all the correct linker args? /Bruce