Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade to GCC 3.1/3.2
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
One
n00b
n00b


Joined: 15 Jun 2002
Posts: 51
Location: Darmstadt, Germany

PostPosted: Tue Jul 23, 2002 10:50 am    Post subject: Upgrade to GCC 3.1/3.2 Reply with quote

Hi all,

I'm thinking of upgrading my gentoo linux to gcc compiler v3.1/3.2 (if then available), and am currently wondering whether this is possible.

So, can anyone tell me whether this is possible from within a running systen, and how he did it (given it IS possible)?

Many answers would be most welcome ... ! 8)


Greetings,

One.


Last edited by One on Tue Jul 23, 2002 12:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Tue Jul 23, 2002 11:35 am    Post subject: Reply with quote

moving to GCC3 forum.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Thu Aug 01, 2002 12:51 pm    Post subject: Reply with quote

I hope this isn't too late for you, but you'll want to use emerge -e world. This will rebuild everything except glibc.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
fidler
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 162
Location: Utah

PostPosted: Thu Aug 01, 2002 3:38 pm    Post subject: Reply with quote

I have my running fairly well (pentium4) but had to tweak the process. This is how I did it:


  • Download and boot the Gentoo Linux 1.2 boot disk, create the partitions follow the install guide until you get to the portion where you unpack the stage1 system.

  • Download the stage1 tarball for gentoo 1.3b and untar the tarball as per instructions

  • Edit the profile so you may use gcc 3.1.1:

Code:

nano -w /mnt/gentoo/usr/portage/profiles/default-1.0-gcc3/packages

Change the line
Code:

*>=sys-devel/gcc-3.1-r6

To
Code:

*=sys-devel/gcc-3.1.1



  • Unmask gcc3.1.1


Code:

nano -w /mnt/gentoo/usr/portage/profiles/package.mask


Comment the line

Code:

>=sys-devel/gcc-3.1.1


to

Code:

#>=sys-devel/gcc-3.1.1


Theoretically you could use gcc-3.1.1-rc1 but there was no ebuild when I tried it.


  • Edit the make.conf with the following settings


Code:

CFLAGS=CXXFLAGS="-O3 -march=pentium4 -pipe"


Anything Higher than that tends to make the initil emerge system break and not get up again. (The perl system breaks and then the emerge system no longer works... I thought emerge was based on python not perl :? )

  • Compile as normal



There is a bug with the compilation of the avi-file. That is described in a different thread however. https://forums.gentoo.org?viewtopic=8979
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