Opened 10 years ago

Closed 10 years ago

#8401 closed Bugs (fixed)

No threading support - AIX 7, GCC 4.7

Reported by: m.iancu+low-priority@… Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

I'm trying to compile a simple thread .cpp file with Boost 1.53.0

I get the following errors (i got a patch that solves my issue - attached)

-bash-4.2$ g++ -c -I~/agent/workspace-linux/build/../../lib/boost -I~/agent/workspace-linux/build/../../lib/log4cpp/include -o ~/agent/workspace-linb/log4cpp/include -o ~/a../src/otk/proc-mon/ProcMonitor.cpp

In file included from ~/agent/workspace-linux/build/../../lib/boost/boost/thread/detail/platform.hpp:17:0,
                 from ~/agent/workspace-linux/build/../../lib/boost/boost/thread/thread.hpp:12,
                 from ~/agent/workspace-linux/build/../../lib/boost/boost/thread.hpp:13,
                 from ../src/otk/proc-mon/ProcMonitor.h:13,
                 from ../src/otk/proc-mon/ProcMonitor.cpp:8:
~/agent/workspace-linux/build/../../lib/boost/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"

In file included from ~/agent/workspace-linux/build/../../lib/boost/boost/thread/thread.hpp:12:0,
                 from ~/agent/workspace-linux/build/../../lib/boost/boost/thread.hpp:13,
                 from ../src/otk/proc-mon/ProcMonitor.h:13,
                 from ../src/otk/proc-mon/ProcMonitor.cpp:8:
~/agent/workspace-linux/build/../../lib/boost/boost/thread/detail/platform.hpp:69:9: error: #error "Sorry, no boost threads are available for this platform."

Attachments (1)

aix.patch (490 bytes ) - added by m.iancu@… 10 years ago.
patch for threading support AIX (gcc4.7) - works for me

Download all attachments as: .zip

Change History (4)

by m.iancu@…, 10 years ago

Attachment: aix.patch added

patch for threading support AIX (gcc4.7) - works for me

comment:1 by m.iancu@…, 10 years ago

Component: Nonethread
Owner: set to Anthony Williams

comment:2 by viboes, 10 years ago

Component: threadconfig
Owner: changed from Anthony Williams to John Maddock

comment:3 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(In [83957]) Apply patch from #8401. Fixes #8401.

Note: See TracTickets for help on using tickets.