Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 279148

Summary: sys-devel/gcc-3.4.6-r2 fail to compile with CFLAGS=amdfam10
Product: Gentoo Linux Reporter: Dominique Michel <dominique.c.michel>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: my emerge --info

Description Dominique Michel 2009-07-26 12:14:46 UTC
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.
Comment 1 Dominique Michel 2009-07-26 12:17:23 UTC
Created attachment 199215 [details]
my emerge --info
Comment 2 Wormo (RETIRED) gentoo-dev 2009-07-27 06:05:27 UTC
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...