Re: [gentoo-user] gcc question

2006-04-03 Thread Neil Bothwick
On Sun, 2 Apr 2006 21:00:39 -0700, Lord Sauron wrote:

 From what I read, if you have half a package using gcc3.3 and the
 other half 3.4 or something, that won't work.

If that were true, how would the system function while recompiling the
other half of the packages?

There may be some issues with running a mixed system, but nothing so
serious as it won't work.


-- 
Neil Bothwick

Crash: (v.) to terminate a program in the usual fashion, i.e. by locking
up the computer or setting fire to the printer. (n.) the process of such
termination.


signature.asc
Description: PGP signature


Re: [gentoo-user] gcc question

2006-04-03 Thread Leigh Stewart
yeah no what im really asking is am i going to run into problems if i
'upgrade' to gcc3.4 and do not, as recommended in the notes that are
displayed after emerging gcc3.4, recompile all my c++ packages with
gcc3.4.

is the version of libstdc++.so which is linked to determined by the
compiler currently in use as determined by gcc-config? is it not
possible to have different programs run against different versions of
c++ shared libraries?On 4/3/06, Neil Bothwick [EMAIL PROTECTED] wrote:
On Sun, 2 Apr 2006 21:00:39 -0700, Lord Sauron wrote: From what I read, if you have half a package using gcc3.3 and the other half 3.4 or something, that won't work.If that were true, how would the system function while recompiling the
other half of the packages?There may be some issues with running a mixed system, but nothing soserious as it won't work.--Neil BothwickCrash: (v.) to terminate a program in the usual fashion, 
i.e. by lockingup the computer or setting fire to the printer. (n.) the process of suchtermination.


Re: [gentoo-user] gcc question

2006-04-03 Thread Richard Fish
On 4/2/06, Leigh Stewart [EMAIL PROTECTED] wrote:
 thanks richard.

  is it safe to have compiled half a system with gcc 3.3 ubt to be compiling
 new packages with 3.4?

No, that's a very bad idea.  It should not be necessary to rebuild the
whole system with the new compiler, but you should at least follow the
revdep-rebuild path of upgrading the compiler.

http://www.gentoo.org/doc/en/gcc-upgrading.xml#upgrade-3.3-to-3.4

The problem is the libstdc++ library.  If you don't at least do the
revdep-rebuild, you could end up with some things that are linked
against both libstdc++.so.6 and libstdc++.so.5, and they will crash
miserably.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Richard Fish
On 4/3/06, Leigh Stewart [EMAIL PROTECTED] wrote:
  is the version of libstdc++.so which is linked to determined by the
 compiler currently in use as determined by gcc-config?

Yes.

 is it not possible to
 have different programs run against different versions of c++ shared
 libraries?

Different programs, yes.  But for example the Qt library links against
libstdc++.  So do all KDE applications.  So if you built Qt against
libstdc++.so.5, and then build a KDE application that will link
against .6, that program will crash.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Graham Murray
Richard Fish [EMAIL PROTECTED] writes:

 The problem is the libstdc++ library.  If you don't at least do the
 revdep-rebuild, you could end up with some things that are linked
 against both libstdc++.so.6 and libstdc++.so.5, and they will crash
 miserably.

On a system with gcc = 3.4, opera is linked against both
libstdc++.so.5 (from the distributed binary) and libstdc++.so.6 (from
natively compiled libraries) but this does not seem to prevent it from
running. 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Leigh Stewart
skype seems to be linked to libstdc++.so.6. (its a binary) would
it hurt to switch to gcc3.4 just to compile libstdc++.so.6 so that
skype has something to link to, and then switch back? On 4/3/06, Graham Murray [EMAIL PROTECTED] wrote:
Richard Fish [EMAIL PROTECTED]
 writes: The problem is the libstdc++ library.If you don't at least do the revdep-rebuild, you could end up with some things that are linked against both libstdc++.so.6 and libstdc++.so.5, and they will crash
 miserably.On a system with gcc = 3.4, opera is linked against bothlibstdc++.so.5 (from the distributed binary) and libstdc++.so.6 (fromnatively compiled libraries) but this does not seem to prevent it from
running.--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] gcc question

2006-04-03 Thread Richard Fish
On 4/3/06, Leigh Stewart [EMAIL PROTECTED] wrote:
 skype seems to be linked to libstdc++.so.6.  (its a binary) would it hurt to
 switch to gcc3.4 just to compile libstdc++.so.6 so that skype has something
 to link to, and then switch back?

You can definitely do this.  You can install gcc 3.4 which will give
you a libstdc++.so.6 library, and then set the system compiler back to
3.3 with gcc-config.  So you will continue to use 3.3 for building all
system updates, but you will have 3.4 installed as well.

Sorry if my original reply didn't make this clear.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Richard Fish
On 4/3/06, Graham Murray [EMAIL PROTECTED] wrote:
 On a system with gcc = 3.4, opera is linked against both
 libstdc++.so.5 (from the distributed binary) and libstdc++.so.6 (from
 natively compiled libraries) but this does not seem to prevent it from
 running.

