public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: WENG Binyang <binyang.weng@forvia.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: RE: How to enable GLIBCXX & CXXABI in yocto
Date: Thu, 28 Apr 2022 01:59:16 +0000	[thread overview]
Message-ID: <PR1P264MB3509A3CAFDE1C7C9835D1AA0F1FD9@PR1P264MB3509.FRAP264.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAH6eHdQdgvvs+crQbYENjmTnsVoLMr4PEpJtxYOXFgrNtRCgwA@mail.gmail.com>

Thanks a lot!

> -----Original Message-----
> From: Jonathan Wakely <jwakely.gcc@gmail.com>
> Sent: Wednesday, April 27, 2022 5:27 PM
> To: WENG Binyang <binyang.weng@forvia.com>
> Cc: gcc-help@gcc.gnu.org
> Subject: Re: How to enable GLIBCXX & CXXABI in yocto
> 
> On Wed, 27 Apr 2022 at 07:30, WENG Binyang <binyang.weng@forvia.com>
> wrote:
> >
> > Hi gcc-help team,
> >
> > I am working on create a arm toolchain by yocto.
> > I confirmed the generated toolchain, but found no GLIBCXX_3.* and CXXABI
> in libstdc++ for arm64. Please refer to the following.
> >
> >
> xxx:~/Workspace/EMIRROR/sdk/linux/yocto-build/toolchain/sysroots/aarch
> > 64-linux/usr/lib$ strings libstdc++.so.6.0.28 | grep GLIBCXX
> > GLIBCXX_FORCE_NEW GLIBCXX_DEBUG_MESSAGE_LENGTH
> >
> > Could you tell me how to enable GLIBCXX_3* and CXXABI in yocto build?
> 
> It depends on linker support and the value of the --enable-symvers configure
> option.
> 
> See https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html
> 
> --enable-symvers[=style]
> 
> In 3.1 and later, tries to turn on symbol versioning in the shared library (if a
> shared library has been requested). Values for 'style'
> that are currently supported are 'gnu', 'gnu-versioned-namespace', 'darwin',
> 'darwin-export', and 'sun'. Both gnu- options require that a recent version of
> the GNU linker be in use. Both darwin options are equivalent. With no style
> given, the configure script will try to guess correct defaults for the host system,
> probe to see if additional requirements are necessary and present for
> activation, and if so, will turn symbol versioning on. This option can change the
> library ABI.
> 
> And the comments in libstdc++-v3/acinclude.m4
> 
> dnl
> dnl Add version tags to symbols in shared library (or not), additionally dnl
> marking other symbols as private/local (or not).
> dnl
> dnl Sets libtool_VERSION, and determines shared library SONAME.
> dnl
> dnl  This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it
> assumes no.
> dnl
> dnl --enable-symvers=style adds a version script to the linker call when
> dnl       creating the shared library.  The choice of version script is
> dnl       controlled by 'style'.
> dnl --disable-symvers does not.
> dnl
> dnl  +  Usage:  GLIBCXX_ENABLE_SYMVERS[(DEFAULT)]
> dnl       Where DEFAULT is either 'yes' or 'no'.  Passing `yes' tries to
> dnl       choose a default style based on linker characteristics.  Passing
> dnl       'no' disables versioning.
> dnl

This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited.  Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.

      reply	other threads:[~2022-04-28  1:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27  6:29 WENG Binyang
2022-04-27  7:03 ` Xi Ruoyao
2022-04-27  9:26 ` Jonathan Wakely
2022-04-28  1:59   ` WENG Binyang [this message]

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=PR1P264MB3509A3CAFDE1C7C9835D1AA0F1FD9@PR1P264MB3509.FRAP264.PROD.OUTLOOK.COM \
    --to=binyang.weng@forvia.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    /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).