On 8/20/24 1:23 PM, ralfconn wrote:
> Hello,
> 
> 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.
> 
> I'd like to rebuild the dying boxwith some more generic -march option so
> that I'll be able to boot into the new box and then rebuild it with more
> optimized -march.
> 
> If I understand well the GCC man page the safest option for the dying
> system rebuild would be -march=x86_64 (and maybe -mtune=generic?). Is
> this right?


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.


-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to