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 12BEEA04B5; Fri, 6 Nov 2020 18:54:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 746982BD3; Fri, 6 Nov 2020 18:54:25 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 8C616160 for ; Fri, 6 Nov 2020 18:54:24 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1B06C5C008C; Fri, 6 Nov 2020 12:54:23 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 06 Nov 2020 12:54:23 -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= /HbTzWWXDPE+3ALtms2wC0gS9kRtVaiwQ034+EN6ZAo=; b=uQoUx465em7uhOQH bGpmfZzTMg9RNenEFT6GX4duvaU522a3xhIHEhS+tY1U2kz8I11GwUX6wwbjE/vq PM0IpjpxU6L3V672A+HDGV08370LPmXlk+u/7T7usYb4iJckBRzrMvLkgxqvOTF1 OfhKqC1oSKVNkOagRmF8vrR9kPp82a4MEqgtajOdfgUvvcN/xsyrZHY09i7y31Cs CM/jVq7ChtBQreUZbqx1pH9I/6x1SF25rQlULqQ8zW/KodlukmmreYCkbm7zQLV0 gqGdOFBD3/bIuu5q9iy/rp/z5s9uHtDQXy6/64MEF8Dntxsn0HUsWcLbNbVvuqW7 szsnDA== 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=/HbTzWWXDPE+3ALtms2wC0gS9kRtVaiwQ034+EN6Z Ao=; b=od1wpqHhK3pjYIXIrBnAMX+IV2U7um6etkhvluJmIn8ochYgtzQHFhv0g +fUtxBIOBoBmgYK6Ns4ynM1DBwbBM73EA/7B8mYpPfYLUO5kKpWCx3x+M8flM1AX 2DSy6Nv49dSIbJzbPnY8iJx0mtbXq9C7YrBPtcHWhZauwBzRNj/e2svSFMTZ9xN0 Fh0KtlSWtleTExfjHFLd8aKLf4A6AafyM1dIz2uamAscp+QYaWcdHEVRK580HqUw s8CuPZLTO+Wu5+KSi+HEkxjg8UwGU8cJbYia7TMISdcsoGcYd1wyJ+7Hltl0oCGg EjzI8wVUgv+oAH3E9Vut97eCXRZ6A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtledguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeduteetteehhedtudffieeggfeiledugfdugfejgedttdejgeei ieeukeeuveelheenucffohhmrghinhepthgvshhtqdhmvghsohhnqdgsuhhilhgushdrsh hhpdguphgukhdrohhrghenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmoh hnjhgrlhhonhdrnhgvth 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 20DBB306005B; Fri, 6 Nov 2020 12:54:22 -0500 (EST) From: Thomas Monjalon To: Lance Richardson Cc: Bruce Richardson , dev@dpdk.org, david.marchand@redhat.com Date: Fri, 06 Nov 2020 18:54:21 +0100 Message-ID: <3197660.YvmjQU8Io0@thomas> In-Reply-To: References: <20200924163742.321600-1-lance.richardson@broadcom.com> <18414568.0SzrnlinNP@thomas> 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" 06/10/2020 16:35, Lance Richardson: > On Tue, Oct 6, 2020 at 4:30 AM Thomas Monjalon wrote: > > > > 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 ? > > > > I think it would help, although using cross-files was suggested when > that was proposed here: > http://patchwork.dpdk.org/patch/69067/ > > Having the i686 build command in a document like the GSG might be > helpful as well. > > Ideally it seems there should be a consistent way to build for different > architectures using meson, I think we mostly have that now with the > native architecture being used by default and otherwise using a > cross-file found under config//. Bruce added the doc and the command in test-meson-builds.sh. Are we fine now? Should we mark this patch as rejected?