Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recompiling with gcc 3.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
weirdo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2002
Posts: 114
Location: Montreal/Quebec/Canada

PostPosted: Wed Nov 17, 2004 4:57 pm    Post subject: recompiling with gcc 3.4 Reply with quote

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
View user's profile Send private message
fyrcon
n00b
n00b


Joined: 12 Oct 2004
Posts: 36

PostPosted: Wed Nov 17, 2004 5:34 pm    Post subject: Reply with quote

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
Code:

emerge -e world


and everytime something fails do
Code:

emerge --resume --skipfirst


hope this helps
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Nov 17, 2004 6:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Wed Nov 17, 2004 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Wed Nov 17, 2004 10:07 pm    Post subject: Reply with quote

Don't want to reinstall my whole System and make all settings again. 8O

But thanks for your answer, I will start recompiling now :)
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
weirdo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2002
Posts: 114
Location: Montreal/Quebec/Canada

PostPosted: Thu Nov 18, 2004 4:35 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
weirdo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2002
Posts: 114
Location: Montreal/Quebec/Canada

PostPosted: Thu Nov 18, 2004 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
anderlin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 149
Location: Trondheim, Norway

PostPosted: Thu Nov 18, 2004 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
marvin rouge
Veteran
Veteran


Joined: 01 Aug 2004
Posts: 1422
Location: Villa Lumierrante, Zonelibre

PostPosted: Thu Nov 18, 2004 8:03 am    Post subject: Reply with quote

try FEATURES="-sandbox"

see here :
https://forums.gentoo.org/viewtopic.php?t=251192
Back to top
View user's profile Send private message
spielc
Guru
Guru


Joined: 20 Apr 2004
Posts: 452

PostPosted: Thu Nov 18, 2004 12:39 pm    Post subject: Reply with quote

Yeah you have to disable the sandbox if you want to compile gcc 3.4...
Back to top
View user's profile Send private message
weirdo
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2002
Posts: 114
Location: Montreal/Quebec/Canada

PostPosted: Fri Nov 19, 2004 2:07 am    Post subject: Reply with quote

Thanks it works

Weirdo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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