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 EE684A04BB; Tue, 6 Oct 2020 10:30:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1F68B11A4; Tue, 6 Oct 2020 10:30:54 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id 09057160 for ; Tue, 6 Oct 2020 10:30:53 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 5DA53DFE; Tue, 6 Oct 2020 04:30:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 06 Oct 2020 04:30:50 -0400 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= XNQ6oHVKAfVPlCHKDD4GAkcvQerBRbecvpgBT+/8V7w=; b=Z8+9REkJ42fCbQOF 6Pnc93rLQDyucUTBWuipKhdIqrIn+e0zyIwPNwjmqyJ2d6/dxgne3lEkfs6TFSod 55VFuLA+OQrVMLb4EX+1M8aF4Ih36Kiv6+XnqYvc3QrzVr0qEH0rMPXrhBSdUzhR CyFNquj5Gun35lfqjbSXjaiOLO15x2/z2yjPlxIk48IpT9OQlGHogyoSNESB1dDP Wn1dXNALjoNKeKqBADPA02vXF9qwKTj1/rs3cXsF8G6TKh59FkKMdM/xXXkCwQqN 3mDR8k458985XIyZRvF1mGK+FAUIVubutorq2tPVcBgweEeukJH/dRVUzUf0dA9G TV82FQ== 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=XNQ6oHVKAfVPlCHKDD4GAkcvQerBRbecvpgBT+/8V 7w=; b=QQePCkdHl4eaquXuVBLawHhyEy3QnRrEEMhCAnac721hhPUMZbcXho8Yr yNSGzj1KEtBSQ42BSx+hU2DMMyh6N3q+nxeSRVIp9Dq0eCT1Ps/Vpph97CQ5U7l0 AAD0l0Ens8t1DinOD54arUkEbyRnxhgw6E2gWaUKbjdRj+mgmLUVcbMbCa4/3u21 HkMK8FLhIC868d089QGnTCuGKUmAAUXhz4hG5mHdCpQT6uYCT7mCyZ28IB7ra5SJ o2mhDxC4p698gkd36/W3s/Lvn58Je/bynb+6tbicYHq4U9D9Gd7hOBJR4C9Vs0St sJm2bUY8gGvNSrH0M6wG7NpmF9iqA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeeggddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpeejkeelhfffffehieelfeetheegvddtuddvieeltdejffelteetueel veevjeffieenucffohhmrghinhepthgvshhtqdhmvghsohhnqdgsuhhilhgushdrshhhne cukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 1F7BD306467E; Tue, 6 Oct 2020 04:30:49 -0400 (EDT) From: Thomas Monjalon To: Bruce Richardson , Lance Richardson Cc: dev@dpdk.org Date: Tue, 06 Oct 2020 10:30:48 +0200 Message-ID: <18414568.0SzrnlinNP@thomas> In-Reply-To: References: <20200924163742.321600-1-lance.richardson@broadcom.com> <20200925091341.GB923@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts 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" 25/09/2020 15:27, Lance Richardson: > Bruce Richardson wrote: > > On Thu, Sep 24, 2020 at 12:37:42PM -0400, Lance Richardson wrote: > > > Add meson cross files for building i686 targets using gcc on x86_64 > > > linux hosts. > > > > > > Uusage example: > > > > > > meson --cross-file config/x86/cross-i686-linux-gcc build-i686 > > > ninja -C build-i686 > > > > > > Signed-off-by: Lance Richardson > > > --- > > > Red Hat distros use a different name for the 32-bit pkg-config > > > command from most other distros, maybe there is a better way > > > to handle this than using separate files. > > > > > > Others will probably have better naming suggestions for the files. > > > > > Just to note that rather than using cross-files, building i686 on x86_64 > > should be possible by just setting environment variables. > > > > For example, on Ubuntu 20.04, this works for me: > > > > PKG_CONFIG_LIBDIR=/usr/lib/i386-linux-gnu/pkgconfig CFLAGS='-m32' LDFLAGS='-m32' meson --werror build-32bit > > ninja -C build-32bit/ > > > > For Fedora or Redhat system the PKG_CONFIG_LIBDIR will be different (I > > think just /usr/lib/pkgconfig), but the rest should work identically. > > Thanks, that does work, although I'll have some trouble remembering it > for future Would it help to have this command in devtools/test-meson-builds.sh ?