Bug 1108268

Summary: devtoolset-gcc not compatible with boost
Product: Red Hat Enterprise Linux 6 Reporter: Bryan Totty <btotty>
Component: boostAssignee: Petr Machata <pmachata>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: bgollahe, jason, jherrman, jwakely, kirbyzhou, law, mcermak, mfranc, mnewsome, mpolacek, pmachata
Target Milestone: alpha   
Target Release: 6.6   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Prior to this update, a number of boost libraries were not compatible with the GNU Compiler Collection (GCC) provided with Red Hat Developer Toolset. A fix has been implemented to address this problem and the affected libraries now properly work with Red Hat Developer Toolset GCC.
Story Points: ---
Clone Of:
: 1167383 (view as bug list) Environment:
Last Closed: 2014-10-14 06:22:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1167383    

Description Bryan Totty 2014-06-11 16:08:28 UTC
Description of problem:

Some boost libraries are not compatible with devtoolset.

For example, one cannot use C++11 features and #include boost/filesystem/operations.hpp, see below.


~$ rpm -q boost-filesystem devtoolset-2-gcc
boost-filesystem-1.41.0-18.el6.x86_64
devtoolset-2-gcc-4.8.2-15.el6.x86_64

~$ cat boost_filesystem.cc 
#include <boost/filesystem/operations.hpp>

~$ scl enable devtoolset-2 'g++ -c -std=c++0x boost_filesystem.cc'
In file included from /usr/include/boost/filesystem/path.hpp:23:0,
                 from /usr/include/boost/filesystem/operations.hpp:17,
                 from boost_filesystem.cc:1:
/usr/include/boost/throw_exception.hpp: In instantiation of \u2018void boost::throw_exception(const E&) [with E = boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::basic_string<char>, boost::filesystem::path_traits> >]\u2019:
/usr/include/boost/filesystem/operations.hpp:281:55:   required from \u2018typename boost::enable_if<boost::filesystem::is_basic_path<Path>, boost::filesystem::file_status>::type boost::filesystem::symlink_status(const Path&) [with Path = boost::filesystem::basic_path<std::basic_string<char>, boost::filesystem::path_traits>; typename boost::enable_if<boost::filesystem::is_basic_path<Path>, boost::filesystem::file_status>::type = boost::filesystem::file_status]\u2019
/usr/include/boost/filesystem/operations.hpp:287:45:   required from here
/usr/include/boost/throw_exception.hpp:64:56: error: use of deleted function \u2018boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::basic_string<char>, boost::filesystem::path_traits> > > >::clone_impl(const boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::filesystem::basic_filesystem_error<boost::filesystem::basic_path<std::basic_string<char>, boost::filesystem::path_traits> > > >&)\u2019

(... many more errors ...)

Comment 4 errata-xmlrpc 2014-10-14 06:22:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1440.html

Comment 5 Kirby Zhou 2014-12-09 10:22:50 UTC
The bug is not fixed completely.
Please look at:
https://bugzilla.redhat.com/show_bug.cgi?id=1108268

Comment 6 Kirby Zhou 2014-12-09 10:23:37 UTC
The bug is not fixed completely.
Please look at:

https://bugzilla.redhat.com/show_bug.cgi?id=1170010