* [gentoo-user] gcc question
@ 2006-04-01 19:57 Leigh Stewart
2006-04-02 4:12 ` Richard Fish
0 siblings, 1 reply; 15+ messages in thread
From: Leigh Stewart @ 2006-04-01 19:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 429 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-01 19:57 [gentoo-user] gcc question Leigh Stewart
@ 2006-04-02 4:12 ` Richard Fish
2006-04-03 3:57 ` Leigh Stewart
0 siblings, 1 reply; 15+ messages in thread
From: Richard Fish @ 2006-04-02 4:12 UTC (permalink / raw
To: gentoo-user
On 4/1/06, Leigh Stewart <agrodellic@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-02 4:12 ` Richard Fish
@ 2006-04-03 3:57 ` Leigh Stewart
2006-04-03 4:00 ` Lord Sauron
2006-04-03 15:08 ` Richard Fish
0 siblings, 2 replies; 15+ messages in thread
From: Leigh Stewart @ 2006-04-03 3:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
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 <bigfish@asmallpond.org> wrote:
>
> On 4/1/06, Leigh Stewart <agrodellic@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1356 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 3:57 ` Leigh Stewart
@ 2006-04-03 4:00 ` Lord Sauron
2006-04-03 9:50 ` Neil Bothwick
2006-04-03 15:08 ` Richard Fish
1 sibling, 1 reply; 15+ messages in thread
From: Lord Sauron @ 2006-04-03 4:00 UTC (permalink / raw
To: gentoo-user
On 4/2/06, Leigh Stewart <agrodellic@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 4:00 ` Lord Sauron
@ 2006-04-03 9:50 ` Neil Bothwick
2006-04-03 14:39 ` Leigh Stewart
0 siblings, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2006-04-03 9:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 9:50 ` Neil Bothwick
@ 2006-04-03 14:39 ` Leigh Stewart
2006-04-03 15:10 ` Richard Fish
0 siblings, 1 reply; 15+ messages in thread
From: Leigh Stewart @ 2006-04-03 14:39 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]
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 <neil@digimed.co.uk> 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 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.
>
>
>
[-- Attachment #2: Type: text/html, Size: 1418 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 3:57 ` Leigh Stewart
2006-04-03 4:00 ` Lord Sauron
@ 2006-04-03 15:08 ` Richard Fish
2006-04-03 15:46 ` Graham Murray
1 sibling, 1 reply; 15+ messages in thread
From: Richard Fish @ 2006-04-03 15:08 UTC (permalink / raw
To: gentoo-user
On 4/2/06, Leigh Stewart <agrodellic@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 14:39 ` Leigh Stewart
@ 2006-04-03 15:10 ` Richard Fish
0 siblings, 0 replies; 15+ messages in thread
From: Richard Fish @ 2006-04-03 15:10 UTC (permalink / raw
To: gentoo-user
On 4/3/06, Leigh Stewart <agrodellic@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 15:08 ` Richard Fish
@ 2006-04-03 15:46 ` Graham Murray
2006-04-03 16:02 ` Leigh Stewart
2006-04-03 16:45 ` Richard Fish
0 siblings, 2 replies; 15+ messages in thread
From: Graham Murray @ 2006-04-03 15:46 UTC (permalink / raw
To: gentoo-user
"Richard Fish" <bigfish@asmallpond.org> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 15:46 ` Graham Murray
@ 2006-04-03 16:02 ` Leigh Stewart
2006-04-03 16:29 ` Richard Fish
2006-04-03 16:45 ` Richard Fish
1 sibling, 1 reply; 15+ messages in thread
From: Leigh Stewart @ 2006-04-03 16:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
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 <graham@gmurray.org.uk> wrote:
>
> "Richard Fish" <bigfish@asmallpond.org> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1234 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 16:02 ` Leigh Stewart
@ 2006-04-03 16:29 ` Richard Fish
2006-04-03 16:55 ` Leigh Stewart
0 siblings, 1 reply; 15+ messages in thread
From: Richard Fish @ 2006-04-03 16:29 UTC (permalink / raw
To: gentoo-user
On 4/3/06, Leigh Stewart <agrodellic@gmail.com> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 15:46 ` Graham Murray
2006-04-03 16:02 ` Leigh Stewart
@ 2006-04-03 16:45 ` Richard Fish
2006-04-03 17:42 ` Graham Murray
1 sibling, 1 reply; 15+ messages in thread
From: Richard Fish @ 2006-04-03 16:45 UTC (permalink / raw
To: gentoo-user
On 4/3/06, Graham Murray <graham@gmurray.org.uk> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 16:29 ` Richard Fish
@ 2006-04-03 16:55 ` Leigh Stewart
0 siblings, 0 replies; 15+ messages in thread
From: Leigh Stewart @ 2006-04-03 16:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
no, thanks you've been a great help :)
--another happy gentoo user
On 4/3/06, Richard Fish <bigfish@asmallpond.org> wrote:
>
> On 4/3/06, Leigh Stewart <agrodellic@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1224 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 16:45 ` Richard Fish
@ 2006-04-03 17:42 ` Graham Murray
2006-04-04 0:22 ` Richard Fish
0 siblings, 1 reply; 15+ messages in thread
From: Graham Murray @ 2006-04-03 17:42 UTC (permalink / raw
To: gentoo-user
"Richard Fish" <bigfish@asmallpond.org> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] gcc question
2006-04-03 17:42 ` Graham Murray
@ 2006-04-04 0:22 ` Richard Fish
0 siblings, 0 replies; 15+ messages in thread
From: Richard Fish @ 2006-04-04 0:22 UTC (permalink / raw
To: gentoo-user
On 4/3/06, Graham Murray <graham@gmurray.org.uk> wrote:
> "Richard Fish" <bigfish@asmallpond.org> 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
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2006-04-04 0:31 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 19:57 [gentoo-user] gcc question Leigh Stewart
2006-04-02 4:12 ` Richard Fish
2006-04-03 3:57 ` Leigh Stewart
2006-04-03 4:00 ` Lord Sauron
2006-04-03 9:50 ` Neil Bothwick
2006-04-03 14:39 ` Leigh Stewart
2006-04-03 15:10 ` Richard Fish
2006-04-03 15:08 ` Richard Fish
2006-04-03 15:46 ` Graham Murray
2006-04-03 16:02 ` Leigh Stewart
2006-04-03 16:29 ` Richard Fish
2006-04-03 16:55 ` Leigh Stewart
2006-04-03 16:45 ` Richard Fish
2006-04-03 17:42 ` Graham Murray
2006-04-04 0:22 ` Richard Fish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox