View previous topic :: View next topic |
Author |
Message |
One n00b
Joined: 15 Jun 2002 Posts: 51 Location: Darmstadt, Germany
|
Posted: Tue Jul 23, 2002 10:50 am Post subject: Upgrade to GCC 3.1/3.2 |
|
|
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 ... !
Greetings,
One.
Last edited by One on Tue Jul 23, 2002 12:19 pm; edited 1 time in total |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Tue Jul 23, 2002 11:35 am Post subject: |
|
|
moving to GCC3 forum.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Thu Aug 01, 2002 12:51 pm Post subject: |
|
|
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 |
|
|
fidler Apprentice
Joined: 03 Jul 2002 Posts: 162 Location: Utah
|
Posted: Thu Aug 01, 2002 3:38 pm Post subject: |
|
|
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
|
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 )
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 |
|
|
|