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 EFC6DA0527; Mon, 9 Nov 2020 16:28:22 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE83D697B; Mon, 9 Nov 2020 16:28:21 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 52C43697B for ; Mon, 9 Nov 2020 16:28:19 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E92875C03A5; Mon, 9 Nov 2020 10:28:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 09 Nov 2020 10:28:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= iYH/f9WHXYdZMZxExMUV2EmxLtPezJ8E40UOL39sWZM=; b=ZE+dsLWS2vCBLLDH lvcfSQji7vXvo8oPyVoAeL+VVIr1N8vyYlBvMpQM7gBIbFvtcJkaqVYOprIe/N45 F4iOfIz9ofJvaZjuGkuD6TIerLPRSTa98mFQ5oPiWeSxh8vx9nP4LK43rwtIpj/g aNjxdoSBkSJxoeCGcomYpDQwRRH5Te0csU/XyOHNzyVDi6J4meylVwP4x8oQGsj/ kG16qNPxi46NMsPcaEkVkJtg6czbi30czRmZXL/LTsh7ixAUrQuZJJMrIyLpAzgE onew2lZPyDhsh+1KLcUh1tQbnBoOjB2kHVVj+/MFo6n9EbfZtonJguKCO7ppGJ7x aE1AGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=iYH/f9WHXYdZMZxExMUV2EmxLtPezJ8E40UOL39sW ZM=; b=binztkj5L9rcJZvBhB/kUC7aDOT5mj/WcG6iYPTV/Nj08xas7fPJl4n9O JBPwEbiUGPKWaA5G3VvllsxaZa5UsOn8DA59uy8vBfiLX/qHm1f9KDvpp93BO+q2 0mJUK94Gq/OshH77sRBuE6xlGcwCqRquR1tt0wPq6tQOZdPPDHz/cWO2elhMFe+f e6Tr86mHI6ewuRqRb6KQCRp9+29ArXinYseUYsiE0oeYKUTzravdx9YM/TJKpJxR KosNeeaLlX0whfxuovfi8UTjqQPE/1xYJVJHGYRpxxC/eOIPKoWCMwQ5C4cvTNMo jXfbzIo4h4dgoVV1kQfIkudBy7dWA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 324B6328005D; Mon, 9 Nov 2020 10:28:17 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit Cc: Bruce Richardson , dev@dpdk.org, david.marchand@redhat.com Date: Mon, 09 Nov 2020 16:28:16 +0100 Message-ID: <2070456.l6g01IXifr@thomas> In-Reply-To: <20201109145506.1758827-1-ferruh.yigit@intel.com> References: <20201109130035.3948462-1-ferruh.yigit@intel.com> <20201109145506.1758827-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] devtools: fix 32-bits build 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" 09/11/2020 15:55, Ferruh Yigit: > If the 'PKG_CONFIG_PATH' is set in the environment before script run, > 32 bit still uses that value for 64-bits libraries. > > From the build log: > > " > Using DPDK_TARGET i386-pc-linux-gnu > meson -Dexamples=l3fwd --buildtype=debugoptimized --werror > -Dc_args=-m32 -Dc_link_args=-m32 > /tmp/dpdk_maintain/self/dpdk/devtools/.. ./build-32b > ... > Using 'PKG_CONFIG_PATH' from environment with value: > '/usr/local/lib64/pkgconfig/ > " > > This causes build error when linking with the found libraries. > > Reproduced with 'librte_bpf' which only has 64 bit installed but still > enables building 'af_xdp' and link fails. > > To fix this, using default 'PKG_CONFIG_PATH' variable unless > 'CUSTOM_PKG_CONFIG_PATH' set, and set the 'CUSTOM_PKG_CONFIG_PATH' for > 32 bit build. > > Fixes: 9b83106d8784 ("devtools: test 32-bit build") > > Signed-off-by: Ferruh Yigit > --- > Cc: Bruce Richardson > Cc: Thomas Monjalon > > v2: > * Enable overwriting default 'PKG_CONFIG_PATH' value It was not my conclusion. I think we can just reset all env vars.