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 66C35A00BE; Fri, 11 Feb 2022 11:57:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 562D341144; Fri, 11 Feb 2022 11:57:22 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 004CE40150 for ; Fri, 11 Feb 2022 11:57:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644577041; x=1676113041; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Wv8KktJVEmYIohlNiIdJiQDI4qNTLYC9jPvHQOYzuqo=; b=I5FGtuDsy+tZHE3a/P1j4xTCTzemtYaq6rna6p22vvkKlxYE5cuqv+73 hJ3w5mHe6H/YYB10do0FdY6Axjgh5MxiP2rwpXCCw/akxjiLEJasNcBWi n0Bsl5D0JRcqsJK0C4QZbKJA3QLetwLYOfMlocJ69K9hF9hVmzwYWbEzD JcES0VuJEKIUH/M+/mYo7514BkoE368BjaYfEPEMbULN9RlWnNRGNJqUH +X5CVbpFm4jYFMkjO1oZ7UVXSUXur3mluIE3P6HUaYOkwhsCxIeRUdHdb SH/XDFu2yW9w5gmBW0pF9Ns3xgOVbKgu9k4kY+aGvog1kS76MvJri8ViA g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="237115863" X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="237115863" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 02:57:20 -0800 X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="634052749" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.19.11]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 11 Feb 2022 02:57:18 -0800 Date: Fri, 11 Feb 2022 10:57:15 +0000 From: Bruce Richardson To: Thomas Monjalon Cc: dev@dpdk.org, Aaron Conole , Michael Santana Subject: Re: [PATCH v4 7/7] buildtools/chkincs: test headers for C++ compatibility Message-ID: References: <20220204174209.440207-1-bruce.richardson@intel.com> <20220210154239.587185-1-bruce.richardson@intel.com> <20220210154239.587185-8-bruce.richardson@intel.com> <17685173.sWSEgdgrri@thomas> 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, Feb 11, 2022 at 10:31:38AM +0000, Bruce Richardson wrote: > On Thu, Feb 10, 2022 at 10:58:37PM +0100, Thomas Monjalon wrote: > > 10/02/2022 16:42, Bruce Richardson: > > > +executable('chkincs-cpp', cpp_sources, + cpp_args: ['-include', > > > 'rte_config.h', cflags], + link_args: dpdk_extra_ldflags, + > > > include_directories: includes, + dependencies: deps, + > > > link_whole: dpdk_static_libraries + dpdk_drivers, + install: > > > false) > > > > devtools/test-meson-builds.sh is failing on build-x86-generic at link > > stage: /usr/bin/ld: cannot find -lIPSec_MB That's probably because there > > is no pkg-config file for this lib, and it is not installed in a standard > > directory, so my setup is adding -L in LDFLAGS. > > > The test-meson-build.sh script works fine for me on my system with the > ipsec_mb libraries being found ok [installed in standard path]. Can you > share how you are adding the extra library paths, is it via environment or > via c_link_args? > Actually, I just realised that these chkincs binaries don't need to be linked with all these libraries at all, since they don't actually call any functions and are just meant to check includes. Let me test with removing all the "link_whole:" parameters and if that works, submit it as a new patch. That might solve your issues here - again depending on how your environment is set up. /Bruce