Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6641 - Bootstrap fails with GCC 3.2 final... and -fomit-frame-pointer on Duron
Summary: Bootstrap fails with GCC 3.2 final... and -fomit-frame-pointer on Duron
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-17 10:47 UTC by Patrick Bauer
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Bauer 2002-08-17 10:47:10 UTC
Hello...

I'm not the only one with this problem...
See these threads in the Gentoo forums..

http://forums.gentoo.org/viewtopic.php?t=12063
http://forums.gentoo.org/viewtopic.php?t=12098

Apparently... some people... including me... are getting these errors while
bootstraping on Durons/T-birds... using the -fomit-frame-pinter flag...

checking size of char... configure: error: can not run test program while cross
compiling
Configure in /var/tmp/portage/gcc-3.2/work/build/fastjar failed, exiting.

I'm not getting this error when i leave out -fomit-frame-pointer..

The CFLAGS i used that made the bootstrap successful were:
           CFLAGS="-march=athlon -O3 -pipe"

The CFLAGS which caused the bootstrap to fail were:
           CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-08-17 22:46:22 UTC
the solution is to not use -fomit-frame-pointer

as you can imagine, there a dozens of gcc optimization flags a user could add to
CFLAGS in make.conf. some of them can cause some packages to fail, broken code
at run time etc. then if you consider the number of permutations of that set of
options, if would be quite a task to maintain an ebuild.

so generally, gentoo devs (as far as i know) will support only the default
examples given in make.conf. ie. -march=, -mcpu= and an optimization flag, -O3.
anything beyond that is really the domain of the individual user.
Comment 2 Patrick Bauer 2002-08-17 23:31:01 UTC
okay... thanks... that's what i'll do..
Comment 3 Bart Verwilst 2002-08-21 06:39:57 UTC
Just a notice, but we have a 'flag-o-matic' eclass, that filters out flags.. I think it's best to filter out known bad flags for an ebuild, so it increases the overall stability of the systems.. -fomit-frame-pointer is a heavily used flag, so it would be cool to make it work perfectly in the entire system. 
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2002-08-21 09:19:27 UTC
okay i see this was already done