From: Bruce Richardson <bruce.richardson@intel.com>
To: "Morten Brørup" <mb@smartsharesystems.com>
Cc: Adrian Schollmeyer <a.schollmeyer@syseleven.de>, <dev@dpdk.org>
Subject: Re: [PATCH] build: fix cross compilation to x86_64
Date: Mon, 5 Oct 2026 15:30:26 +0100 [thread overview]
Message-ID: <asO0gl6hB1s2MMtV@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35F65A97@smartserver.smartshare.dk>
On Mon, Oct 05, 2026 at 03:14:17PM +0200, Morten Brørup wrote:
> > If x86_64 is specified as target CPU instruction set (e.g. when
> > cross-compiling *to* x86_64), the cpu_instruction_set may be set to
> > x86_64, e.g. if it is derived from a Meson crossfile. However, while
> > Meson uses "x86_64" as name for the x86_64 architecture, compiler
> > options accept only "x86-64".
> >
> > Introduce a conditional for handling this special case by changing
> > cpu_instruction_set to the march-compatible value.
> >
> > Signed-off-by: Adrian Schollmeyer <a.schollmeyer@syseleven.de>
> > ---
> > config/meson.build | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/config/meson.build b/config/meson.build
> > index dcb84ebd13..238d6cae0c 100644
> > --- a/config/meson.build
> > +++ b/config/meson.build
> > @@ -177,6 +177,11 @@ if not is_ms_compiler
> > machine_args += '-mtune=' + cpu_instruction_set
> > compiler_arch_support = cc.has_argument('-mcpu=' +
> > cpu_instruction_set)
> > else
> > + # Meson uses x86_64, but compilers expect x86-64.
> > + # See https://mesonbuild.com/Reference-tables.html#cpu-
> > families
> > + if cpu_instruction_set == 'x86_64'
> > + cpu_instruction_set = 'x86-64'
>
> Not sure, but maybe: 'x86-64-v2'?
>
> Ref:
> https://www.phoronix.com/news/GCC-11-x86-64-Feature-Levels
>
Yes, probably best to use that. We require SSE4 as a minimum instruction
set for DPDK build.
/Bruce
next prev parent reply other threads:[~2026-10-05 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 12:59 [PATCH] build: fix cross compilation to x86_64 Adrian Schollmeyer
2026-10-05 13:14 ` Morten Brørup
2026-10-05 14:30 ` Bruce Richardson [this message]
2026-10-07 9:26 ` [PATCH v2] " Adrian Schollmeyer
2026-10-07 10:39 ` 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=asO0gl6hB1s2MMtV@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=a.schollmeyer@syseleven.de \
--cc=dev@dpdk.org \
--cc=mb@smartsharesystems.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
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