From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86CE1A04FD; Mon, 23 May 2022 10:20:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 676224014F; Mon, 23 May 2022 10:20:06 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CF86540041 for ; Mon, 23 May 2022 10:20:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653294005; x=1684830005; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xvYguTH5dUMeeX0ioRVUgGEvfqP9mBFSkBfBKWK4C+Y=; b=DaNhU5cDftpk364pqvsMcAeKBwlCd5olFaSEaRDpqIMz5xASYH3gTfnL 5GT7M1nZElIOJWHN/MHGmfJ0aIF0Rgf2J7svV0z0A3bY+KtCQu/RI5Y/e KnL+ctWJfJ8kxIUZ60+ioubEZMeeqhDisGP6YnXl3XW+yzetZdyT/HElM HcYLzZyugYEyBLv5BiZGq1CQP6d1Ee4lO2YSwhDgwBbRwDHMiSWC0GCs2 5NoIPu9vjnQ8E6LHeJSUHQjtnB2KdlBoLPHDfLSxKjKCuJxYoiWmqc1BR v4ZmynNrq+ILgQdHSrjBrgeW4sYpIbBvuWiXD7iiPc3RsYang+55Kp6Ry w==; X-IronPort-AV: E=McAfee;i="6400,9594,10355"; a="298460243" X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="298460243" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 01:20:03 -0700 X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="744624339" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.4.106]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 23 May 2022 01:20:02 -0700 Date: Mon, 23 May 2022 09:19:59 +0100 From: Bruce Richardson To: Ben Magistro Cc: dev@dpdk.org Subject: Re: static link + pkg-config assistance Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, May 20, 2022 at 10:35:07PM -0400, Ben Magistro wrote: > I've been working through some updates to the build system for TLDK and > have been working through the different variants (system vs fallback + > shared vs static). I've been able to successfully build and run the > unit test app for most of these combinations however, I haven't been > able to get the system static combination to work successfully yet, > OS: CentOS 7.9 + devtoolset-9 (gcc 9.3.1) > DPDK: 21.11 > I built DPDK using `meson build` + `ninja -C build` using default > options and installed using `ninja -C build install`. > When configuring TLDK, I get an error indicating the static libraries > cannot be found. I'm still investigating this, but could use some > assistance. I wouldn't rule out an issue in the meson files for TLDK. > [bmagistro@lvdi-01 tldk-system-static]$ meson build > -Dpkg_config_path=/usr/local/lib64/pkgconfig > The Meson build system > Version: 0.55.1 > Source dir: /home/bmagistro/github/tldk-system-static > Build dir: /home/bmagistro/github/tldk-system-static/build > Build type: native build > Program cat found: YES > Project name: TLDK > Project version: 21.11.0 > C compiler for the host machine: cc (gcc 9.3.1 "cc (GCC) 9.3.1 20200408 > (Red Hat 9.3.1-2)") > C linker for the host machine: cc ld.bfd 2.32-16 > C++ compiler for the host machine: c++ (gcc 9.3.1 "c++ (GCC) 9.3.1 > 20200408 (Red Hat 9.3.1-2)") > C++ linker for the host machine: c++ ld.bfd 2.32-16 > Host machine cpu family: x86_64 > Host machine cpu: x86_64 > Message: ## Building in Developer Mode ## > Found pkg-config: /usr/bin/pkg-config (0.27.1) Can you try installing a newer version of pkg-config or pkgconf. We have previously encountered issues with the version of pkg-config installed on RHEL 7 and Centos 7. It does some reordering of arguments and flags that can break things under certain circumstances. See: https://doc.dpdk.org/guides-21.11/linux_gsg/sys_reqs.html#building-dpdk-applications /Bruce