[CentOS] [EXT] c9s: CPU ISA level lower than required

Mon Feb 7 15:58:43 UTC 2022
Simon Matter <simon.matter at invoca.ch>

> On 07/02/2022 16.01, Alessio wrote:
>> Hello.
>> I had a CentOS Stream 9 installation in a KVM VM.
>> Today a "dnf upgrade" lead to an unusable system: dnf, rpm commands
>> complain that "glibc cpu does not support x86-64-v2" or "CPU ISA level
>> is lower than required".
>> The updates leading to this state seem to be: python3 3.9.10-1, glibc
>> 2.34-21, rpm 4.16.1.3-10
>>
>> What happened?
>
> glibc-2.34-20 includes a fix to more reliable detect CPU compatibility.
> See Bug https://bugzilla.redhat.com/show_bug.cgi?id=2040657
>
> Does your CPU support x86-64-v2?
>
> CentOS Stream for AMD and Intel 64-bit architectures requires at least
> x86-64-v2. See [1] for some background.
>
> [1]:
> https://developers.redhat.com/blog/2021/01/05/building-red-hat-enterprise-linux-9-for-the-x86-64-v2-microarchitecture-level#architectural_considerations_for_rhel_9

Is there an easy way to figure out if a CPU does support x86-64-v2?
Something like a list of CPU families or a list of flags to check?

Regards,
Simon