Il 20/08/24 19:38, Eli Schwartz ha scritto:
> On 8/20/24 1:23 PM, ralfconn wrote:
>> my 8-year old gentoo HTPC is giving clear signals that the motherboard
>> is about to die so I ordered new components.
>>
>> The dying box is an AMD FX-6530 built with -march=native. The new box
>> will be Ryzen 7 5800X.
> The other safe option is to run `ld.so --help` and check for this:
>
> Subdirectories of glibc-hwcaps directories, in priority order:
>    x86-64-v4
>    x86-64-v3 (supported, searched)
>    x86-64-v2 (supported, searched)
>
>
> Your new CPU should support -march=x86-64-v3 but perhaps the old one
> doesn't.
>
> If you plan to recompile all packages with -march=native immediately
> after you swap anyway, then it doesn't really matter, just use "x86-64"
> for maximum compatibility.

The command on the old rig outputs:

  x86-64-v4
  x86-64-v3
  x86-64-v2 (supported, searched)

while on another box with a Ryzen 9 5900x it output the same as your example (-v3 and -v2 supported).

I did not know about this 'Microarchitecture level' definition [1], thanks. I'd expect the -v3 to be a superset of the -v2, instead when in the past I tried to boot a Ryzen 9 from a system built with -march=native for an FX 8530 it did not work (I don't remember if it was a kernel panic or if it stopped already at GRUB, I think the latter), so I had to reinstall from stage 3.

raffaele

[1] https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels

Reply via email to