DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Bruce Richardson <bruce.richardson@intel.com>,
	Lance Richardson <lance.richardson@broadcom.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
Date: Fri, 25 Sep 2020 15:48:30 +0100
Message-ID: <abcc4fc8-5606-ee6a-50f0-fa9dc767a676@intel.com> (raw)
In-Reply-To: <20200925142830.GC943@bricha3-MOBL.ger.corp.intel.com>

On 9/25/2020 3:28 PM, Bruce Richardson wrote:
> On Fri, Sep 25, 2020 at 10:08:35AM -0400, Lance Richardson wrote:
>> On Fri, Sep 25, 2020 at 9:44 AM Bruce Richardson
>> <bruce.richardson@intel.com> wrote:
>>>
>>> On Fri, Sep 25, 2020 at 09:27:25AM -0400, Lance Richardson wrote:
>>>> On Fri, Sep 25, 2020 at 5:13 AM Bruce Richardson
>>>> <bruce.richardson@intel.com> 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 <lance.richardson@broadcom.com>
>>>>>> ---
>>>>>> 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/
>>>>
>>>
>>> Yes, absolutely the cross-file is worthy of consideration. The most awkward
>>> part in both cases is getting the 32-bit pkg-config right.
>>
>> Agreed, having the distro-specific bits is not pretty.
>>
>> Would it be possible to set the pkgconfig binary name or
>> PKG_CONFIG_LIBDIR in config/x86/meson.build? If so,
>> maybe we could have a single cross-file and probe for the
>> distro-specifics in meson.build.
> 
> Sadly, I'm not aware of any way to do that right now. It probably requires
> changes in meson itself. :-(
> 

I did hit similar thing with arm cross compile recently, the values 
provided in the 'config/arm/arm64_armv8_linux_gcc' doesn't match with 
the cross compiler I installed, so had to update it manually.
Not sure if it is possible to cover all options, or should we add a 
config file to cover each case, perhaps we can document it and go with 
common values.

  reply	other threads:[~2020-09-25 14:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 16:37 Lance Richardson
2020-09-25  9:13 ` Bruce Richardson
2020-09-25 13:27   ` Lance Richardson
2020-09-25 13:44     ` Bruce Richardson
2020-09-25 14:08       ` Lance Richardson
2020-09-25 14:28         ` Bruce Richardson
2020-09-25 14:48           ` Ferruh Yigit [this message]
2020-10-06  8:30     ` Thomas Monjalon
2020-10-06 14:35       ` Lance Richardson
2020-11-06 17:54         ` Thomas Monjalon
2020-11-06 18:02           ` Lance Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abcc4fc8-5606-ee6a-50f0-fa9dc767a676@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=lance.richardson@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git