DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Compiling 32-bit dpdk with meson in 64-bit container
@ 2020-10-13 15:54 Renata Saiakhova
  2020-10-13 16:04 ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Renata Saiakhova @ 2020-10-13 15:54 UTC (permalink / raw)
  To: users, Bruce Richardson

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




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

end of thread, other threads:[~2020-10-13 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 15:54 [dpdk-users] Compiling 32-bit dpdk with meson in 64-bit container Renata Saiakhova
2020-10-13 16:04 ` Bruce Richardson
2020-10-13 16:28   ` Renata Saiakhova
2020-10-13 16:31     ` Bruce Richardson

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/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 users users/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

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


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