View previous topic :: View next topic |
Author |
Message |
weirdo Tux's lil' helper
Joined: 16 Apr 2002 Posts: 114 Location: Montreal/Quebec/Canada
|
Posted: Wed Nov 17, 2004 4:57 pm Post subject: recompiling with gcc 3.4 |
|
|
I would like to know if there is a guide somewhere to update my system from 2004.1 to 2004.3.
Someone on the mailling list mantionned something about changing the portage profile but I have never done this so I kinda need a step by step guide on switching to gcc 3.4.
Weirdo |
|
Back to top |
|
|
fyrcon n00b
Joined: 12 Oct 2004 Posts: 36
|
Posted: Wed Nov 17, 2004 5:34 pm Post subject: |
|
|
this is what you need to change the profile
Code: |
rm /etc/make.profile
ln -s /usr/portage/profile/<the_new_profile> /etc/make.profile
|
if you then do a update you should get gcc-3.4
and after that you can recompile everything, or just wait until eventually everything has been updated and thus everything is recompiled with gcc-3.4
don't know for sure the later works, I recompiled everything with gcc-3.4
and everytime something fails do
Code: |
emerge --resume --skipfirst
|
hope this helps |
|
Back to top |
|
|
zinion Guru
Joined: 27 Oct 2004 Posts: 541 Location: Ruhgebietshausen
|
Posted: Wed Nov 17, 2004 6:32 pm Post subject: |
|
|
Eh, that's interesting for me, too. Where do I get the new profile? _________________ Es ist schön und warm
hier im Gentoo-Land |
|
Back to top |
|
|
barry Apprentice
Joined: 01 May 2002 Posts: 170 Location: UK
|
Posted: Wed Nov 17, 2004 6:35 pm Post subject: |
|
|
Try:
Code: | cd /etc
ln -sf ../usr/portage/profiles/default-linux/amd64/2004.3 make.profile
|
That will switch to the new profile. You'll need the latest version of portage though.
If you want to recompile everything with gcc 3.4, why not just reinstall from scratch? |
|
Back to top |
|
|
zinion Guru
Joined: 27 Oct 2004 Posts: 541 Location: Ruhgebietshausen
|
Posted: Wed Nov 17, 2004 10:07 pm Post subject: |
|
|
Don't want to reinstall my whole System and make all settings again.
But thanks for your answer, I will start recompiling now _________________ Es ist schön und warm
hier im Gentoo-Land |
|
Back to top |
|
|
weirdo Tux's lil' helper
Joined: 16 Apr 2002 Posts: 114 Location: Montreal/Quebec/Canada
|
Posted: Thu Nov 18, 2004 4:35 am Post subject: |
|
|
Great thanks i'll try it out.
Quote: | If you want to recompile everything with gcc 3.4, why not just reinstall from scratch? |
Basically for the same reason as zinion |
|
Back to top |
|
|
weirdo Tux's lil' helper
Joined: 16 Apr 2002 Posts: 114 Location: Montreal/Quebec/Canada
|
Posted: Thu Nov 18, 2004 5:37 am Post subject: |
|
|
I tried to do an emerge -u world but gcc gave but the folowing the compile error occured during gcc-3.4-r2 compilation:
Quote: |
Adding multilib support to Makefile in /var/tmp/portage/gcc-3.4.2-r2/work/gcc-3.4.2/libstdc++-v3
multidirs=32
with_multisubdir=
Running configure in multilib subdirs 32
pwd: /var/tmp/portage/gcc-3.4.2-r2/work/build/x86_64-pc-linux-gnu/libstdc++-v3
Running configure in multilib subdir 32
pwd: /var/tmp/portage/gcc-3.4.2-r2/work/build/x86_64-pc-linux-gnu
mkdir 32
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.2-r2/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.2-r2/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1
|
I can't find this config.log file.
Anyone ran into this problem ?
Weirdo |
|
Back to top |
|
|
anderlin Tux's lil' helper
Joined: 29 Nov 2003 Posts: 149 Location: Trondheim, Norway
|
Posted: Thu Nov 18, 2004 7:16 am Post subject: |
|
|
I get the same error when I have multilib in my USE-flags. If you have it enabled and don't need it, try to disable it. |
|
Back to top |
|
|
marvin rouge Veteran
Joined: 01 Aug 2004 Posts: 1422 Location: Villa Lumierrante, Zonelibre
|
|
Back to top |
|
|
spielc Guru
Joined: 20 Apr 2004 Posts: 452
|
Posted: Thu Nov 18, 2004 12:39 pm Post subject: |
|
|
Yeah you have to disable the sandbox if you want to compile gcc 3.4... |
|
Back to top |
|
|
weirdo Tux's lil' helper
Joined: 16 Apr 2002 Posts: 114 Location: Montreal/Quebec/Canada
|
Posted: Fri Nov 19, 2004 2:07 am Post subject: |
|
|
Thanks it works
Weirdo |
|
Back to top |
|
|
|