public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH] config/arm: fix 32-bit cross compile with latest GCC
@ 2026-01-14 17:13 Bruce Richardson
  2026-01-14 17:37 ` Wathsala Vithanage
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2026-01-14 17:13 UTC (permalink / raw)
  To: dev; +Cc: wathsala.vithanage, Bruce Richardson, stable

When building for 32-bit arm with GCC versions >=11 and using the
DPDK-provided cross-file, the initial configuration step fails  The
error given is:

  config/meson.build:189:8: ERROR: Problem encountered: \
		Compiler does not support "armv8-a" arch flag.

but the real problem is actually an fpu-related error which is explained
in the meson log file:

  cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU

This error can be fixed by specifying an fpu explicitly, and a number of
options will work, e.g. -mfpu=neon, -mfpu=fp-armv8. Choosing the latter
here to avoid mandating neon by default.

Fixes: e754875c296c ("config/arm: add aarch32 cross-compilation")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

---
This patch should fix errors seen in the CI when building for 32-bit arm
on Ubuntu 24.04 and later. CI systems running older Ubuntu using GCC 9
do not show this error, which is why it hasn't been an issue till
recently.
---
 config/arm/arm32_armv8_linux_gcc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config/arm/arm32_armv8_linux_gcc b/config/arm/arm32_armv8_linux_gcc
index abcb182b16..231c9ac7a7 100644
--- a/config/arm/arm32_armv8_linux_gcc
+++ b/config/arm/arm32_armv8_linux_gcc
@@ -13,5 +13,8 @@ cpu_family = 'aarch32'
 cpu = 'armv8-a'
 endian = 'little'
 
+[built-in options]
+c_args = '-mfpu=fp-armv8'
+
 [properties]
 platform = 'generic_aarch32'
-- 
2.51.0


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

* Re: [PATCH] config/arm: fix 32-bit cross compile with latest GCC
  2026-01-14 17:13 [PATCH] config/arm: fix 32-bit cross compile with latest GCC Bruce Richardson
@ 2026-01-14 17:37 ` Wathsala Vithanage
  2026-01-28  9:56   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Wathsala Vithanage @ 2026-01-14 17:37 UTC (permalink / raw)
  To: Bruce Richardson, dev; +Cc: stable


On 1/14/26 11:13, Bruce Richardson wrote:
> When building for 32-bit arm with GCC versions >=11 and using the
> DPDK-provided cross-file, the initial configuration step fails  The
> error given is:
>
>    config/meson.build:189:8: ERROR: Problem encountered: \
> 		Compiler does not support "armv8-a" arch flag.
>
> but the real problem is actually an fpu-related error which is explained
> in the meson log file:
>
>    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU
>
> This error can be fixed by specifying an fpu explicitly, and a number of
> options will work, e.g. -mfpu=neon, -mfpu=fp-armv8. Choosing the latter
> here to avoid mandating neon by default.
>
> Fixes: e754875c296c ("config/arm: add aarch32 cross-compilation")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>

>
> ---
> This patch should fix errors seen in the CI when building for 32-bit arm
> on Ubuntu 24.04 and later. CI systems running older Ubuntu using GCC 9
> do not show this error, which is why it hasn't been an issue till
> recently.
> ---
>   config/arm/arm32_armv8_linux_gcc | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/config/arm/arm32_armv8_linux_gcc b/config/arm/arm32_armv8_linux_gcc
> index abcb182b16..231c9ac7a7 100644
> --- a/config/arm/arm32_armv8_linux_gcc
> +++ b/config/arm/arm32_armv8_linux_gcc
> @@ -13,5 +13,8 @@ cpu_family = 'aarch32'
>   cpu = 'armv8-a'
>   endian = 'little'
>   
> +[built-in options]
> +c_args = '-mfpu=fp-armv8'
> +
>   [properties]
>   platform = 'generic_aarch32'

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

* Re: [PATCH] config/arm: fix 32-bit cross compile with latest GCC
  2026-01-14 17:37 ` Wathsala Vithanage
@ 2026-01-28  9:56   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2026-01-28  9:56 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, stable, Wathsala Vithanage

14/01/2026 18:37, Wathsala Vithanage:
> 
> On 1/14/26 11:13, Bruce Richardson wrote:
> > When building for 32-bit arm with GCC versions >=11 and using the
> > DPDK-provided cross-file, the initial configuration step fails  The
> > error given is:
> >
> >    config/meson.build:189:8: ERROR: Problem encountered: \
> > 		Compiler does not support "armv8-a" arch flag.
> >
> > but the real problem is actually an fpu-related error which is explained
> > in the meson log file:
> >
> >    cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU
> >
> > This error can be fixed by specifying an fpu explicitly, and a number of
> > options will work, e.g. -mfpu=neon, -mfpu=fp-armv8. Choosing the latter
> > here to avoid mandating neon by default.
> >
> > Fixes: e754875c296c ("config/arm: add aarch32 cross-compilation")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> Reviewed-by: Wathsala Vithanage <wathsala.vithanage@arm.com>

Applied, thanks.




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

end of thread, other threads:[~2026-01-28  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 17:13 [PATCH] config/arm: fix 32-bit cross compile with latest GCC Bruce Richardson
2026-01-14 17:37 ` Wathsala Vithanage
2026-01-28  9:56   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox