patch 'build: fix cross-compilation to x86-64' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:02:30 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/df3baf95ce8e702e94660dfbe0cb23a5853740e9
Thanks.
Kevin
---
>From df3baf95ce8e702e94660dfbe0cb23a5853740e9 Mon Sep 17 00:00:00 2001
From: Adrian Schollmeyer <a.schollmeyer at syseleven.de>
Date: Wed, 7 Oct 2026 11:26:29 +0200
Subject: [PATCH] build: fix cross-compilation to x86-64
[ upstream commit 4a3fd57b96e1045eb72e0d2cb0a955328ef8f415 ]
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 at syseleven.de>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
config/meson.build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/config/meson.build b/config/meson.build
index 0cb074ab95..07f20797c5 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -178,4 +178,10 @@ if not is_ms_compiler
compiler_arch_support = cc.has_argument('-mcpu=' + cpu_instruction_set)
else
+ # Meson uses x86_64, but GCC/Clang expect x86-64.
+ # See https://mesonbuild.com/Reference-tables.html#cpu-families
+ if cpu_instruction_set == 'x86_64'
+ # Feature level derived from DPDK minimum CPU feature requirements
+ cpu_instruction_set = 'x86-64-v2'
+ endif
machine_args += '-march=' + cpu_instruction_set
# arm manages generic/auto config in config/arm/meson.build
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:45.616426680 +0000
+++ 0224-build-fix-cross-compilation-to-x86-64.patch 2026-12-03 12:52:39.190674987 +0000
@@ -1 +1 @@
-From 4a3fd57b96e1045eb72e0d2cb0a955328ef8f415 Mon Sep 17 00:00:00 2001
+From df3baf95ce8e702e94660dfbe0cb23a5853740e9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4a3fd57b96e1045eb72e0d2cb0a955328ef8f415 ]
+
@@ -15,2 +16,0 @@
-Cc: stable at dpdk.org
-
@@ -24 +24 @@
-index aa1e83b1e2..745097e8aa 100644
+index 0cb074ab95..07f20797c5 100644
More information about the stable
mailing list