|
Boost Users : |
Subject: [Boost-users] [Threads] error building 1.37.0 on cygwin with g++ 4.3.2
From: frederic.bron_at_[hidden]
Date: 2008-12-03 05:16:32
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 <pbin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi>libboost_thread-mt.a(clean) for lack of <pbin.v2/libs/thread/build/gcc-4.3.2
/release/link-static/threading-multi>thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/gcc-4.3.2
/release/link-static/threading-multi>thread.o...
...skipped <p/cygdrive/d/Softs/boost_cyg/lib>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/gcc-4.3.2/release/link-static/threading-multi>libboost_thread-mt.a...
Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.
Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net