Re: [PATCH v2] build/x86: fix support for older compilers

2025-07-03 Thread Stephen Hemminger
On Thu, 3 Jul 2025 10:12:10 +0200 David Marchand wrote: > On Thu, Jul 3, 2025 at 10:01 AM Bruce Richardson > wrote: > > > > On Wed, Jul 02, 2025 at 11:22:42AM -0700, Stephen Hemminger wrote: > > > On Wed, 2 Jul 2025 17:00:45 +0100 > > > Bruce Richardson wrote: > > > > > > > Some older comp

Re: [PATCH v2] build/x86: fix support for older compilers

2025-07-03 Thread David Marchand
On Thu, Jul 3, 2025 at 10:01 AM Bruce Richardson wrote: > > On Wed, Jul 02, 2025 at 11:22:42AM -0700, Stephen Hemminger wrote: > > On Wed, 2 Jul 2025 17:00:45 +0100 > > Bruce Richardson wrote: > > > > > Some older compilers e.g. gcc 8.5, do not support overriding > > > -march=native with another

Re: [PATCH v2] build/x86: fix support for older compilers

2025-07-03 Thread Bruce Richardson
On Wed, Jul 02, 2025 at 11:22:42AM -0700, Stephen Hemminger wrote: > On Wed, 2 Jul 2025 17:00:45 +0100 > Bruce Richardson wrote: > > > Some older compilers e.g. gcc 8.5, do not support overriding > > -march=native with another architecture, leading to build warnings such > > as reported in Bugzi

Re: [PATCH v2] build/x86: fix support for older compilers

2025-07-02 Thread Stephen Hemminger
On Wed, 2 Jul 2025 17:00:45 +0100 Bruce Richardson wrote: > Some older compilers e.g. gcc 8.5, do not support overriding > -march=native with another architecture, leading to build warnings such > as reported in Bugzilla (link below). Add a check for that case, and > explicitly add the avx512 fl

[PATCH v2] build/x86: fix support for older compilers

2025-07-02 Thread Bruce Richardson
Some older compilers e.g. gcc 8.5, do not support overriding -march=native with another architecture, leading to build warnings such as reported in Bugzilla (link below). Add a check for that case, and explicitly add the avx512 flags if necessary. Note: it appears that it is only the "native" flag