[Threads] error building 1.37.0 on cygwin with g++ 4.3.2

I tried to build 1.37.0 with g++ 4.3.2 on cygwin. Got the following error. Is there a workaround for this or should I go back to g++ 3.4.4?
Regards,
F. Bron
"g++-4" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_POSIX_API -DBOOST_POSIX_PATH -mfpmath=sse -march=pentium-m -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2\libs\thread\build\gcc-4.3.2\release\link-static\threading-multi\exceptions.o" "libs\thread\src\pthread\exceptions.cpp"
In file included from ./boost/thread/detail/platform.hpp:17,
from ./boost/thread/detail/config.hpp:20,
from libs\thread\src\pthread\exceptions.cpp:7:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi/exceptions.o...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi/once.o
"g++-4" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_POSIX_API -DBOOST_POSIX_PATH -mfpmath=sse -march=pentium-m -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2\libs\thread\build\gcc-4.3.2\release\link-static\threading-multi\once.o" "libs\thread\src\pthread\once.cpp"
In file included from ./boost/thread/detail/platform.hpp:17,
from ./boost/thread/once.hpp:12,
from libs\thread\src\pthread\once.cpp:7:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi/once.o...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi/thread.o
"g++-4" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_POSIX_API -DBOOST_POSIX_PATH -mfpmath=sse -march=pentium-m -mthreads -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2\libs\thread\build\gcc-4.3.2\release\link-static\threading-multi\thread.o" "libs\thread\src\pthread\thread.cpp"
In file included from ./boost/thread/detail/platform.hpp:17,
from ./boost/thread/detail/config.hpp:20,
from libs\thread\src\pthread\thread.cpp:8:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
libs\thread\src\pthread\thread.cpp: In function 'void boost::this_thread::sleep(const boost::system_time&)':
libs\thread\src\pthread\thread.cpp:354: error: 'to_timespec_duration' was not declared in this scope
...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi/thread.o...
...skipped libboost_thread-mt.a for lack of

AMDG frederic.bron@alcan.com wrote:
I tried to build 1.37.0 with g++ 4.3.2 on cygwin. Got the following error. Is there a workaround for this or should I go back to g++ 3.4.4
The compiler was probably built without threading support. What does g++-4 -v say? In Christ, Steven Watanabe
participants (2)
-
frederic.bron@alcan.com
-
Steven Watanabe