Boost C++ Libraries: Ticket #8973: compiling with 1.54.0 with gcc 4.8.1 fails with uintptr_t type not declared. https://svn.boost.org/trac10/ticket/8973 <p> When compiling boost 1.54.0 with gcc 4.8.1 I gett the following error: </p> <p> gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8.1/release/threading-multi/lockpool.o In file included from ./boost/atomic.hpp:12:0, </p> <blockquote> <p> from libs/atomic/src/lockpool.cpp:1: </p> </blockquote> <p> ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in this scope </p> <blockquote> <p> typedef atomic&lt;uintptr_t&gt; atomic_uintptr_t; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid </p> <blockquote> <p> typedef atomic&lt;uintptr_t&gt; atomic_uintptr_t; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ';' token </p> <blockquote> <p> typedef atomic&lt;uintptr_t&gt; atomic_uintptr_t; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <blockquote> <blockquote> <p> "g++" -ftemplate-depth-128 -Wno-strict-aliasing -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_ATOMIC_SOURCE -DNDEBUG -I"." -c -o "bin.v2/libs/atomic/build/gcc-4.8.1/release/threading-multi/lockpool.o" "libs/atomic/src/lockpool.cpp" </p> </blockquote> </blockquote> <p> ...failed gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8.1/release/threading-multi/lockpool.o... ...failed updating 1 target... ...updated 7 targets... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8973 Trac 1.4.3 anonymous Wed, 07 Aug 2013 16:26:17 GMT attachment set https://svn.boost.org/trac10/ticket/8973 https://svn.boost.org/trac10/ticket/8973 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1_54_0.xz</span> </li> </ul> Ticket anonymous Wed, 07 Aug 2013 16:27:00 GMT <link>https://svn.boost.org/trac10/ticket/8973#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:1</guid> <description> <p> I just attached the log file... </p> </description> <category>Ticket</category> </item> <item> <author>shanipribadi@…</author> <pubDate>Sat, 17 Aug 2013 19:33:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8973#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:2</guid> <description> <p> This is fixed with <a class="ext-link" href="https://svn.boost.org/trac/boost/changeset/84950"><span class="icon">​</span>https://svn.boost.org/trac/boost/changeset/84950</a>. Same cause with <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/8731"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/8731</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 17 Aug 2013 20:16:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8973#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:3</guid> <description> <p> You are right... With: </p> <p> % svn info . ... Repository Root: <a class="ext-link" href="http://svn.boost.org/svn/boost"><span class="icon">​</span>http://svn.boost.org/svn/boost</a> ... Revision: 85256 ... </p> <p> boost does compile/install OK... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 12 Oct 2013 13:08:50 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8973#comment:4 https://svn.boost.org/trac10/ticket/8973#comment:4 <ul> <li><strong>owner</strong> set to <span class="trac-author">timblechmann</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">atomic</span> </li> </ul> Ticket hongli@… Sun, 27 Oct 2013 17:37:02 GMT <link>https://svn.boost.org/trac10/ticket/8973#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:5</guid> <description> <p> This bug is a duplicate of <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/7979"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/7979</a>. I've posted new comments there. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Sun, 27 Oct 2013 18:33:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8973#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:6</guid> <description> <p> can you test boost-trunk? </p> </description> <category>Ticket</category> </item> <item> <author>hongli@…</author> <pubDate>Sun, 27 Oct 2013 18:45:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8973#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8973#comment:7</guid> <description> <p> Yes boost-trunk compiles without problems. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Sun, 27 Oct 2013 18:52:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8973#comment:8 https://svn.boost.org/trac10/ticket/8973#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket