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 38813A04C0; Fri, 25 Sep 2020 11:13:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E00701E4E8; Fri, 25 Sep 2020 11:13:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 14A7D1D150 for ; Fri, 25 Sep 2020 11:13:46 +0200 (CEST) IronPort-SDR: izBqyHRe8Eli+0IXym3ev0aVqziez9kLUsEcZDNlgzvmCyRm80a3D8v+FKo1dz+u+EKd+jGP9J s41JezZ1GC8g== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="149246482" X-IronPort-AV: E=Sophos;i="5.77,301,1596524400"; d="scan'208";a="149246482" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2020 02:13:45 -0700 IronPort-SDR: iosOOs0fYZHTwqPrPhH/8eYi8RfYQebHytF3YX5YyaXvAkAvN3QjrtZ6NdAPj2bIvrepCrGdZS kMWQNmVLTNVA== X-IronPort-AV: E=Sophos;i="5.77,301,1596524400"; d="scan'208";a="487393812" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.51.38]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 25 Sep 2020 02:13:44 -0700 Date: Fri, 25 Sep 2020 10:13:41 +0100 From: Bruce Richardson To: Lance Richardson Cc: dev@dpdk.org Message-ID: <20200925091341.GB923@bricha3-MOBL.ger.corp.intel.com> References: <20200924163742.321600-1-lance.richardson@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924163742.321600-1-lance.richardson@broadcom.com> 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" 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. /Bruce