DPDK patches and discussions
 help / color / mirror / Atom feed
From: Wathsala Wathawana Vithanage <wathsala.vithanage@arm.com>
To: "bugzilla@dpdk.org" <bugzilla@dpdk.org>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>, nd <nd@arm.com>
Subject: RE: [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0
Date: Wed, 5 Mar 2025 18:07:57 +0000	[thread overview]
Message-ID: <PAWPR08MB89099E2B381B858E173967D89FCB2@PAWPR08MB8909.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <bug-1670-3@http.bugs.dpdk.org/>

> Subject: [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0
> 
> Bug ID	 1670 <https://bugs.dpdk.org/show_bug.cgi?id=1670>
> Summary	 DPDK fails to compile using gcc version 8.5.0
> Product	 DPDK
> Version	 25.03
> Hardware	 ARM
> OS	 Linux
> Status	 UNCONFIRMED
> Severity	 critical
> Priority	 Normal
> Component	 meson
> Assignee	 dev@dpdk.org
> Reporter	 subhim@nvidia.com
> Target Milestone	 ---
> 
> Compiling DPDK 25.03 on systems that runs gcc version 8.5.0 and ARM
> architecture ( aarch64) is failing.
> 
> Reproducer :
> 
> 1.Clone DPDK 23.05 :
> 
> git clone git:\\dpdk.org\dpdk dpdk-25.03
> 
> 2. Compile DPDK :
> 
> meson build-meson --werror
> -Dexamples=ethtool,ip_fragmentation,l2fwd-crypto,l3fwd-
> power,link_status_interrupt,multi_process/client_server_mp/mp_client,multi_pr
> ocess/client_server_mp/mp_server,multi_process/simple_mp,multi_process/sym
> metric_mp,vdpa
> -Dprefix=/download/dpdk/install -Dlibdir=lib64 -
> Denable_drivers=*/mlx5,mempool/bucket,mempool/ring,mempool/stack,net/fail
> safe,net/netvsc,bus/vmbus,net/tap,net/vdev_netvsc,crypto/openssl,*/virtio*,bus
> /auxiliary
> && ninja -C build-meson install
> 
> 
> Result : compilation fails with the following error  :
> 
> Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler
> for C supports arguments -fzero-init-padding-bits=all: NO
> Message: Arm implementer: Arm
> Message: Arm part number: 0xd42
> Compiler for C supports arguments -mcpu=cortex-a78ae: NO
> 
> config/arm/meson.build:915:12: ERROR: Problem encountered: Compiler does
> not support -mcpu=cortex-a78ae.
> 

Cortex-a78ae is newer than GCC 8, so you get this error.
One of the following options would solve this Issue.

Option 1: Upgrade the GCC to at least an 11.x version
The resulting build would be the most performant for Cortex-a78ae CPU.

Option 2: Force meson to do a generic build by passing -Dplatform=generic
The resulting build may not be as performant as the one produced by options 1.
It will use only following march=armv8-a+crc as defined here
https://github.com/DPDK/dpdk/blob/main/config/arm/meson.build#L676

--wathsala



      reply	other threads:[~2025-03-05 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-05  9:07 bugzilla
2025-03-05 18:07 ` Wathsala Wathawana Vithanage [this message]

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=PAWPR08MB89099E2B381B858E173967D89FCB2@PAWPR08MB8909.eurprd08.prod.outlook.com \
    --to=wathsala.vithanage@arm.com \
    --cc=Honnappa.Nagarahalli@arm.com \
    --cc=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    --cc=nd@arm.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;
as well as URLs for NNTP newsgroup(s).