Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555952 - dev-libs/boost-1.56.0-r1 fails to build with GCC 5.2
Summary: dev-libs/boost-1.56.0-r1 fails to build with GCC 5.2
Status: RESOLVED DUPLICATE of bug 546882
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-26 13:37 UTC by Tom Li
Modified: 2015-07-27 09:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Li 2015-07-26 13:37:14 UTC
https://svn.boost.org/trac/boost/ticket/10500

When __GNUC__ > 4, boost defines BOOST_HAS_VARIADIC_TMPL (and not BOOST_NO_CXX11_VARIADIC_TEMPLATES) without checking any of __cplusplus, __GXX_EXPERIMENTAL_CXX0X__ or __cpp_variadic_templates.

In file included from libs/thread/src/pthread/thread.cpp:19:0:
./boost/thread/future.hpp:1141:43: warning: variadic templates only available with -std=c++11 or -std=gnu++11
             template<typename F1, typename... Fs>

GCC 5.2 complains about the issue, and eventually caused build failure.

After apply this patch, dev-libs/boost-1.56.0-r1 compiles without problems:

https://github.com/boostorg/config/commit/eec808554936ae068b23df07ab54d4dc6302a695.patch
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-07-26 15:15:59 UTC
From the date of that patch I assue that either boost-1.57.0 or boost-1.58.0 (both being p.masked) should not have this problem anymore.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2015-07-26 19:53:58 UTC
I can't reproduce this.  emerge --info please.
Comment 3 . 2015-07-26 23:28:43 UTC
I confirm this behaviour also with version 1.55.0. Replacing -std=c++98 with -std=c++11 fixed it.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2015-07-27 00:45:12 UTC
Well it sounds like bug #546882, which is supposed to be fixed in 1.56, but I can't tell if they're the same issue because no one will post a simple build log.
Comment 5 Sergey Popov gentoo-dev 2015-07-27 09:42:29 UTC

*** This bug has been marked as a duplicate of bug 546882 ***