patch 'build: fix cross-compilation to x86-64' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Oct 27 12:51:21 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/fda1a8def891ccd4b8f2a97d498d7a03e7cd7b4d

Thanks.

Luca Boccassi

---
>From fda1a8def891ccd4b8f2a97d498d7a03e7cd7b4d 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 b6b3558e110..d0d66cee8f6 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -176,6 +176,12 @@ 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 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
         if cpu_instruction_set != 'generic' and cpu_instruction_set != 'auto'
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-10-27 11:44:00.865390809 +0000
+++ 0187-build-fix-cross-compilation-to-x86-64.patch	2026-10-27 11:43:53.770067372 +0000
@@ -1 +1 @@
-From 4a3fd57b96e1045eb72e0d2cb0a955328ef8f415 Mon Sep 17 00:00:00 2001
+From fda1a8def891ccd4b8f2a97d498d7a03e7cd7b4d 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 b6b3558e110..d0d66cee8f6 100644
@@ -27 +27 @@
-@@ -177,6 +177,12 @@ if not is_ms_compiler
+@@ -176,6 +176,12 @@ if not is_ms_compiler


More information about the stable mailing list