Click to See Complete Forum and Search --> : Athon optimizations with gcc 2.95.3 under Slackware


Giscardo
08-02-2001, 10:59 PM
I just installed Slack 8.0 from CD. I'm using kernel 2.4.5, and gcc version 2.95.3. Every time i try to compile something with athlon optimizations (by editing the Makefile and adding "-march=athlon" under the "CFLAGS=" section, i get an error saying that it doesn't recognize value "athlon".
For example, when i was tryign to compile the NVIDIA kernel driver for my GeForce2MX, i got the following error:
cc1: bad value (athlon) for -march= switch
In the "make menuconfig" process of compiling kernel 2.4.7, i chose athlon as my CPU, but when i do "make bzImage" all the compiler options it lists when it's doing it work say -march=i686.

I have also tried typing in "export CFLAGS='-march=athlon'", but that didn't make any difference. It seems that the compiler doesn't know how to optimize for athlon cpu's. I had mandrake 8.0 installed last week, and I didn't have trouble setting -march=athlon. I think it was using gcc 2.96.something. I went ot the gcc website but they skip from 2.95.3 to 3.0.

SORRY IF THIS POST IS UGLY, but it's my first time using Lynx, so I don't know how this will be formated.
Thanks for any help, please try to answer soon cause i would like to get this over with.

ronmon
08-02-2001, 11:15 PM
Man, you did that in Lynx? Looks great.

gcc-2.96 was (is) buggier than hell. You don't want it. 3.00 is beta, but is supposed to be pretty stable. Try installing that one and if it doesn't work, you should be able to switch back without an problem. I'm pretty sure all the dependcies are covered for both.

Giscardo
08-03-2001, 12:50 AM
Thanks, I installed gcc 3.0, and I'm doing "make bzImage" as we speak, and I am seeing the lovely "march=athlon" being scrolled on the screen mixed in with all the gobbledygook.
Hopefully it wont give me problems. In a post on another website someone told me that 3.0 was buggy. I'm willing to take the chance tho.

ronmon
08-03-2001, 08:37 AM
As I said, it is beta, but if you want new features that's the price you pay :) Glad to hear that it's working so far.