DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
@ 2020-09-24 16:37 Lance Richardson
  2020-09-25  9:13 ` Bruce Richardson
  0 siblings, 1 reply; 11+ messages in thread
From: Lance Richardson @ 2020-09-24 16:37 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

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.

 config/x86/cross-i686_linux_gcc  | 15 +++++++++++++++
 config/x86/cross-i686_redhat_gcc | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 config/x86/cross-i686_linux_gcc
 create mode 100644 config/x86/cross-i686_redhat_gcc

diff --git a/config/x86/cross-i686_linux_gcc b/config/x86/cross-i686_linux_gcc
new file mode 100644
index 000000000..a4169f969
--- /dev/null
+++ b/config/x86/cross-i686_linux_gcc
@@ -0,0 +1,15 @@
+[binaries]
+c = 'gcc'
+ar = 'gcc-ar'
+strip = 'strip'
+pkgconfig = 'i686-linux-gnu-pkg-config'
+
+[properties]
+c_args = ['-m32']
+c_link_args = ['-m32']
+
+[host_machine]
+system = 'linux'
+cpu_family = 'x86'
+cpu = 'i686'
+endian = 'little'
diff --git a/config/x86/cross-i686_redhat_gcc b/config/x86/cross-i686_redhat_gcc
new file mode 100644
index 000000000..2ae8b33dd
--- /dev/null
+++ b/config/x86/cross-i686_redhat_gcc
@@ -0,0 +1,15 @@
+[binaries]
+c = 'gcc'
+ar = 'gcc-ar'
+strip = 'strip'
+pkgconfig = 'i686-redhat-linux-gnu-pkg-config'
+
+[properties]
+c_args = ['-m32']
+c_link_args = ['-m32']
+
+[host_machine]
+system = 'linux'
+cpu_family = 'x86'
+cpu = 'i686'
+endian = 'little'
-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-24 16:37 [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts Lance Richardson
@ 2020-09-25  9:13 ` Bruce Richardson
  2020-09-25 13:27   ` Lance Richardson
  0 siblings, 1 reply; 11+ messages in thread
From: Bruce Richardson @ 2020-09-25  9:13 UTC (permalink / raw)
  To: Lance Richardson; +Cc: 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 <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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25  9:13 ` Bruce Richardson
@ 2020-09-25 13:27   ` Lance Richardson
  2020-09-25 13:44     ` Bruce Richardson
  2020-10-06  8:30     ` Thomas Monjalon
  0 siblings, 2 replies; 11+ messages in thread
From: Lance Richardson @ 2020-09-25 13:27 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

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/

   Lance

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25 13:27   ` Lance Richardson
@ 2020-09-25 13:44     ` Bruce Richardson
  2020-09-25 14:08       ` Lance Richardson
  2020-10-06  8:30     ` Thomas Monjalon
  1 sibling, 1 reply; 11+ messages in thread
From: Bruce Richardson @ 2020-09-25 13:44 UTC (permalink / raw)
  To: Lance Richardson; +Cc: dev

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25 13:44     ` Bruce Richardson
@ 2020-09-25 14:08       ` Lance Richardson
  2020-09-25 14:28         ` Bruce Richardson
  0 siblings, 1 reply; 11+ messages in thread
From: Lance Richardson @ 2020-09-25 14:08 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25 14:08       ` Lance Richardson
@ 2020-09-25 14:28         ` Bruce Richardson
  2020-09-25 14:48           ` Ferruh Yigit
  0 siblings, 1 reply; 11+ messages in thread
From: Bruce Richardson @ 2020-09-25 14:28 UTC (permalink / raw)
  To: Lance Richardson; +Cc: dev

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. :-(

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25 14:28         ` Bruce Richardson
@ 2020-09-25 14:48           ` Ferruh Yigit
  0 siblings, 0 replies; 11+ messages in thread
From: Ferruh Yigit @ 2020-09-25 14:48 UTC (permalink / raw)
  To: Bruce Richardson, Lance Richardson; +Cc: dev

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-09-25 13:27   ` Lance Richardson
  2020-09-25 13:44     ` Bruce Richardson
@ 2020-10-06  8:30     ` Thomas Monjalon
  2020-10-06 14:35       ` Lance Richardson
  1 sibling, 1 reply; 11+ messages in thread
From: Thomas Monjalon @ 2020-10-06  8:30 UTC (permalink / raw)
  To: Bruce Richardson, Lance Richardson; +Cc: 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 <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.
> 
> 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 ?




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-10-06  8:30     ` Thomas Monjalon
@ 2020-10-06 14:35       ` Lance Richardson
  2020-11-06 17:54         ` Thomas Monjalon
  0 siblings, 1 reply; 11+ messages in thread
From: Lance Richardson @ 2020-10-06 14:35 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: Bruce Richardson, dev

On Tue, Oct 6, 2020 at 4:30 AM Thomas Monjalon <thomas@monjalon.net> 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 <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.
> >
> > 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/<arch>/.

Thanks,
    Lance

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-10-06 14:35       ` Lance Richardson
@ 2020-11-06 17:54         ` Thomas Monjalon
  2020-11-06 18:02           ` Lance Richardson
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Monjalon @ 2020-11-06 17:54 UTC (permalink / raw)
  To: Lance Richardson; +Cc: Bruce Richardson, dev, david.marchand

06/10/2020 16:35, Lance Richardson:
> On Tue, Oct 6, 2020 at 4:30 AM Thomas Monjalon <thomas@monjalon.net> 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 <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.
> > >
> > > 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/<arch>/.

Bruce added the doc and the command in test-meson-builds.sh.
Are we fine now? Should we mark this patch as rejected?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts
  2020-11-06 17:54         ` Thomas Monjalon
@ 2020-11-06 18:02           ` Lance Richardson
  0 siblings, 0 replies; 11+ messages in thread
From: Lance Richardson @ 2020-11-06 18:02 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: Bruce Richardson, dev, David Marchand

On Fri, Nov 6, 2020 at 12:54 PM Thomas Monjalon <thomas@monjalon.net> wrote:

> Bruce added the doc and the command in test-meson-builds.sh.
> Are we fine now? Should we mark this patch as rejected?

That's fine with me, thanks for following up.

    Lance

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-11-06 18:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 16:37 [dpdk-dev] [PATCH] build: support i686 target on x86 64-bit hosts 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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).