gentooLTO
gentooLTO copied to clipboard
Info
I would like to build a system which should then run on another PC.
The question is, can I replace in the make.conf -march=native
with what I get when I run this command on the computer where the system should run?
gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
so it would look something like this:
CFLAGS="-march=znver1 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mmwaitx -mclzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver1 ${CFLAGS} -pipe"
if you are doing something like a world rebuild and then moving the hard drive over, you are going to need a subset of flags that works on both machines, because as you rebuild packages, those new executables will be running on the current hardware, at least the ones that are build dependencies.
after it's moved over you can rebuild again on the new hardware with -march=native.
alternatively you can build binary packages that are installable and i think you can tell emerge not to install the binpkg when creating it. but you still need a working portage on the new machine in order to install all those binaries packages, so you're gonna be doing a chunk of the handbook to boot strap the new system. also you have to make sure all the USE flags are identical, or it can't use the binaries.
On Mon, Dec 6, 2021, 07:42 antonellocaroli @.***> wrote:
I would like to build a system which should then run on another PC.
The question is, can I replace in the make.conf -march=native
with what I get when I run this command on the computer where the system should run?
gcc -march=native -E -v - </dev/null 2>&1 | grep cc1
so it would look something like this:
CFLAGS="-march=znver1 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mmwaitx -mclzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver1 ${CFLAGS} -pipe"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/InBetweenNames/gentooLTO/issues/809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHXYXGWB5YYO5BO5Q6M2LUPTKXTANCNFSM5JO57EUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thanks!
Can LTO also be used on arm architectures (aarch64)?