Boost logo

Boost Users :

Subject: [Boost-users] building boost 1.54 thread
From: W. Miah (wadud.miah_at_[hidden])
Date: 2015-08-11 10:30:22


Hello,

I am having trouble building the threaded version of boost (version
1.54). I require version 1.54 only. I am getting the below error
message. Any help will be greatly appreciated.

Regards,
Wadud.

[root_at_bengal boost_1_54_0]# g++ --version
g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation, Inc.

[root_at_bengal boost_1_54_0]# ./bootstrap.sh
--prefix=/usr/local/boost-1.54 --with-libraries=thread
Building Boost.Build engine with toolset gcc...
tools/build/v2/engine/bin.linuxx86_64/b2
Unicode/ICU support for Boost.Regex?... /usr
Generating Boost.Build configuration in project-config.jam...

Bootstrapping is done. To build, run:

    ./b2

To adjust configuration, edit 'project-config.jam'.
Further information:

   - Command line help:
     ./b2 --help

   - Getting started guide:
     http://www.boost.org/more/getting_started/unix-variants.html

   - Boost.Build documentation:
     http://www.boost.org/boost-build2/doc/html/index.html

[root_at_bengal boost_1_54_0]# ./b2 install

Component configuration:

    - atomic : not building
    - chrono : not building
    - context : not building
    - coroutine : not building
    - date_time : not building
    - exception : not building
    - filesystem : not building
    - graph : not building
    - graph_parallel : not building
    - iostreams : not building
    - locale : not building
    - log : not building
    - math : not building
    - mpi : not building
    - program_options : not building
    - python : not building
    - random : not building
    - regex : not building
    - serialization : not building
    - signals : not building
    - system : not building
    - test : not building
    - thread : building
    - timer : not building
    - wave : not building

...patience...
...patience...
...found 21612 targets...
...updating 38 targets...
common.mkdir bin.v2
common.mkdir bin.v2/libs
common.mkdir bin.v2/libs/system
common.mkdir bin.v2/libs/system/build
common.mkdir bin.v2/libs/system/build/gcc-4.9.2
common.mkdir bin.v2/libs/system/build/gcc-4.9.2/release
common.mkdir bin.v2/libs/system/build/gcc-4.9.2/release/threading-multi
gcc.compile.c++
bin.v2/libs/system/build/gcc-4.9.2/release/threading-multi/error_code.o
In file included from ./boost/system/error_code.hpp:15:0,
                 from libs/system/src/error_code.cpp:19:
./boost/cstdint.hpp:300:49: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)
                                                 ^
./boost/cstdint.hpp:300:123: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)

                                                    ^
In file included from ./boost/system/error_code.hpp:15:0,
                 from libs/system/src/error_code.cpp:19:
./boost/cstdint.hpp:300:195: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)

                                                     ^
gcc.link.dll bin.v2/libs/system/build/gcc-4.9.2/release/threading-multi/libboost_system.so.1.54.0
common.copy /usr/local/boost-1.54/lib/libboost_system.so.1.54.0
ln-UNIX /usr/local/boost-1.54/lib/libboost_system.so
common.mkdir bin.v2/libs/thread
common.mkdir bin.v2/libs/thread/build
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/thread.o
In file included from ./boost/bind/bind.hpp:29:0,
                 from ./boost/bind.hpp:22,
                 from ./boost/thread/detail/thread.hpp:29,
                 from ./boost/thread/thread_only.hpp:22,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’
locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I ==
is_placeholder<T>::value? 1: -1 ];
                      ^
In file included from ./boost/atomic.hpp:12:0,
                 from ./boost/thread/pthread/once_atomic.hpp:20,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/thread.cpp:17:
./boost/atomic/atomic.hpp: At global scope:
./boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared
in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
before ‘;’ token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^
In file included from ./boost/system/system_error.hpp:14:0,
                 from ./boost/thread/exceptions.hpp:22,
                 from ./boost/thread/pthread/thread_data.hpp:10,
                 from ./boost/thread/thread_only.hpp:17,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/system/error_code.hpp:222:36: warning:
‘boost::system::posix_category’ defined but not used
[-Wunused-variable]
     static const error_category & posix_category = generic_category();
                                    ^
./boost/system/error_code.hpp:223:36: warning:
‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
     static const error_category & errno_ecat = generic_category();
                                    ^
./boost/system/error_code.hpp:224:36: warning:
‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
     static const error_category & native_ecat = system_category();
                                    ^

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -fPIC -Wextra -Wno-long-long
-Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1
-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c
-o "bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/thread.o"
"libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/thread.o...
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/once.o
In file included from ./boost/bind/bind.hpp:29:0,
                 from ./boost/bind.hpp:22,
                 from ./boost/thread/pthread/once_atomic.hpp:19,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/./once_atomic.cpp:9,
                 from libs/thread/src/pthread/once.cpp:8:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’
locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I ==
is_placeholder<T>::value? 1: -1 ];
                      ^
In file included from ./boost/atomic.hpp:12:0,
                 from ./boost/thread/pthread/once_atomic.hpp:20,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/./once_atomic.cpp:9,
                 from libs/thread/src/pthread/once.cpp:8:
