Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
if (march > k6) { bash != happy}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
morgant
n00b
n00b


Joined: 16 Jun 2002
Posts: 37

PostPosted: Thu Mar 06, 2003 7:45 pm    Post subject: if (march > k6) { bash != happy} Reply with quote

So yeah, I just finished upgrading to gcc3.2.2 (from 2.95.3) and things seem to be going ok so far, but I'm having some flag problems. I'm trying to do an emerge --deep -e world, but it always stops when trying to compile bash-2.05b-r3 with the complaint that
Code:
 checking for C compiler default output... configure: error: C compiler cannot create executables

My CFLAGS are :
Code:
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4"
which I've been using for quite some time now on several systems with no problems. However, the config.log file at /var/tmp/portage/bash-2.05b-r3/work/bash-2.05b/ claims
Code:
 cc1: Invalid option `-falign-functions=4'
cc1: bad value (athlon-xp) for -march= switch

If I remove both of those it works, so I change my cflags to this:

Code:
CFLAGS="-mcpu=k6 -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-cse-after-loop -frerun-loop-opt"

and everything is fine. To save the obvious questions, my cpuinfo output is:
Code:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 6
model name      : AMD Athlon(tm) XP 1800+
stepping        : 2
cpu MHz         : 1533.719
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse3
6 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 3014.65

so I'm not crazy here, I do have an Athlon XP, it just isn't clear to me why those two flags (march=athlon-xp and falign-functions) don't work. Help?
_________________
Morgant

"Computers are like Old Testament gods; lots of rules and no mercy."
Back to top
View user's profile Send private message
tod
Developer
Developer


Joined: 17 Apr 2002
Posts: 136
Location: Ozarks, USA

PostPosted: Thu Mar 06, 2003 11:14 pm    Post subject: Reply with quote

Did you unmerge gcc-2.95.3 after upgrading? Check which version of gcc is 'active' by 'gcc --version' Also see gcc-config.
Back to top
View user's profile Send private message
morgant
n00b
n00b


Joined: 16 Jun 2002
Posts: 37

PostPosted: Sat Mar 08, 2003 5:17 am    Post subject: Reply with quote

I did not unmerge gcc-2.95.3 after upgrading (wasn't sure if that was a good idea or not). I did make sure that gcc 3.2.2 was in my path but I'm not sure if this qualifies as 'active'. I don't know much about gcc-config yet, but from what I gather I should have a profile indicating certain information about the version of gcc I want to use. I don't have any profiles, which I think could be the source of the problem but I'm not sure what to do about it.
_________________
Morgant

"Computers are like Old Testament gods; lots of rules and no mercy."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum