Build succeeds when I set CFLAGS and CXXFLAGS to: "-march=native -O2 -pipe" Build fails when I set them to (for Ryzen 7 1700): "-march=znver1 -mtune=znver1 -mcx16 -msahf -mmovbe -msha -mabm -mbmi -mbmi2 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mclflushopt -mxsavec -mxsaves -mmwaitx -mclzero --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe" Looks like something is not parsing the --param flags correctly. Reproducible: Always Steps to Reproduce: 1. See description Actual Results: Build fails Expected Results: Build succeeds
Please re-read https://wiki.gentoo.org/wiki/Safe_CFLAGS, you set it the wrong way. Also keep in mind that Gentoo toolchain recommends that you do NOT set these parameters. Recent compilers knowing your architecture will detect that on their own...
Ah, should have been "--param=l1-cache-line-size=64". My mistake. Thanks for the quick follow-up. It works fine when I set it correctly. Note that distcc doesn't work well with autodetection so the recommendation doesn't fit my use case.