Problems with Boost 1.41
Hi everyone, I'm trying to build this http://vina.scripps.edu/manual.html#build program using Boost 1.41. 'make' command gives me a large amount of errors: noraneko@noraneko-K53SJ:~/Programs/autodock_vina_1_1_2/build/linux/release$ make/usr/bin/g++ -static -pthread -ansi -Wno-long-long -O3 -DNDEBUG -I /usr/local/include -I ../../../src/lib -o main.o -c ../../../src/main/main.cpp In file included from /usr/local/include/boost/thread/detail/platform.hpp:17:0, from /usr/local/include/boost/thread/thread.hpp:12, from ../../../src/main/main.cpp:32: /usr/local/include/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 /usr/local/include/boost/thread/thread.hpp:12:0, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/detail/platform.hpp:67:9: error: #error "Sorry, no boost threads are available for this platform." In file included from ../../../src/main/main.cpp:32:0: /usr/local/include/boost/thread/thread.hpp:19:2: error: #error "Boost threads unavailable on this platform" In file included from /usr/local/include/boost/thread/detail/thread.hpp:11:0, from /usr/local/include/boost/thread/thread.hpp:22, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" In file included from /usr/local/include/boost/thread/detail/thread.hpp:13:0, from /usr/local/include/boost/thread/thread.hpp:22, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/detail/thread_heap_alloc.hpp:19:2: error: #error "Boost threads unavailable on this platform" In file included from /usr/local/include/boost/thread/detail/thread_group.hpp:9:0, from /usr/local/include/boost/thread/thread.hpp:24, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/shared_mutex.hpp:18:2: error: #error "Boost threads unavailable on this platform" In file included from /usr/local/include/boost/thread/thread.hpp:22:0, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/detail/thread.hpp:40:9: error: expected class-name before ‘{’ token /usr/local/include/boost/thread/detail/thread.hpp:68:9: error: expected class-name before ‘{’ token /usr/local/include/boost/thread/detail/thread.hpp:88:9: error: expected class-name before ‘{’ token /usr/local/include/boost/thread/detail/thread.hpp:113:17: error: ‘mutex’ in namespace ‘boost’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp:114:9: error: ‘thread_data_ptr’ in namespace ‘boost::detail’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp:118:49: error: expected ‘)’ before ‘data’ /usr/local/include/boost/thread/detail/thread.hpp:120:9: error: ‘thread_data_ptr’ in namespace ‘boost::detail’ does not name a type In file included from /usr/local/include/boost/thread/thread.hpp:22:0, from ../../../src/main/main.cpp:32: /usr/local/include/boost/thread/detail/thread.hpp:134:23: error: ‘thread_data_ptr’ in namespace ‘boost::detail’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp:139:23: error: ‘thread_data_ptr’ in namespace ‘boost::detail’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp:319:17: error: ‘thread_data_base’ in namespace ‘boost::detail’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp:320:9: error: ‘native_handle_type’ does not name a type /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(F, typename boost::disable_if<boost::is_convertible<T&, boost::detail::thread_move_t<T> >, boost::thread::dummy*>::type)’: /usr/local/include/boost/thread/detail/thread.hpp:189:13: error: class ‘boost::thread’ does not have any field named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(boost::detail::thread_move_t<T>)’: /usr/local/include/boost/thread/detail/thread.hpp:197:13: error: class ‘boost::thread’ does not have any field named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(boost::detail::thread_move_t<boost::thread>)’: /usr/local/include/boost/thread/detail/thread.hpp:204:13: error: ‘thread_info’ was not declared in this scope /usr/local/include/boost/thread/detail/thread.hpp:204:28: error: ‘class boost::thread’ has no member named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp:205:16: error: ‘class boost::thread’ has no member named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(F, A1)’: /usr/local/include/boost/thread/detail/thread.hpp:237:13: error: class ‘boost::thread’ does not have any field named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(F, A1, A2)’: /usr/local/include/boost/thread/detail/thread.hpp:243:13: error: class ‘boost::thread’ does not have any field named ‘thread_info’ /usr/local/include/boost/thread/detail/thread.hpp: In constructor ‘boost::thread::thread(F, A1, A2, A3)’: /usr/local/include/boost/thread/detail/thread.hpp:250:13: error: class ‘boost::thread’ does not have any field named ‘thread_info’ .... /usr/local/include/boost/thread/detail/thread_group.hpp: In member function ‘void boost::thread_group::remove_thread(boost::thread*)’: /usr/local/include/boost/thread/detail/thread_group.hpp:55:13: error: ‘lock_guard’ is not a member of ‘boost’ /usr/local/include/boost/thread/detail/thread_group.hpp:55:31: error: ‘shared_mutex’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:55:51: error: ‘m’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:55:52: error: ‘guard’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp: In member function ‘void boost::thread_group::join_all()’: /usr/local/include/boost/thread/detail/thread_group.hpp:65:13: error: ‘shared_lock’ is not a member of ‘boost’ /usr/local/include/boost/thread/detail/thread_group.hpp:65:32: error: ‘shared_mutex’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:65:52: error: ‘m’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:65:53: error: ‘guard’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp: In member function ‘void boost::thread_group::interrupt_all()’: /usr/local/include/boost/thread/detail/thread_group.hpp:77:13: error: ‘shared_lock’ is not a member of ‘boost’ /usr/local/include/boost/thread/detail/thread_group.hpp:77:32: error: ‘shared_mutex’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:77:52: error: ‘m’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:77:53: error: ‘guard’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp: In member function ‘size_t boost::thread_group::size() const’: /usr/local/include/boost/thread/detail/thread_group.hpp:89:13: error: ‘shared_lock’ is not a member of ‘boost’ /usr/local/include/boost/thread/detail/thread_group.hpp:89:32: error: ‘shared_mutex’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:89:52: error: ‘m’ was not declared in this scope /usr/local/include/boost/thread/detail/thread_group.hpp:89:53: error: ‘guard’ was not declared in this scope make: *** [main.o] Error 1 Could anyone help me to understand what do these all errors mean? I'm on Ubuntu 13.04, gcc version is 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) Ksenia
On Sunday, March 09, 2014 06:05 PM, Ксения Сафина wrote:
Hi everyone,
I'm trying to build this http://vina.scripps.edu/manual.html#build program using Boost 1.41.
'make' command gives me a large amount of errors:
snip
error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
snip
error: #error "Sorry, no boost threads are available for this platform."
snip
Could anyone help me to understand what do these all errors mean?
I think the error messages are quite clear.
I'm on Ubuntu 13.04, gcc version is 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
I hesitate to ask, but what architecture is your platform? Boost 1.41 was tested with gcc 4.4.1 on Ubuntu (and some older compilers), the platform is not mentioned, but it's probably x86 or x86_64. It's possible that you need to modify the compiler configuration to accept the newer gcc and/or libstdc++. Ben
participants (2)
-
Ben Pope
-
Ксения Сафина