./boost/atomic/atomic.hpp: At global scope:
./boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared
in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
before ‘;’ token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -fPIC -Wextra -Wno-long-long
-Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1
-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c
-o "bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/once.o"
"libs/thread/src/pthread/once.cpp"

...failed gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/pthread/once.o...
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi/future.o
...skipped <pbin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi>libboost_thread.so.1.54.0
for lack of <pbin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi>pthread/thread.o...
...skipped <p/usr/local/boost-1.54/lib>libboost_thread.so.1.54.0 for
lack of <pbin.v2/libs/thread/build/gcc-4.9.2/release/threading-multi>libboost_thread.so.1.54.0...
...skipped <p/usr/local/boost-1.54/lib>libboost_thread.so for lack of
<p/usr/local/boost-1.54/lib>libboost_thread.so.1.54.0...
common.mkdir bin.v2/libs/system/build/gcc-4.9.2/release/link-static
common.mkdir bin.v2/libs/system/build/gcc-4.9.2/release/link-static/threading-multi
gcc.compile.c++
bin.v2/libs/system/build/gcc-4.9.2/release/link-static/threading-multi/error_code.o
In file included from ./boost/system/error_code.hpp:15:0,
                 from libs/system/src/error_code.cpp:19:
./boost/cstdint.hpp:300:49: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)
                                                 ^
./boost/cstdint.hpp:300:123: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)

                                                    ^
In file included from ./boost/system/error_code.hpp:15:0,
                 from libs/system/src/error_code.cpp:19:
./boost/cstdint.hpp:300:195: warning: use of C++11 long long integer
constant [-Wlong-long]
 # elif (defined(ULLONG_MAX) && ULLONG_MAX ==
18446744073709551615ULL) || (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX
== 18446744073709551615ULL) || (defined(ULONGLONG_MAX) &&
ULONGLONG_MAX == 18446744073709551615ULL)

                                                     ^
gcc.archive bin.v2/libs/system/build/gcc-4.9.2/release/link-static/threading-multi/libboost_system.a
common.copy /usr/local/boost-1.54/lib/libboost_system.a
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release/link-static
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi
common.mkdir bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/thread.o
In file included from ./boost/bind/bind.hpp:29:0,
                 from ./boost/bind.hpp:22,
                 from ./boost/thread/detail/thread.hpp:29,
                 from ./boost/thread/thread_only.hpp:22,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’
locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I ==
is_placeholder<T>::value? 1: -1 ];
                      ^
In file included from ./boost/atomic.hpp:12:0,
                 from ./boost/thread/pthread/once_atomic.hpp:20,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/thread.cpp:17:
./boost/atomic/atomic.hpp: At global scope:
./boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared
in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
before ‘;’ token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^
In file included from ./boost/system/system_error.hpp:14:0,
                 from ./boost/thread/exceptions.hpp:22,
                 from ./boost/thread/pthread/thread_data.hpp:10,
                 from ./boost/thread/thread_only.hpp:17,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/system/error_code.hpp:222:36: warning:
‘boost::system::posix_category’ defined but not used
[-Wunused-variable]
     static const error_category & posix_category = generic_category();
                                    ^
./boost/system/error_code.hpp:223:36: warning:
‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
     static const error_category & errno_ecat = generic_category();
                                    ^
./boost/system/error_code.hpp:224:36: warning:
‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
     static const error_category & native_ecat = system_category();
                                    ^

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros
-Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c
-o "bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/thread.o"
"libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/thread.o...
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/once.o
In file included from ./boost/bind/bind.hpp:29:0,
                 from ./boost/bind.hpp:22,
                 from ./boost/thread/pthread/once_atomic.hpp:19,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/./once_atomic.cpp:9,
                 from libs/thread/src/pthread/once.cpp:8:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’
locally defined but not used [-Wunused-local-typedefs]
         typedef char T_must_be_placeholder[ I ==
is_placeholder<T>::value? 1: -1 ];
                      ^
In file included from ./boost/atomic.hpp:12:0,
                 from ./boost/thread/pthread/once_atomic.hpp:20,
                 from ./boost/thread/once.hpp:20,
                 from libs/thread/src/pthread/./once_atomic.cpp:9,
                 from libs/thread/src/pthread/once.cpp:8:
./boost/atomic/atomic.hpp: At global scope:
./boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared
in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
before ‘;’ token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pedantic -pthread -Wextra -Wno-long-long -Wno-variadic-macros
-Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c
-o "bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/once.o"
"libs/thread/src/pthread/once.cpp"

...failed gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/pthread/once.o...
gcc.compile.c++
bin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi/future.o
...skipped <pbin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi>libboost_thread.a(clean)
for lack of <pbin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi>pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi>libboost_thread.a
for lack of <pbin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi>pthread/thread.o...
...skipped <p/usr/local/boost-1.54/lib>libboost_thread.a for lack of
<pbin.v2/libs/thread/build/gcc-4.9.2/release/link-static/threading-multi>libboost_thread.a...
...failed updating 4 targets...
...skipped 6 targets...
...updated 28 targets...
[root_at_bengal boost_1_54_0]#


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