From: Kelledin <kelledin+AXP@skarpsey.dyndns.org>
To: axp-list@redhat.com
Subject: Re: [porting-dev] So it Compiles, what does ./setup create?
Date: Sat, 5 Apr 2003 15:37:08 -0600 [thread overview]
Message-ID: <200304051537.08200.kelledin+AXP@skarpsey.dyndns.org> (raw)
In-Reply-To: <3E8EB19B.3020909@voicenet.com>
On Saturday 05 April 2003 04:36 am, U. George wrote:
> Ahh, but do u know why they are incompatable? Maybe a compiler
> defect?
Well, gcc 3.x (specifically, somewhere around gcc-3.1.1) started
using some new relocatable symbol types on Alpha (17 and 18,
R_ALPHA_GPRELHIGH and R_ALPHA_GPRELLOW respectively). There are
probably a few other changes as well (not just Alpha-specific)
due to new features, rather than compiler defects.
> Anyway, if this were true, then there is no real need to
> install the gcc3 ( et al ) product on the ALPHA. Unless, or
> course you remove all things built with gcc2, which in case of
> this RH7.2/ALPHA release whould just about mean everything. Or
> somehow have fenced off areas, one for all things built with
> gcc2, all other things built with gcc3.
Well, as I mentioned, binaries and shared libraries produced by
gcc2 or gcc3 can be mixed without problems, as long as libstdc++
doesn't enter into the picture. That's pretty much all that
matters at run-time, except for rare packages like XFree86 and
the kernel that load .o files at run-time.
The deal-breaker is libstdc++. This library represents the C++
ABI, which didn't really approach finalization until gcc-3.2.
gcc 2.x had a pretty consistent C++ ABI throughout its life, but
it was based on the incomplete draft C++ standard of its time,
rather than the finalized ANSI C++ standard we have now. The
libstdc++ ABI had to make backwards-incompatible changes to meet
the requirements of the finalized standard; most of those
changes started with gcc-3.0 and ended with gcc-3.2.
For that reason, it's advantageous for a distro to provide at
least the libstdc++ shared libraries from both gcc2 and gcc3,
just to satisfy precompiled C++ apps. Mixing gcc2-compiled C++
apps with gcc3-compiled C++ apps could work out 100% fine or
could cause some pretty interesting problems. Usually any
problems it causes are not that destructive--just run-time link
failures that prevent a specific app from running at all.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
next prev parent reply other threads:[~2003-04-05 20:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.NEB.4.21.0303301139480.1556-100000@polonius.bigw.org>
[not found] ` <3E878A9A.1000708@voicenet.com>
[not found] ` <200303302058.02273.kevin.hendricks@sympatico.ca>
2003-04-02 11:34 ` [porting-dev] So it Compiles, what does ./setup create? U. George
[not found] ` <200304020756.41030.kevin.hendricks@sympatico.ca>
2003-04-02 13:43 ` U. George
[not found] ` <200304021912.40641.kevin.hendricks@sympatico.ca>
[not found] ` <3E8B997E.1000401@voicenet.com>
[not found] ` <200304022152.34067.kevin.hendricks@sympatico.ca>
2003-04-03 3:15 ` U. George
[not found] ` <3E8DA95D.5060308@voicenet.com>
[not found] ` <200304041058.46442.kevin.hendricks@sympatico.ca>
[not found] ` <3E8DAE64.8000300@voicenet.com>
[not found] ` <1049501910.14199.3.camel@gandalf.foskey.org>
2003-04-05 1:12 ` U. George
2003-04-05 3:30 ` Kelledin
2003-04-05 10:36 ` U. George
2003-04-05 21:37 ` Kelledin [this message]
2003-04-05 21:19 ` U. George
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox