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 D3B28A04C0; Fri, 25 Sep 2020 15:28:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 757861E929; Fri, 25 Sep 2020 15:28:01 +0200 (CEST) Received: from mail-ot1-f65.google.com (unknown [209.85.210.65]) by dpdk.org (Postfix) with ESMTP id A776F1D924 for ; Fri, 25 Sep 2020 15:27:45 +0200 (CEST) Received: by mail-ot1-f65.google.com with SMTP id m13so2246916otl.9 for ; Fri, 25 Sep 2020 06:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e2gAaM5bkZFNZGuiYnl3ClvXX5BIiIQCgS+BeNHsgCA=; b=JSTTkWqntb8hWvQ91/RyCPzgy5fC8Irvg3BmVhO0rUSdT/0hbZ/+y/H4dDodoU5cjG tndCx6JczoGdlbi9qWH8YwCMe5TNc5NTXZacG/vODtmDGgOTPhURHtjOEXX3E/IEmHW8 rbSmFz6jTctiQtj7tRGLADGSWnOpYGnW115/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e2gAaM5bkZFNZGuiYnl3ClvXX5BIiIQCgS+BeNHsgCA=; b=a9msX6cTuVvEILLZmbwoqzPGpPF/CEdo76KYb382pIqgQ7u6uOnV7f83reJSRFHG1t M9L0erAH7fKVg/fSOwsbs2PApfMvGHhf61gzGYt+8XLxtpQUFxUmd+bCByGGu3joCSeq pCSjRKY+UQMs+sUSN4vylRJToGH7JUwQJkvjxbBl4x26bTJBVS4qdw+CxjGZ5421kDDX CmZ/6+vUmA1+W3GEg+GZ632FC8ZF5LSn+Ytly+Wruxli0/4yrIWZPdNe7NqVf07R0xts 2UkHlmj/5oKroso1kU8Q8+3NGzW6CNYw6L96t/nM0gfT0FCzFzl27CNUUMcMLjZcVFee 0OeA== X-Gm-Message-State: AOAM531KhJUiTciX1DNIOEi3ltgVo/uOX4P1A2cKFNrgFpMDEEsMOoo8 S8aObE8ApxfhAlz5P2i+Amvb16mfUSjcOt8UdNB0CQ== X-Google-Smtp-Source: ABdhPJyrkuejCWihDo9PHC0DkxfI3U0D8FtFpafNph977rnfy/84FoRk3ONjl83bH+U2yO1YXLthOVF68h7Irvhfk50= X-Received: by 2002:a9d:1cae:: with SMTP id l46mr303226ota.172.1601040455811; Fri, 25 Sep 2020 06:27:35 -0700 (PDT) MIME-Version: 1.0 References: <20200924163742.321600-1-lance.richardson@broadcom.com> <20200925091341.GB923@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20200925091341.GB923@bricha3-MOBL.ger.corp.intel.com> From: Lance Richardson Date: Fri, 25 Sep 2020 09:27:25 -0400 Message-ID: To: Bruce Richardson Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 Fri, Sep 25, 2020 at 5:13 AM 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. > > /Bruce Thanks, that does work, although I'll have some trouble remembering it for future use (unlike using cross-files). Googling for "PKG_CONFIG_LIBDIR meson dpdk" did lead me to this discussion, which makes it sound like cross-files might still worthy of consideration: https://patches.dpdk.org/patch/69067/ Lance