[pkg-boost-devel] Bug#739807: FTBFS: error: 'uintptr_t' was not declared in this scope
Dejan Latinovic
Dejan.Latinovic at imgtec.com
Thu Feb 27 12:50:54 UTC 2014
Hello,
I was getting the same error with libpwiz packge.
> checking for boost/system/error_code.hpp... yes
> checking for the Boost system library... yes
> checking boost/thread.hpp usability... yes
> checking boost/thread.hpp presence... yes
> checking for boost/thread.hpp... yes
> configure: error: cannot compile a test that uses Boost thread
> make: *** [build-arch-stamp] Error 1
Tail from config.log:
> configure:25276: checking for the Boost thread library
> configure:25330: g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -pthread conftest.cpp >&5
> In file included from /usr/include/boost/atomic.hpp:12:0,
> from /usr/include/boost/thread/pthread/once_atomic.hpp:20,
> from /usr/include/boost/thread/once.hpp:20,
> from /usr/include/boost/thread.hpp:17,
> from conftest.cpp:63:
> /usr/include/boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in this scope
> typedef atomic<uintptr_t> atomic_uintptr_t;
> ^
> /usr/include/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
> typedef atomic<uintptr_t> atomic_uintptr_t;
> ^
> /usr/include/boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ';' token
> typedef atomic<uintptr_t> atomic_uintptr_t;
After I built boost1.54 with patch from
https://svn.boost.org/trac/boost/changeset/84950,
I was able to build libpwiz successfully.
Regards,
Dejan
More information about the pkg-boost-devel
mailing list