Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279148 - sys-devel/gcc-3.4.6-r2 fail to compile with CFLAGS=amdfam10
Summary: sys-devel/gcc-3.4.6-r2 fail to compile with CFLAGS=amdfam10
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 12:14 UTC by Dominique Michel
Modified: 2009-07-27 06:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
my emerge --info (emerge-info,11.36 KB, text/plain)
2009-07-26 12:17 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
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...