Bug 812728 - boost_thread does not work with gcc 4.7
Summary: boost_thread does not work with gcc 4.7
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: boost
Version: 17
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Petr Machata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 754865 760610
TreeView+ depends on / blocked
 
Reported: 2012-04-16 06:00 UTC by Braden McDaniel
Modified: 2015-05-05 01:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-04 06:43:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Braden McDaniel 2012-04-16 06:00:38 UTC
Description of problem:
Attempting to compile a program using Boost.Thread with gcc 4.7 on Fedora 17 produces error messages like this:

In file included from /home/braden/include/boost/thread/detail/platform.hpp:17:0,
                 from /home/braden/include/boost/thread/thread.hpp:12,
                 from /home/braden/include/boost/thread.hpp:13,
                 from conftest.cpp:28:
/home/braden/include/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"


Version-Release number of selected component (if applicable):
1.48.0-9.fc17

How reproducible:
Consistently.

Comment 1 Braden McDaniel 2012-04-16 06:02:14 UTC
This appears to have an upstream fix:

https://svn.boost.org/trac/boost/ticket/6165

In the absence of an upgrade to 1.49.0, it would be nice to backport this.

Comment 2 Petr Machata 2012-04-16 12:39:40 UTC
We already carry that patch.  Something else must be broken.  I'll look inside.

Comment 3 Braden McDaniel 2012-04-19 06:07:26 UTC
Nevermind. I had a version of Boost installed in my home directory that I'd completely forgotten about. (Closer inspection of the output I pasted suggests as much.) I'm not seeing the problem with the current version of Fedora 17's boost package.

Comment 4 Paul Wouters 2012-07-23 21:40:54 UTC
Weird. because I just ran into this on F17 with boost-1.48.0-13

Comment 5 Renich Bon Ciric 2013-01-30 16:16:25 UTC
Same on Fedora 18. I will reopen the bug.

Comment 6 Braden McDaniel 2013-02-04 06:43:26 UTC
You might be seeing the same error message; however, it is either for completely different reasons than led to this report, or you're doing something as silly as I was.

In the former case, you should file a new report.

Comment 7 Thibault North 2013-04-21 01:08:34 UTC
Any update about that ?
The issue is still here on F18, boost 1.50.0.

Comment 8 Denis Arnaud 2013-04-21 06:36:47 UTC
That bug is closed. Could you re-create a bug giving more details, for instance with a minimalist program (C++ source code and Makefile) reproducing the error?

Comment 9 Thibault North 2013-04-22 17:22:40 UTC
Thanks for your answer. I updated the program that was producing this error, and it now works well.
Thanks, and sorry for the noise.


Note You need to log in before you can comment on or make changes to this bug.