Bug 2336444 - blis failed to build with GCC 15 on x86_64 ("cc1: error: unrecognized command-line option ‘-mavx512pf’")
Summary: blis failed to build with GCC 15 on x86_64 ("cc1: error: unrecognized command...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: blis
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Dave Love
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2339547 (view as bug list)
Depends On:
Blocks: F41FTBFS gcc-15-mass-prebuild
TreeView+ depends on / blocked
 
Reported: 2025-01-08 19:35 UTC by Dave Malcolm
Modified: 2025-02-26 13:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github flame blis issues 845 0 None open Haswell kernels fail with GCC 15 2025-01-24 21:15:59 UTC
Github flame blis pull 844 0 None open Blacklist KNL with GCC 15+ 2025-01-24 21:15:59 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.