DPDK usage discussions
 help / color / mirror / Atom feed
From: Renata Saiakhova <renata.saiakhova@ekinops.com>
To: "users@dpdk.org" <users@dpdk.org>,
	Bruce Richardson <bruce.richardson@intel.com>
Subject: [dpdk-users] Compiling 32-bit dpdk with meson in 64-bit container
Date: Tue, 13 Oct 2020 15:54:13 +0000	[thread overview]
Message-ID: <MRXP264MB01207ABAEC5C18FC73B14D5192040@MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM> (raw)

Hi all, hi Bruce,

I have an issue to compile 32 bit dpdk (version 20.08) with meson in a 64-bit container.
As I can see from meson.build, it deducts the arch from the cc sizeof:

dpdk_conf.set('RTE_ARCH_64', cc.sizeof('void *') == 8)

The attempts to workaround it and set RTE_ARCH_64 to false gives good values in build/rte_build_config.h:

#define RTE_ARCH i686
#undef RTE_ARCH_64
#define RTE_ARCH_I686 1
#define RTE_ARCH_X86 1
#define RTE_CACHE_LINE_SIZE 64

but, nevertheless, dpdk is compiled for 64 bit and not for 32 bit.

Before, with make build system, RTE_ARCH_ values defined arch and compilation flags for x86 (like -m32 for i686), but with meson it seems to be more complicated?
Is there a way to compile 32 bit dpdk (version 20.08) with meson in a 64-bit environment?

Kind regards,
Renata




             reply	other threads:[~2020-10-13 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 15:54 Renata Saiakhova [this message]
2020-10-13 16:04 ` Bruce Richardson
2020-10-13 16:28   ` Renata Saiakhova
2020-10-13 16:31     ` Bruce 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=MRXP264MB01207ABAEC5C18FC73B14D5192040@MRXP264MB0120.FRAP264.PROD.OUTLOOK.COM \
    --to=renata.saiakhova@ekinops.com \
    --cc=bruce.richardson@intel.com \
    --cc=users@dpdk.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).