Bug 2336444

Summary: blis failed to build with GCC 15 on x86_64 ("cc1: error: unrecognized command-line option ‘-mavx512pf’")
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: blisAssignee: Dave Love <dave.love>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: dave.love, releng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260875, 2333037    

Description Dave Malcolm 2025-01-08 19:35:01 UTC
I'm experimentally rebuilding rawhide with the not-yet-released GCC 15 to see if anything breaks, and to help write the porting guide.  See https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15

My test build with GCC 15 failed on x86_64:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476130/

whereas my test build with GCC 14 succeeded:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed.checker/build/8477832/

Looking at the failure logs
https://download.copr.fedorainfracloud.org/results/dmalcolm/gcc-15-smoketest-3.failed/fedora-rawhide-x86_64/08476130-blis/builder-live.log.gz

I see:

gcc -O2 -O3 -mavx512f -mavx512pf -mfpmath=sse -march=knl -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -O3 -funsafe-math-optimizations -g -Wall -Wno-unused-function -Wfatal-errors -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -fopenmp -Iinclude/x86_64 -I./frame/3/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I./frame/compat/cblas/src/ -DBLIS_VERSION_STRING=\"0.9.0\" -DBLIS_IS_BUILDING_LIBRARY -fvisibility=hidden -c kernels/knl/1m/bli_dpackm_knl_asm_24x8.c -o obj/x86_64/kernels/knl/1m/bli_dpackm_knl_asm_24x8.o
cc1: error: unrecognized command-line option ‘-mavx512pf’
make: *** [Makefile:652: obj/x86_64/kernels/knl/1m/bli_dpackm_knl_asm_24x8.o] Error 1

Looking at https://gcc.gnu.org/gcc-15/changes.html I see:
"Support for Xeon Phi CPUs (a.k.a. Knight Landing and Knight Mill) were removed in GCC 15. GCC will no longer accept -march=knl, -march=knm, -mavx5124fmaps, -mavx5124vnniw, -mavx512er, -mavx512pf, -mprefetchwt1, -mtune=knl, and -mtune=knm compiler switches."

I'm not sure what you need to do at this point, but I'm recording the failure here to help keep track of it.

Reproducible: Always

Comment 1 Dave Love 2025-01-22 17:01:31 UTC
That's trivial, but there's a non-trivial problem later.

Comment 2 Dave Love 2025-01-22 17:04:28 UTC
*** Bug 2339547 has been marked as a duplicate of this bug. ***

Comment 3 Siddhesh Poyarekar 2025-01-23 12:50:08 UTC
Filed upstream: https://github.com/flame/blis/issues/846

Comment 4 Dave Love 2025-01-24 21:16:00 UTC
Previously-submitted links added.

Comment 5 Aoife Moloney 2025-02-26 13:21:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.