sys-devel/gcc-3.4.6-r2 fail to compile with CFLAGS="-march=amdfam10 -O2 -pipe" into /etc/make.conf: error: bad value (amdfam10) for -march= switch This affect also CXXFLAGS (CXXFLAGS="${CFLAGS}"). Reproducible: Always Steps to Reproduce: 1. emerge =gcc-3.4.6-r2 2. 3. Actual Results: error: bad value (amdfam10) for -march= switch Expected Results: Successful compilation. With CFLAGS="-march=k8 -O2 -pipe" CXXFLAGS="-march=k8 -O2 -pipe" emerge -a =gcc-3.4.6-r2 emerge did it fine.
Created attachment 199215 [details] my emerge --info
gcc-3.4.6 does not support -march=amdfam10; it requires gcc-4.3 or newer. The correct alternative for older compilers is -march=k8, but you already discovered that. Sorry, can't fix this one, since backporting amdfam10 support to old versions of gcc is not really feasible...