Boost logo

Boost Users :

Subject: Re: [Boost-users] Problems with Boost 1.41
From: Ксения Сафина (cat7mail.ru_at_[hidden])
Date: 2014-03-10 04:10:45


 Thank you, Ben

My platform is x86_64.
I have any experience with Boost and c++ language at all so I'm sorry for asking questions like this. The errors like "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS" are not clear for me. I mean I have any ideas about where do they come from.
gcc -v gives me 
"Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) "
Is there something wrong with these options?

Ksenia
 
>
>Date: Mon, 10 Mar 2014 11:42:02 +0800
>From: Ben Pope < benpope81_at_[hidden] >
>To:  boost-users_at_[hidden]
>Subject: Re: [Boost-users] Problems with Boost 1.41
>Message-ID: < lfjcb4$kvb$1_at_[hidden] >
>Content-Type: text/plain; charset=UTF-8; format=flowed
>
>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
>
>Date: Sun, 09 Mar 2014 14:05:41 +0400
>From: ?????? ?????? < cat7mail.ru_at_[hidden] >
>To: boost-users_at_[hidden]
>Subject: [Boost-users] Problems with Boost 1.41
>Message-ID: < 1394359541.299650432_at_[hidden] >
>Content-Type: text/plain; charset="utf-8"
>
> 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_at_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



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