Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to rebuild world with varios gcc versions for apps?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
renesanso
n00b
n00b


Joined: 21 Aug 2012
Posts: 1

PostPosted: Sat Feb 02, 2013 12:24 am    Post subject: How to rebuild world with varios gcc versions for apps? Reply with quote

I have world, that have apps, that can be only merged with some gcc version (only 4.5.* or 4.6.*).
How to automatically switch gcc when I rebuild word? Why there is no integrated portage functions to this?
And what gcc version I must use for whole system: 4.5.* or 4.6.*? All 4.5.* compiled apps i can work with 4.6.* compiled libs and all 4.6.* compiled apps i can work with 4.5.* compiled libs or not?
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9054

PostPosted: Sat Feb 02, 2013 1:34 am    Post subject: Reply with quote

Switching gcc during an ebuild is dangerous. You could cause problems if you switch it in the middle of a separate ebuild's compilation phase. I assume there is no integrated functionality for this because it is a bad idea. The only reasons to use anything other than the latest gcc is if the program in question is rejected due to improved strictness in the latest gcc or if the latest gcc miscompiles the program. If increased strictness is a problem, the program should be fixed. If gcc miscompiles the program, then either the program should be changed (if the source is non-conforming) or gcc should be fixed (if it is a gcc bug).
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2404
Location: UK

PostPosted: Sat Feb 02, 2013 2:05 am    Post subject: Reply with quote

The safe way to do this would be having a separate chroot/container install just for those broken programs. Of course, the right way would be to get those programs fixed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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