You've gotten very lucky.  There is a reason that opera provides
separate downloads for systems with libstdc++.so.5 and .6.  Try
searching their forums.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Leigh Stewart
no, thanks you've been a great help :)

--another happy gentoo userOn 4/3/06, Richard Fish [EMAIL PROTECTED] wrote:
On 4/3/06, Leigh Stewart [EMAIL PROTECTED] wrote: skype seems to be linked to libstdc++.so.6.(its a binary) would it hurt to switch to gcc3.4 just to compile libstdc++.so.6 so that skype has something
 to link to, and then switch back?You can definitely do this.You can install gcc 3.4 which will giveyou a libstdc++.so.6 library, and then set the system compiler back to3.3 with gcc-config.So you will continue to use 
3.3 for building allsystem updates, but you will have 3.4 installed as well.Sorry if my original reply didn't make this clear.-Richard--gentoo-user@gentoo.org
 mailing list


Re: [gentoo-user] gcc question

2006-04-03 Thread Graham Murray
Richard Fish [EMAIL PROTECTED] writes:

 You've gotten very lucky.  There is a reason that opera provides
 separate downloads for systems with libstdc++.so.5 and .6.  Try
 searching their forums.

So would it not be a good idea for portage to install the appropriate
version depending on whether the 'main' libstdc++ is so.5 or so.6?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-03 Thread Richard Fish
On 4/3/06, Graham Murray [EMAIL PROTECTED] wrote:
 Richard Fish [EMAIL PROTECTED] writes:

  You've gotten very lucky.  There is a reason that opera provides
  separate downloads for systems with libstdc++.so.5 and .6.  Try
  searching their forums.

 So would it not be a good idea for portage to install the appropriate
 version depending on whether the 'main' libstdc++ is so.5 or so.6?

I believe so, yes.  If it ever does anything strange, I would probably
do a portage overlay with a modified ebuild that pulls the .6 version,
and see if that resolves the problem.  If so, file a bug report.

But please do not file a bug report that says 'opera ebuild should
pull the version that matches system gcc because Richard says so...'. 
:-)

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gcc question

2006-04-02 Thread Leigh Stewart
thanks richard.

is it safe to have compiled half a system with gcc 3.3 ubt to be compiling new packages with 3.4?On 4/2/06, Richard Fish 
[EMAIL PROTECTED] wrote:On 4/1/06, Leigh Stewart 
[EMAIL PROTECTED] wrote: I just tried to install skype, it wont start, and in the logs it tells me it cant find libstdc++.so.6, which doesnt surprise me because it doesnt exist on my system.
im using gcc 3.3.5 and im guessing that libstdc++.so.6 is libstdc++.so compiled with gcc 3.4.5.how can i solve this problem? i dont have time to rebuild my system right now.can i slot the compiler or something?
The compiler is slotted, so you can just do emerge --oneshot=sys-devel/gcc-3.4.5-r1 and then use gcc-config to set your compilerback to the 3.3.5 version.-Richard--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] gcc question

2006-04-02 Thread Lord Sauron
On 4/2/06, Leigh Stewart [EMAIL PROTECTED] wrote:
 thanks richard.

  is it safe to have compiled half a system with gcc 3.3 ubt to be compiling
 new packages with 3.4?

From what I read, if you have half a package using gcc3.3 and the
other half 3.4 or something, that won't work.  However, I don't see a
reason why not...  YMMV, if nothing else.

--
== GCv3.12 ==
GCS d-(++) s+: a? C++ UL+ P+
L++ E--- W+(+++) N++ o? K? w--- O? M+
V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+
DI+++ D+ G e* h- !r !y
= END GCv3.12 

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] gcc question

2006-04-01 Thread Leigh Stewart
I just tried to install skype, it wont start, and in the logs it tells
me it cant find libstdc++.so.6, which doesnt surprise me because it
doesnt exist on my system. 

im using gcc 3.3.5 and im guessing that libstdc++.so.6 is libstdc++.so compiled with gcc 3.4.5. 

how can i solve this problem? i dont have time to rebuild my system right now. can i slot the compiler or something? 


Re: [gentoo-user] gcc question

2006-04-01 Thread Richard Fish
On 4/1/06, Leigh Stewart [EMAIL PROTECTED] wrote:
 I just tried to install skype, it wont start, and in the logs it tells me it
 cant find libstdc++.so.6, which doesnt surprise me because it doesnt exist
 on my system.

  im using gcc 3.3.5 and im guessing that libstdc++.so.6 is libstdc++.so
 compiled with gcc 3.4.5.

  how can i solve this problem? i dont have time to rebuild my system right
 now.  can i slot the compiler or something?

The compiler is slotted, so you can just do emerge --oneshot
=sys-devel/gcc-3.4.5-r1 and then use gcc-config to set your compiler
back to the 3.3.5 version.

-Richard

-- 
gentoo-user@gentoo.org mailing list