From: mario guerra <emailformario@yahoo.com>
To: Brian Budge <brian.budge@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: supporting multiple versions of GCC with a single shared object release?
Date: Wed, 15 Apr 2009 17:09:00 -0000 [thread overview]
Message-ID: <586960.71134.qm@web34803.mail.mud.yahoo.com> (raw)
Hmmm....is there a way to force GCC to resolve all outstanding std library references at link time and still ship the final build as a dynamic shared object? I know it kind of defeats the purpose of having standard libraries to begin with, but it would solve the problem if it were possible.
--- On Wed, 4/15/09, Brian Budge <brian.budge@gmail.com> wrote:
> From: Brian Budge <brian.budge@gmail.com>
> Subject: Re: supporting multiple versions of GCC with a single shared object release?
> To: emailformario@yahoo.com
> Date: Wednesday, April 15, 2009, 8:58 AM
> Hi Mario -
>
> Many distributions ship with older versions of libstdc++.so
> in order
> to maintain compatibility with older binaries.
> However, you're
> fundamentally right: if you want to *guarantee* that
> there are no ABI
> breakages, you'd still need to make sure that they have
> access to an
> ABI-compatible libstdc++ (and any other c++ libraries you
> link
> against).
>
> Brian
>
> On Tue, Apr 14, 2009 at 8:41 PM, Mario Guerra <emailformario@yahoo.com>
> wrote:
> > Brian,
> >
> > We thought about this approach, but even with a C
> interface, wouldn't the underlying C++ library calls be
> resolved with the potentially mismatched standard library? I
> would be much obliged if you would describe the approach
> you're thinking of in more detail.
> >
> > Thanks,
> > Mario
> >
> > ------Original Message------
> > From: Brian Budge
> > To: mario guerra
> > Cc: gcc-help@gcc.gnu.org
> > Subject: Re: supporting multiple versions of GCC with
> a single shared object release?
> > Sent: Apr 14, 2009 5:09 PM
> >
> > The only way I know of to do this reliably is to have
> a C interface.
> > The ABI breakages are definitely a bummer. The other
> option is to
> > have a build for each used ABI.
> >
> > On Tue, Apr 14, 2009 at 3:02 PM, mario guerra <emailformario@gmail.com>
> wrote:
> >> Hello all,
> >>
> >> I work for a chip company that produces a C++
> simulator for one of our
> >> processor cores, which we deliver as a shared
> object file. We've used
> >> GCC version 3.3.3 to build it, since that is the
> standard version
> >> deployed within our company. However, some of our
> customers are
> >> attempting to incorporate our model into third
> party simulation
> >> environments which use different versions of GCC,
> and this sometimes
> >> causes segmentation faults at run time from calls
> into the stdc++
> >> library. We're trying to find a way to support
> customers who may be
> >> using different versions of GCC without having to
> create a custom
> >> simulator build for each customer.
> >>
> >> Surely this problem has come up for others before.
> I'm looking for any
> >> suggestions as to how this problem might be
> solved, any ideas would be
> >> much appreciated.
> >>
> >> Thanks,
> >> Mario
> >>
> >
> >
>
next reply other threads:[~2009-04-15 17:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 17:09 mario guerra [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-04-17 14:55 mario guerra
2009-04-17 15:30 ` Ian Lance Taylor
2009-04-15 17:13 mario guerra
2009-04-15 17:40 ` Ian Lance Taylor
[not found] <5480d0a80904141452g45324a9ch68c1e1a6e5e51904@mail.gmail.com>
2009-04-14 22:02 ` mario guerra
2009-04-14 22:09 ` Brian Budge
2009-04-14 22:21 ` Ian Lance Taylor
2009-04-15 15:09 ` John Fine
2009-04-16 17:06 ` Andrew Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=586960.71134.qm@web34803.mail.mud.yahoo.com \
--to=emailformario@yahoo.com \
--cc=brian.budge@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).