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@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@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@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 libboost_thread.so.1.54.0 for
lack of libboost_thread.so for lack of
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 libboost_thread.a for lack of