Hi Shiv,
The problem is with the instability of the gcc C++ ABI
and the incompatibility of the g++ and the Sun Studio C++
ABI.
We don't have this problem with C code: if both compilers
can compile a piece of code, it makes sense to use the one
that produces the faster code[1].
But with C++ code, you are forced to choose one or the
other and use it for the entire stack. If you choose
g++, there's a good chance that the code produced by a
future version of g++ won't be ABI compatible with the
one you currently use[2]. Sun Studio mainained ABI
compatibility, that's why only Sun Studio-compiled C++ libs
are allowed in Solaris (as public interfaces) (and they must
be compiled with -compat=5).
Laca
[1] or if you work for Sun, to file bugs if it's not
Sun Studio that produces the faster code (;
[2] that's why the spec files I wrote for inkscape
install to /usr/lib/g++/<gcc version>
On Mon, 2008-04-28 at 10:04 +0530, S h i v wrote:
> On Thu, Apr 24, 2008 at 3:58 PM, Laszlo (Laca) Peter
> <Laszlo.Peter at sun.com> wrote:
> > SFEinkscape finally works, as the screenshot proves (:
> >
> > Unfortunately not with Sun Studio, but I wrote spec files for
> > a separate stack of g++-built libraries.
>
>
> On Thu, Apr 24, 2008 at 10:26 PM, Brian Cameron <Brian.Cameron at sun.com>
> wrote:
> >
> > I know the KDE team also has problems building with Sun Studio C++
> > compiler, and they plan to use the Apache Standard C++ Library
> > instead of using GCC C++ compiler. Would it make sense to go in
> > the same direction with Inkscape? That way we do things in a more
> > consistant way.
> >
>
> Why not just use gcc itself !
>
> 1. One needs to go through unnecessary hoops to make some of the
> softwares build with sunpro. Using abstraction layers, maintaining lot
> of patches, fixing the (sunpro)compiler as being done for KDE, etc.
>
> 2. Being able to *distribute* the compiler toolset with which people
> can do the app development is a valuable proposition to have. By
> building using sunpro we are foregoing that option.
>
> I have heard the argument of performance and seen the benchmarks. I am
> not convinced that this argument is strong enough to tilt the balance.
>
> -Shiv
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org