Bug 2150135

Summary: __builtin_cpu_is ("sapphirerapids") failed on SPR with GTS12.0 DTS12.0 [RHEL 7.9/DTS 12.0.z]
Product: Red Hat Developer Toolset Reporter: Marek Polacek <mpolacek>
Component: gccAssignee: Marek Polacek <mpolacek>
gcc sub component: gcc-toolset-12 QA Contact: Václav Kadlčík <vkadlcik>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: unspecified CC: annita.zhang, crazylht, fweimer, mcermak, mpolacek, vkadlcik
Version: DTS 12.0 RHEL 7Keywords: Bugfix, Triaged, ZStream
Target Milestone: alphaFlags: pm-rhel: mirror+
Target Release: 9.1   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: devtoolset-12-gcc-12.1.1-3.4.el7 Doc Type: Bug Fix
Doc Text:
The Sapphire Rapids CPU detection could fail on SPR since it relies on existence of AVX512_VP2INTERSECT which has been removed.
Story Points: ---
Clone Of: 2150133 Environment:
Last Closed: 2023-01-02 06:21:22 UTC 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: 2141718, 2150133    
Bug Blocks: 2150126, 2150130    

Comment 1 Marek Polacek 2022-12-02 14:37:15 UTC
Done.

Patch #15 (gcc12-detect-sapphirerapids.patch):
+ echo 'Patch #15 (gcc12-detect-sapphirerapids.patch):'
+ /usr/bin/cat /builddir/build/SOURCES/gcc12-detect-sapphirerapids.patch
+ /usr/bin/patch -p1 -b --suffix .detect-spr~ --fuzz=0
patching file gcc/config/i386/driver-i386.cc
patching file gcc/config/i386/i386.h
patching file gcc/doc/invoke.texi
Hunk #1 succeeded at 31540 (offset -1 lines).

Comment 12 errata-xmlrpc 2023-01-02 06:21:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (devtoolset-12-gcc bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:0008