Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making your kernel with gcc 3.1.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
matrixise
n00b
n00b


Joined: 09 Jul 2002
Posts: 11
Location: Belgium

PostPosted: Thu Jul 18, 2002 8:28 am    Post subject: Making your kernel with gcc 3.1.1 Reply with quote

if you want to compile your kernel with gcc 3.1.1, it's easy.

you edit your Makefile, and you change the variable CC=gcc to CC=gcc-3.1

if you have an athlon-xp like me, you can change this file : arch/i386/Makefile.
find the line : CONFIG_MK7, and you change "-march=athlon" in "-march=athlon-xp -mcpu=athlon-xp"
Back to top
View user's profile Send private message
rieger
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2002
Posts: 136
Location: The Netherlands

PostPosted: Thu Jul 18, 2002 11:46 am    Post subject: Reply with quote

when you install 1.3 then the only gcc = gcc3.1; so the kernel should be compiled with gcc3.1 isn't it?

but as I think of it; have I dreamed or did I see some march=i486 messages during kernel compile?

don't know it anymore.
_________________
haree
Back to top
View user's profile Send private message
matrixise
n00b
n00b


Joined: 09 Jul 2002
Posts: 11
Location: Belgium

PostPosted: Thu Jul 18, 2002 3:03 pm    Post subject: Reply with quote

i have a 1.2, and my GCC is gcc 3.1 :-) lol

i don't have errors but many of warnings.

you can specify your CPU in the Makefiles.
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Thu Jul 18, 2002 8:01 pm    Post subject: Reply with quote

rieger wrote:
when you install 1.3 then the only gcc = gcc3.1; so the kernel should be compiled with gcc3.1 isn't it?

but as I think of it; have I dreamed or did I see some march=i486 messages during kernel compile?

don't know it anymore.

If u have theres a setting on menuconfig to chage ur processor.
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Sat Jul 20, 2002 12:45 pm    Post subject: Reply with quote

note that you only need to change the gcc-3.1 if your also having gcc-2.x.x installed.


it does compile stuff with a lot of safe flags though, to ensure stability.

I tried changing some stuff around a while ago actually, bzip2 gained about 1-2 seconds, so I figured it wasn't worth it ;)

if someone can show me some benchmarks that shows compiling the kernel with optimized flags helps, that'd be cool :)
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Aug 19, 2002 1:30 am    Post subject: Reply with quote

GCC3 to OTG.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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