Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] boost: context needs C++11
Date: Mon, 20 Aug 2018 23:37:28 +0200	[thread overview]
Message-ID: <20180820233728.6fa1a054@windsurf> (raw)
In-Reply-To: <CAPi7W81tk-yBnm0NzyxZRM_A2kkO_kR7yqZz-VaKP536=F5kuQ@mail.gmail.com>

Hello Fabrice,

On Mon, 20 Aug 2018 23:33:14 +0200, Fabrice Fontaine wrote:

> > I was about to apply, but... C++11 requires at least gcc 4.8 or 4.9
> >  
> That's not right, C++11 requires at least gcc 4.7 (see libcec, jsoncpp,
> poppler, yaml-cpp, ...)

OK. It in fact depends on which C++11 features you depend on, see
https://gcc.gnu.org/projects/cxx-status.html#cxx11. Some C++11 features
only got added in 4.8.

> > depending on the features being used, and I don't see any dependency on
> > a gcc version in the definition of BR2_PACKAGE_BOOST_CONTEXT.  
> 
> But you're right, we should update first patch to select
> BR2_PACKAGE_BOOST_THREAD if gcc version is lower than 4.7 (and not 4.8). I
> will send a v2.

Well, see above. C++11 support is not as clear-cut as: gcc < 4.7
doesn't have it, gcc >= 4.7 has it.

> > There are
> > also other Boost options that say they are related to C++11.
> >  
> I did not check if we should add -std=c++11 for those other boost options.
> At least, it does not cause any build failures but perhaps some features
> are wrongly disabled with some older versions of gcc.
> 
> >
> > Don't we have a problem with gcc 4.7 or older compilers ?
> >  
> std=c++11 works with gcc 4.7, I did not take time to test with older
> versions.

So what are you going to do ? Add std=c++11 unconditionally, without
knowing if this is going to be accepted by older gcc versions ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

      reply	other threads:[~2018-08-20 21:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20 16:55 [Buildroot] [PATCH 1/2] boost: revert b20c5ca3b8c5b180a6ee87556d0c87d474e86cde Fabrice Fontaine
2018-08-20 16:55 ` [Buildroot] [PATCH 2/2] boost: context needs C++11 Fabrice Fontaine
2018-08-20 20:50   ` Thomas Petazzoni
2018-08-20 21:01     ` Bernd Kuhls
2018-08-20 21:33     ` Fabrice Fontaine
2018-08-20 21:37       ` Thomas Petazzoni [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=20180820233728.6fa1a054@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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