DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0
@ 2025-03-05  9:07 bugzilla
  2025-03-05 18:07 ` Wathsala Wathawana Vithanage
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2025-03-05  9:07 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1670

            Bug 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_process/client_server_mp/mp_server,multi_process/simple_mp,multi_process/symmetric_mp,vdpa
-Dprefix=/download/dpdk/install -Dlibdir=lib64
-Denable_drivers=*/mlx5,mempool/bucket,mempool/ring,mempool/stack,net/failsafe,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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3565 bytes --]

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

* RE: [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0
  2025-03-05  9:07 [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0 bugzilla
@ 2025-03-05 18:07 ` Wathsala Wathawana Vithanage
  0 siblings, 0 replies; 2+ messages in thread
From: Wathsala Wathawana Vithanage @ 2025-03-05 18:07 UTC (permalink / raw)
  To: bugzilla, dev; +Cc: Honnappa Nagarahalli, nd

> 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



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

end of thread, other threads:[~2025-03-05 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05  9:07 [DPDK/meson Bug 1670] DPDK fails to compile using gcc version 8.5.0 bugzilla
2025-03-05 18:07 ` Wathsala Wathawana Vithanage

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).