Boost C++ Libraries: Ticket #8048: Boost 1.53 + GCC 4.6.3 __int128 undefined. https://svn.boost.org/trac10/ticket/8048 <p> Hi. I am using gcc 4.6.3 as well as boost 1.53.0; my program previously compiles fine w/ boost 1.52.0. </p> <p> I get this error: </p> <p> /opt/orange/include/boost/config/suffix.hpp(496): error: identifier "<span class="underline">int128" is undefined </span></p> <p> /opt/orange/include/boost/config/suffix.hpp(497): error: expected a ";" </p> <p> /opt/orange/include/boost/config/suffix.hpp(496): error: identifier "<span class="underline">int128" is undefined </span></p> <p> /opt/orange/include/boost/config/suffix.hpp(497): error: expected a ";" </p> <p> /opt/orange/include/boost/config/suffix.hpp(496): error: identifier "<span class="underline">int128" is undefined </span></p> <p> /opt/orange/include/boost/config/suffix.hpp(497): error: expected a ";" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/is_integral.hpp(74): error: class "boost::is_integral&lt;const volatile boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(79): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(111): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(79): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(111): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(79): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/type_traits/make_unsigned.hpp(111): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(92): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(92): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(92): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: class "boost::hash&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: class "boost::hash&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: class "boost::hash&lt;boost::int128_type&gt;" has already been defined </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> <p> /opt/orange/include/boost/functional/hash/hash.hpp(444): error: namespace "boost" has no member "uint128_type" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8048 Trac 1.4.3 Marshall Clow Wed, 13 Feb 2013 02:27:19 GMT <link>https://svn.boost.org/trac10/ticket/8048#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:1</guid> <description> <p> Can you run a test, please? </p> <p> Check if <code>__SIZEOF_INT128__</code> is defined. </p> <p> Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 13 Feb 2013 02:53:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:2</guid> <description> <p> See below: </p> <pre class="wiki">wchan@speech07:/tmp$ cat test.cc #include &lt;iostream&gt; int main(int argc, char* argv[]) { #ifdef __SIZEOF_INT128__ std::cout &lt;&lt; "__SIZEOF_INT128__ = " &lt;&lt; __SIZEOF_INT128__ &lt;&lt; std::endl; #else std::cout &lt;&lt; "Nope! no __SIZEOF_INT128__" &lt;&lt; std::endl; #endif } wchan@speech07:/tmp$ g++ -o test.gcc test.cc &amp;&amp; ./test.gcc __SIZEOF_INT128__ = 16 wchan@speech07:/tmp$ nvcc -o test.nvcc test.cc &amp;&amp; ./test.nvcc __SIZEOF_INT128__ = 16 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 13 Feb 2013 02:54:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:3</guid> <description> <p> Previous comment screwed up, see below again. </p> <pre class="wiki">wchan@speech07:/tmp$ cat test.cc #include &lt;iostream&gt; int main(int argc, char* argv[]) { #ifdef __SIZEOF_INT128__ std::cout &lt;&lt; "__SIZEOF_INT128__ = " &lt;&lt; __SIZEOF_INT128__ &lt;&lt; std::endl; #else std::cout &lt;&lt; "Nope! no __SIZEOF_INT128__" &lt;&lt; std::endl; #endif } wchan@speech07:/tmp$ g++ -o test.gcc test.cc &amp;&amp; ./test.gcc __SIZEOF_INT128__ = 16 wchan@speech07:/tmp$ nvcc -o test.nvcc test.cc &amp;&amp; ./test.nvcc __SIZEOF_INT128__ = 16 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 13 Feb 2013 03:01:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:4</guid> <description> <p> Great! </p> <p> Next test, please: </p> <pre class="wiki">typedef __int128 Cint128_1; </pre><p> and: </p> <pre class="wiki">__extension__ typedef __int128 Cint128_2; </pre><p> Do either of those work? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 13 Feb 2013 03:03:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:5</guid> <description> <pre class="wiki">wchan@speech07:/tmp$ cat test.cc #include &lt;iostream&gt; typedef __int128 Cint128_1; __extension__ typedef __int128 Cint128_2; int main(int argc, char* argv[]) { #ifdef __SIZEOF_INT128__ std::cout &lt;&lt; "__SIZEOF_INT128__ = " &lt;&lt; __SIZEOF_INT128__ &lt;&lt; std::endl; std::cout &lt;&lt; "sizeof(Cint128_1) = " &lt;&lt; sizeof(Cint128_1) &lt;&lt; std::endl; std::cout &lt;&lt; "sizeof(Cint128_1) = " &lt;&lt; sizeof(Cint128_2) &lt;&lt; std::endl; #else std::cout &lt;&lt; "Nope! no __SIZEOF_INT128__" &lt;&lt; std::endl; #endif } wchan@speech07:/tmp$ g++ --version &amp;&amp; g++ -o test.gcc test.cc &amp;&amp; ./test.gcc g++ (GCC) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. __SIZEOF_INT128__ = 16 sizeof(Cint128_1) = 16 sizeof(Cint128_1) = 16 wchan@speech07:/tmp$ nvcc --version &amp;&amp; nvcc -o test.nvcc test.cc &amp;&amp; ./test.nvcc nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2012 NVIDIA Corporation Built on Thu_Apr__5_00:24:31_PDT_2012 Cuda compilation tools, release 4.2, V0.2.1221 __SIZEOF_INT128__ = 16 sizeof(Cint128_1) = 16 sizeof(Cint128_1) = 16 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 13 Feb 2013 03:20:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:6</guid> <description> <p> Ok. that's almost the same code that's in suffix.hpp. </p> <p> Let's make it exact. try this code, please: </p> <pre class="wiki">namespace boost{ # ifdef __GNUC__ __extension__ typedef __int128 int128_type; __extension__ typedef unsigned __int128 uint128_type; # else typedef __int128 int128_type; typedef unsigned __int128 uint128_type; # endif } </pre><p> If that works, I'm out of suggestions. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 13 Feb 2013 03:25:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:7</guid> <description> <pre class="wiki">wchan@speech07:/tmp$ cat test.cc #include &lt;iostream&gt; namespace boost{ # ifdef __GNUC__ __extension__ typedef __int128 int128_type; __extension__ typedef unsigned __int128 uint128_type; # else typedef __int128 int128_type; typedef unsigned __int128 uint128_type; # endif }; typedef __int128 Cint128_1; __extension__ typedef __int128 Cint128_2; int main(int argc, char* argv[]) { #ifdef __SIZEOF_INT128__ std::cout &lt;&lt; "__SIZEOF_INT128__ = " &lt;&lt; __SIZEOF_INT128__ &lt;&lt; std::endl; std::cout &lt;&lt; "sizeof(Cint128_1) = " &lt;&lt; sizeof(boost::int128_type) &lt;&lt; std::endl; std::cout &lt;&lt; "sizeof(Cint128_2) = " &lt;&lt; sizeof(boost::uint128_type) &lt;&lt; std::endl; #else std::cout &lt;&lt; "Nope! no __SIZEOF_INT128__" &lt;&lt; std::endl; #endif } wchan@speech07:/tmp$ g++ -o test.gcc test.cc &amp;&amp; ./test.gcc __SIZEOF_INT128__ = 16 sizeof(Cint128_1) = 16 sizeof(Cint128_2) = 16 wchan@speech07:/tmp$ nvcc -o test.nvcc test.cc &amp;&amp; ./test.nvcc __SIZEOF_INT128__ = 16 sizeof(Cint128_1) = 16 sizeof(Cint128_2) = 16 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 13 Feb 2013 03:30:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:8</guid> <description> <p> Are you on #boost on irc? Do you want me to go on? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 13 Feb 2013 03:31:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:9</guid> <description> <p> I'm on #boost now. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 13 Feb 2013 14:10:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:10</guid> <description> <p> After discussing this with the OP, it turns out that he is using nvcc, Nvidia's compiler, which claims to be gcc. </p> <p> Furthermore, he's seeing this error only when compiling a cuda source file (xxx.cu), not C++. </p> <p> In this mode, nvcc is defining the preprocessor symbol <code>__SIZEOF_INT128__</code>, but not the type <code>__int128</code> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 15 Feb 2013 14:11:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:11</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:10" title="Comment 10">marshall</a>: </p> <blockquote class="citation"> <p> After discussing this with the OP, it turns out that he is using nvcc, Nvidia's compiler, which claims to be gcc. </p> <p> Furthermore, he's seeing this error only when compiling a cuda source file (xxx.cu), not C++. </p> <p> In this mode, nvcc is defining the preprocessor symbol <code>__SIZEOF_INT128__</code>, but not the type <code>__int128</code> </p> </blockquote> <p> Can you give me an indication of whether there is a workaround for this. I'm compiling a file that is named .cu but contains heavy c++. I get the <span class="underline">128 error with 4.7.1 nvcc release 5.0, V0.2.1221 and boost 1.53? </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Fri, 15 Feb 2013 15:31:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:12</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:11" title="Comment 11">anonymous</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:10" title="Comment 10">marshall</a>: </p> <blockquote class="citation"> <p> After discussing this with the OP, it turns out that he is using nvcc, Nvidia's compiler, which claims to be gcc. </p> <p> Furthermore, he's seeing this error only when compiling a cuda source file (xxx.cu), not C++. </p> <p> In this mode, nvcc is defining the preprocessor symbol <code>__SIZEOF_INT128__</code>, but not the type <code>__int128</code> </p> </blockquote> <p> Can you give me an indication of whether there is a workaround for this. I'm compiling a file that is named .cu but contains heavy c++. I get the <span class="underline">128 error with 4.7.1 nvcc release 5.0, V0.2.1221 and boost 1.53? </span></p> </blockquote> <p> I suspect that: </p> <pre class="wiki">#if defined(BOOST_HAS_INT128) &amp;&amp; defined(__CUDACC__) #undef BOOST_HAS_INT128 #endif </pre><p> added to the end of boost/config/compiler/nvcc.hpp will solve the problem; but I don't know for sure. I am working with the OP to test this. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 15 Feb 2013 17:17:22 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8048#comment:13 https://svn.boost.org/trac10/ticket/8048#comment:13 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Fri, 15 Feb 2013 17:34:05 GMT <link>https://svn.boost.org/trac10/ticket/8048#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:14</guid> <description> <p> Many thanks for investigating this Marshall, is there anything you need me to do? </p> <p> John Maddock. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 15 Feb 2013 22:35:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:15</guid> <description> <p> To the GCC 4.7.1 guy above, AFAIK IIRC CUDA 5.0 still only supports GCC 4.6.x and not 4.7.x </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 15 Feb 2013 22:37:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:16</guid> <description> <p> credits to @Marshall, adding this to: </p> <pre class="wiki">#if defined(BOOST_HAS_INT128) #undef BOOST_HAS_INT128 #endif </pre><p> the end of boost/config/nvcc.hpp fixes the compile for now. This would be a quick hack for those who need boost 1.53 compiling w/ nvcc. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 15 Feb 2013 22:43:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:17</guid> <description> <p> credits to @Marshall </p> <p> Adding </p> <pre class="wiki">#if defined(BOOST_HAS_INT128) &amp;&amp; defined(__CUDACC__) #undef BOOST_HAS_INT128 #endif </pre><p> to the end of boost/config/nvcc.hpp also works. I think this is a slightly more robust solution? (@Marshall, the first time we tried it we forgot the "if", that's why it didnt work) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 17 Feb 2013 13:47:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:18</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:17" title="Comment 17">anonymous</a>: </p> <blockquote class="citation"> <p> credits to @Marshall </p> <p> Adding </p> <pre class="wiki">#if defined(BOOST_HAS_INT128) &amp;&amp; defined(__CUDACC__) #undef BOOST_HAS_INT128 #endif </pre><p> to the end of boost/config/nvcc.hpp also works. I think this is a slightly more robust solution? (@Marshall, the first time we tried it we forgot the "if", that's why it didnt work) </p> </blockquote> <p> Guys, thanks for that, this worked adding that to config/compiler/nvcc.hpp (not config/nvcc,hpp for future readers). However, I have come across an other problem this time with property tree. Although the file I'm compiling with nvcc contains no device code and is pure host code, it does need to be parsed and compiled by nvcc not gcc for various reasons. Even the mere inclusion of: </p> <p> #include &lt;boost/property_tree/json_parser.hpp&gt; #include &lt;boost/foreach.hpp&gt; #include &lt;boost/property_tree/ptree.hpp&gt; </p> <p> Gives the following error, using the same set up as above in terms of my compiler, nvcc and boost 1.53. The error begins with: boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:111:73: error: expected template-name before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:111:73: error: expected ‘{’ before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:111:73: error: expected unqualified-id before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79: error: expected template-name before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79: error: expected ‘{’ before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79: error: expected unqualified-id before ‘&lt;’ token boost-1.53.0/include/boost/property_tree/detail/json_parser_read.hpp: In constructor ‘boost::property_tree::json_parser::json_grammar&lt;Ptree&gt;::definition&lt;Scanner&gt;::definition(const boost::property_tree::json_parser::json_grammar&lt;Ptree&gt;&amp;)’: boost-1.53.0/include/boost/property_tree/detail/json_parser_read.hpp:257:298: error: ‘type name’ declared as function returning an array boost-1.53.0/include/boost/property_tree/detail/json_parser_read.hpp:257:298: error: ‘type name’ declared as function returning an array </p> <p> This is before I even try to use property tree. Any thoughts or work arounds this time? It works perfectly correctly and compiles with gcc 4.7.1 </p> <p> Cheers, </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 17 Feb 2013 14:06:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:19 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:19</guid> <description> <p> CUDA 5 does NOT support GCC 4.7.* ... please try again w. gcc 4.6 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 17 Feb 2013 14:28:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:20 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:20</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:19" title="Comment 19">anonymous</a>: </p> <blockquote class="citation"> <p> CUDA 5 does NOT support GCC 4.7.* ... please try again w. gcc 4.6 </p> </blockquote> <p> Sure, I appreciate that, then again there are many of us using it quite successfully, so it would be useful to have these sort of things worked-around if possible. Could suggest a fix even though I appreciate it's unsupported? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 17 Feb 2013 14:54:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:21 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:21</guid> <description> <p> Can you still try w/ GCC 4.6.*? This will help isolate the issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 19 Feb 2013 16:16:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:22 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:22</guid> <description> <p> I'm not against the patch as proposed. However, what happens when the CUDA guys update their compiler to support GCC-4.7.x and add support for <code>__int128</code> ? Can we make the #undef conditional on the CUDA version? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 19 Feb 2013 16:20:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:23 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:23</guid> <description> <p> AFAIK there is a CUDA_VERSION macro. For the CUDA 5 cuda.h we have: </p> <pre class="wiki"> 133 /** 134 * CUDA API version number 135 */ 136 #define CUDA_VERSION 5000 137 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Tue, 19 Feb 2013 16:22:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:24 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:24</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:22" title="Comment 22">johnmaddock</a>: </p> <blockquote class="citation"> <p> I'm not against the patch as proposed. However, what happens when the CUDA guys update their compiler to support GCC-4.7.x and add support for <code>__int128</code> ? Can we make the #undef conditional on the CUDA version? </p> </blockquote> <p> "Always in motion is the future" </p> <p> Certainly we can add something like "if GCC &lt; 4.7" to the #ifdef, but what if the 4.7 version of nvcc <em>still doesn't</em> support<code> __int128</code>. Then we'd have to rev anyway. </p> <p> John - do you have knowledge that the CUDA guys are planning this? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 19 Feb 2013 16:52:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:25 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:25</guid> <description> <blockquote class="citation"> <p> "Always in motion is the future" </p> </blockquote> <p> Ain't that the truth. </p> <blockquote class="citation"> <p> Certainly we can add something like "if GCC &lt; 4.7" to the #ifdef, but what if the 4.7 &gt;version of nvcc still doesn't support <span class="underline">int128. Then we'd have to rev anyway. </span></p> <p> John - do you have knowledge that the CUDA guys are planning this? </p> </blockquote> <p> Nope, but if they "officially" support 4.7 and later and still define <code>__SIZEOF_INT128__</code> then they'd better support <code>__int128</code> or else it's a bug in their compiler support. </p> <p> I guess either way we won't do anything about it unless someone complains. Hmmm, maybe you're right that a blanket exclusion is safer - at least pretty much all of Boost will work just fine then. OK... I think I've convinced myself :-) I'll commit the original fix unless someone disagrees. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 19 Feb 2013 17:11:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:26 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:26</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83012" title="Fix __Int128 support on CUDA. Exclude BOOST_GCC from getting defined ...">[83012]</a>) Fix <span class="underline">Int128 support on CUDA. Exclude BOOST_GCC from getting defined on CUDA. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 19 Feb 2013 17:49:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:27 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:27</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83014" title="Add comment on change. Refs #8048.">[83014]</a>) Add comment on change. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 24 Feb 2013 19:08:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8048#comment:28 https://svn.boost.org/trac10/ticket/8048#comment:28 <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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83139" title="Merge changes from Trunk. Fixes #6013. Fixes #7151. Fixes #7359. Fixes ...">[83139]</a>) Merge changes from Trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6013" title="#6013: Patches: endian.hpp header patch to utilize OpenBSD's endian header (closed: fixed)">#6013</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7151" title="#7151: Bugs: config.hpp does not define BOOST_HAS_TR1_TUPLE (closed: fixed)">#7151</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7359" title="#7359: Bugs: Compatibility with Intel icpc 13.0 when using -use-clang-env option on ... (closed: fixed)">#7359</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7389" title="#7389: Bugs: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32 (closed: fixed)">#7389</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7452" title="#7452: Patches: Compiling Boost.Asio Example Error [with Clang compiled by MinGW gcc] (closed: fixed)">#7452</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7528" title="#7528: Bugs: Compilation failure on Android and Xbox 360 (closed: fixed)">#7528</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7703" title="#7703: Bugs: endian.hpp for QNX / BlackBerry10 (closed: fixed)">#7703</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7898" title="#7898: Bugs: TI compiller: wrong decision about type_info presence in boost/config (closed: fixed)">#7898</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7938" title="#7938: Patches: Support vxWorks (closed: fixed)">#7938</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. </p> Ticket anonymous Wed, 12 Jun 2013 07:46:15 GMT <link>https://svn.boost.org/trac10/ticket/8048#comment:29 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:29</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8048#comment:16" title="Comment 16">anonymous</a>: </p> <blockquote class="citation"> <p> credits to @Marshall, adding this to: </p> <pre class="wiki">#if defined(BOOST_HAS_INT128) #undef BOOST_HAS_INT128 #endif </pre><p> the end of boost/config/nvcc.hpp fixes the compile for now. This would be a quick hack for those who need boost 1.53 compiling w/ nvcc. </p> </blockquote> <p> Yes - works here too! Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 17 Sep 2013 21:45:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:30 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:30</guid> <description> <p> (Original bug filer reposting)... This bug has reappeared with GCC 4.7.3 and Boost 1.54.0 and CUDA 5.5 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 18 Sep 2013 17:14:15 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:31 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:31</guid> <description> <p> The code has: </p> <pre class="wiki">#if defined(__SIZEOF_INT128__) &amp;&amp; !defined(__CUDACC__) # define BOOST_HAS_INT128 #endif </pre><p> Is <code>__CUDACC__</code> not defined? And if not what is? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 04 Oct 2013 20:07:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:32 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:32</guid> <description> <p> (Original bug filer reposting)... This bug has reappeared with GCC 4.7.3 and Boost 1.54.0 and CUDA 5.5 EDIT: on OSX but not on Linux. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 08 Oct 2013 17:18:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:33 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:33</guid> <description> <p> Please see my comment above - is <code>__CUDAC__</code> not defined? And if not what the heck does identify this compiler? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 08 Oct 2013 18:19:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:34 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:34</guid> <description> <p> (Original bug filer) posting. </p> <pre class="wiki">wchan:/private/tmp$ gcc --version gcc (GCC) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. wchan:/private/tmp$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2013 NVIDIA Corporation Built on Wed_Jul_10_11:16:01_PDT_2013 Cuda compilation tools, release 5.5, V5.5.0 wchan:/private/tmp$ cat test.cu // #include &lt;boost/functional/hash.hpp&gt; // If I uncomment the line above, it will not compile. // error: identifier "__int128" is undefined #include &lt;iostream&gt; int main(int argc, char* argv[]) { #if defined(__CUDACC__) std::cout &lt;&lt; "__CUDACC__ == 1" &lt;&lt; std::endl; #else std::cout &lt;&lt; "__CUDACC__ == 0" &lt;&lt; std::endl; #endif } wchan:/private/tmp$ nvcc test.cu wchan:/private/tmp$ ./a.out __CUDACC__ == 1 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 09 Oct 2013 08:06:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:35 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:35</guid> <description> <p> Well this is very strange then - I've checked that all uses of <span class="underline">int128 in Boost are guarded by BOOST_HAS_INT128 (they are), and that macro is defined in boost/config/compiler/gcc.hpp via: </span></p> <pre class="wiki">#if defined(__SIZEOF_INT128__) &amp;&amp; !defined(__CUDACC__) # define BOOST_HAS_INT128 #endif </pre><p> Can you try and figure out how/why BOOST_HAS_INT128 macro is getting set in the above code? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 24 Oct 2014 11:07:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:36 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:36</guid> <description> <p> I seem to have the same issue with nvcc + clang on OS X. </p> <p> Could the workaround be duplicated into clang.hpp? </p> </description> <category>Ticket</category> </item> <item> <author>nilsgladitz@…</author> <pubDate>Fri, 24 Oct 2014 15:03:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:37 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:37</guid> <description> <p> I created a new ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10693" title="#10693: Bugs: Apple Clang + NVCC - __int128 undefined (closed: fixed)">#10693</a> for clang. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 24 Oct 2014 16:19:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:38 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:38</guid> <description> <p> This is in Git already: <a class="ext-link" href="https://github.com/boostorg/config/commit/441311c950a40b9bea824016e9e43d7af5e3d4b0"><span class="icon">​</span>https://github.com/boostorg/config/commit/441311c950a40b9bea824016e9e43d7af5e3d4b0</a> </p> </description> <category>Ticket</category> </item> <item> <author>rhodri.smith@…</author> <pubDate>Fri, 11 Mar 2016 16:16:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:39 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:39</guid> <description> <p> I have a similar problem using root and boost any help appreciated </p> <p> Error: class,struct,union or type <span class="underline">int128 not defined /usr/include/boost/config/suffix.hpp:496: </span></p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 14 Mar 2016 04:53:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:40 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:40</guid> <description> <p> rhodri.smith@… wrote: </p> <blockquote class="citation"> <p> I have a similar problem using root and boost any help appreciated </p> </blockquote> <p> As John said, this has been fixed, but the fix is in 1.57 and later boost releases. </p> <p> If you are using one of those releases, and still having problems, then please post more details. </p> <p> If you are using an older version of boost, then you can apply the same fix locally (and the github commit that he put there shows exactly what change is necessary). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 14 Mar 2016 10:16:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:41 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:41</guid> <description> <p> Hi Im using Ubuntu 14.0.04, boost 1_58 and root 5.34 </p> <p> Error: class,struct,union or type <span class="underline">int128 not defined /usr/include/boost/config/suffix.hpp:496: </span></p> <p> Thanks </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 14 Mar 2016 12:56:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:42 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:42</guid> <description> <p> Can you please build and run the program libs/config/test/config_info.cpp and post the output (when you run that program) here? </p> <p> Also is this the system GCC or some special build? </p> <p> Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 14 Mar 2016 14:16:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:43 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:43</guid> <description> <p> Hi Thanks for the help, yes it's a system gcc version below is output of config info </p> <p> GNU C++ version 4.9.2 </p> <blockquote> <p> <span class="underline">cplusplus =199711L </span>STDC<span class="underline"> =1 _WCHAR_T [no value] _WCHAR_T_DEFINED [no value] </span>GNUC<span class="underline"> =4 </span>GNUC_MINOR<span class="underline"> =9 </span>GNUC_PATCHLEVEL<span class="underline"> =2 </span>GNUG<span class="underline"> =4 </span>VERSION<span class="underline"> ="4.9.2" </span>REGISTER_PREFIX<span class="underline"> [no value] </span>USER_LABEL_PREFIX<span class="underline"> [no value] </span>EXCEPTIONS =1 <span class="underline">ELF</span> =1 unix =1 <span class="underline">LP64</span> =1 <span class="underline">unix =1 _WCHAR_T [no value] </span>STDC_HOSTED<span class="underline"> =1 </span></p> </blockquote> <p> <strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong>* </p> <p> GNU libstdc++ version 20141104 </p> <blockquote> <p> <span class="underline">GLIBCXX</span> =20141104 _GLIBCXX_USE_WCHAR_T =1 _GLIBCXX_USE_LONG_LONG =1 _GLIBCXX_USE_NLS =1 _GLIBCXX_USE_C99_MATH =1 _GLIBCXX_USE_C99 =1 _GLIBCXX_USE_LFS =1 _GLIBCXX_SYMVER =1 _GLIBCXX_HOSTED =1 </p> </blockquote> <p> <strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong>* </p> <p> Detected Platform: linux </p> <blockquote> <p> Type char is signed Type wchar_t is signed byte order for type short =0 8 byte order for type int =0 8 16 24 byte order for type long =0 8 16 24 32 40 48 56 sizeof(wchar_t) =4 sizeof(short) =2 sizeof(int) =4 sizeof(long) =8 sizeof(size_t) =8 sizeof(ptrdiff_t) =8 sizeof(void*) =8 sizeof(void(*)(void)) =8 sizeof(float) =4 sizeof(double) =8 sizeof(long double) =16 CHAR_BIT =8 CHAR_MAX =127 WCHAR_MAX =2147483647 SHRT_MAX =32767 INT_MAX =2147483647 LONG_MAX =9223372036854775807L LLONG_MAX =9223372036854775807LL LONG_LONG_MAX =9223372036854775807LL ULLONG_MAX =(9223372036854775807LL * 2ULL + 1) ULONG_LONG_MAX =(9223372036854775807LL * 2ULL + 1ULL) <span class="underline">STDC_IEC_559</span> =1 <span class="underline">STDC_IEC_559_COMPLEX</span> =1 <span class="underline">STDC_ISO_10646</span> =201103L <span class="underline">GLIBC</span> =2 <span class="underline">GLIBC_MINOR</span> =19 <span class="underline">GNU_LIBRARY</span> =6 _BSD_SOURCE =1 _GNU_SOURCE =1 _ISOC99_SOURCE =1 _LARGEFILE_SOURCE =1 _LARGEFILE64_SOURCE =1 _SVID_SOURCE =1 _XOPEN_SOURCE_EXTENDED =1 _POSIX_ADVISORY_INFO =200809L _POSIX_ASYNCHRONOUS_IO =200809L _POSIX_BARRIERS =200809L _POSIX_C_SOURCE =200809L _POSIX_CHOWN_RESTRICTED =0 _POSIX_CLOCK_SELECTION =200809L _POSIX_CPUTIME =0 _POSIX_FSYNC =200809L _POSIX_JOB_CONTROL =1 _POSIX_MAPPED_FILES =200809L _POSIX_MEMLOCK =200809L _POSIX_MEMLOCK_RANGE =200809L _POSIX_MEMORY_PROTECTION =200809L _POSIX_MESSAGE_PASSING =200809L _POSIX_MONOTONIC_CLOCK =0 _POSIX_NO_TRUNC =1 _POSIX_PRIORITIZED_IO =200809L _POSIX_PRIORITY_SCHEDULING =200809L _POSIX_RAW_SOCKETS =200809L _POSIX_READER_WRITER_LOCKS =200809L _POSIX_REALTIME_SIGNALS =200809L _POSIX_REGEXP =1 _POSIX_SAVED_IDS =1 _POSIX_SEMAPHORES =200809L _POSIX_SHARED_MEMORY_OBJECTS =200809L _POSIX_SHELL =1 _POSIX_SOURCE =1 _POSIX_SPAWN =200809L _POSIX_SPIN_LOCKS =200809L _POSIX_SPORADIC_SERVER =-1 _POSIX_SYNCHRONIZED_IO =200809L _POSIX_THREAD_ATTR_STACKADDR =200809L _POSIX_THREAD_ATTR_STACKSIZE =200809L _POSIX_THREAD_CPUTIME =0 _POSIX_THREAD_PRIO_INHERIT =200809L _POSIX_THREAD_PRIO_PROTECT =200809L _POSIX_THREAD_PRIORITY_SCHEDULING =200809L _POSIX_THREAD_PROCESS_SHARED =200809L _POSIX_THREAD_SAFE_FUNCTIONS =200809L _POSIX_THREAD_SPORADIC_SERVER =-1 _POSIX_THREADS =200809L _POSIX_TIMEOUTS =200809L _POSIX_TIMERS =200809L _POSIX_TRACE =-1 _POSIX_TRACE_EVENT_FILTER =-1 _POSIX_TRACE_INHERIT =-1 _POSIX_TRACE_LOG =-1 _POSIX_TYPED_MEMORY_OBJECTS =-1 _POSIX_VDISABLE ='\0' _POSIX_VERSION =200809L _POSIX2_C_BIND =200809L _POSIX2_C_DEV =200809L _POSIX2_CHAR_TERM =200809L _POSIX2_LOCALEDEF =200809L _POSIX2_SW_DEV =200809L _POSIX2_VERSION =200809L _XBS5_LP64_OFF64 =1 _XBS5_LPBIG_OFFBIG =-1 _XOPEN_CRYPT =1 _XOPEN_ENH_I18N =1 _XOPEN_LEGACY =1 _XOPEN_REALTIME =1 _XOPEN_REALTIME_THREADS =1 _XOPEN_SHM =1 _XOPEN_SOURCE =700 _XOPEN_UNIX =1 _XOPEN_VERSION =700 <span class="underline">USE_BSD =1 </span></p> </blockquote> <p> <strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong><strong></strong>* </p> <p> Boost version 105800 </p> <blockquote> <p> BOOST_USER_CONFIG =&lt;boost/config/user.hpp&gt; BOOST_COMPILER_CONFIG ="boost/config/compiler/gcc.hpp" BOOST_STDLIB_CONFIG ="boost/config/stdlib/libstdcpp3.hpp" BOOST_PLATFORM_CONFIG ="boost/config/platform/linux.hpp" BOOST_HAS_THREADS [no value] BOOST_DEDUCED_TYPENAME =typename BOOST_HAS_CLOCK_GETTIME [no value] BOOST_HAS_DIRENT_H [no value] BOOST_HAS_EXPM1 [no value] BOOST_HAS_GETTIMEOFDAY [no value] BOOST_HAS_HASH [no value] BOOST_HAS_LOG1P [no value] BOOST_HAS_LONG_LONG [no value] BOOST_HAS_NANOSLEEP [no value] BOOST_HAS_NL_TYPES_H [no value] BOOST_HAS_NRVO [no value] BOOST_HAS_PARTIAL_STD_ALLOCATOR [no value] BOOST_HAS_PTHREADS [no value] BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE [no value] BOOST_HAS_PTHREAD_YIELD [no value] BOOST_HAS_SCHED_YIELD [no value] BOOST_HAS_SIGACTION [no value] BOOST_HAS_SLIST [no value] BOOST_HAS_STDINT_H [no value] BOOST_HAS_UNISTD_H [no value] BOOST_MSVC6_MEMBER_TEMPLATES [no value] BOOST_NO_0X_HDR_ARRAY [no value] BOOST_NO_0X_HDR_CHRONO [no value] BOOST_NO_0X_HDR_CODECVT [no value] BOOST_NO_0X_HDR_CONDITION_VARIABLE [no value] BOOST_NO_0X_HDR_FORWARD_LIST [no value] BOOST_NO_0X_HDR_FUTURE [no value] BOOST_NO_0X_HDR_INITIALIZER_LIST [no value] BOOST_NO_0X_HDR_MUTEX [no value] BOOST_NO_0X_HDR_RANDOM [no value] BOOST_NO_0X_HDR_RATIO [no value] BOOST_NO_0X_HDR_REGEX [no value] BOOST_NO_0X_HDR_SYSTEM_ERROR [no value] BOOST_NO_0X_HDR_THREAD [no value] BOOST_NO_0X_HDR_TUPLE [no value] BOOST_NO_0X_HDR_TYPEINDEX [no value] BOOST_NO_0X_HDR_TYPE_TRAITS [no value] BOOST_NO_0X_HDR_UNORDERED_MAP [no value] BOOST_NO_0X_HDR_UNORDERED_SET [no value] BOOST_NO_AUTO_DECLARATIONS [no value] BOOST_NO_AUTO_MULTIDECLARATIONS [no value] BOOST_NO_CHAR16_T [no value] BOOST_NO_CHAR32_T [no value] BOOST_NO_CONSTEXPR [no value] BOOST_NO_DECLTYPE [no value] BOOST_NO_DEFAULTED_FUNCTIONS [no value] BOOST_NO_DELETED_FUNCTIONS [no value] BOOST_NO_EXPLICIT_CONVERSION_OPERATORS [no value] BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS [no value] BOOST_NO_INITIALIZER_LISTS [no value] BOOST_NO_LAMBDAS [no value] BOOST_NO_MS_INT64_NUMERIC_LIMITS [no value] BOOST_NO_NOEXCEPT [no value] BOOST_NO_NULLPTR [no value] BOOST_NO_NUMERIC_LIMITS_LOWEST [no value] BOOST_NO_RAW_LITERALS [no value] BOOST_NO_RVALUE_REFERENCES [no value] BOOST_NO_SCOPED_ENUMS [no value] BOOST_NO_STATIC_ASSERT [no value] BOOST_NO_STD_UNORDERED [no value] BOOST_NO_TEMPLATE_ALIASES [no value] BOOST_NO_UNICODE_LITERALS [no value] BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX [no value] BOOST_NO_VARIADIC_TEMPLATES [no value] BOOST_STD_EXTENSION_NAMESPACE =<span class="underline">gnu_cxx BOOST_UNREACHABLE_RETURN(0) [no value] BOOST_CONSTEXPR [no value] BOOST_CONSTEXPR_OR_CONST =const BOOST_STATIC_CONSTEXPR =static const </span></p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 14 Mar 2016 18:08:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:44 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:44</guid> <description> <p> I notice that BOOST_HAS_INT128 is not defined (which surprises me actually). Two more questions: </p> <ul><li>What's the processor architecture? </li><li>What are the command line args to GCC which trigger the error? </li><li>Is <code>__SIZEOF_INT128__</code> defined when building? </li></ul><p> OK, so that's 3 questions - sorry! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 15 Mar 2016 10:37:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:45 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:45</guid> <description> <p> Hi it's x86_64 </p> <p> <span class="underline">SIZEOF_INT128</span> = 16 when running from g++ </p> <p> int main() { #ifdef <span class="underline">SIZEOF_INT128</span> </p> <blockquote> <p> std::cout &lt;&lt; "<span class="underline">SIZEOF_INT128</span> = " &lt;&lt; <span class="underline">SIZEOF_INT128</span> &lt;&lt; std::endl; </p> </blockquote> <p> #else </p> <blockquote> <p> std::cout &lt;&lt; "Nope! no <span class="underline">SIZEOF_INT128</span>" &lt;&lt; std::endl; </p> </blockquote> <p> #endif return 0; } </p> <p> So I am essentially running a program in root, below is a minimal working example: </p> <p> root <a class="missing changeset" title="No changeset 0 in the repository">[0]</a> .x test.C+ </p> <p> And I receive this error: </p> <p> Error: class,struct,union or type <span class="underline">int128 not defined /usr/include/boost/config/suffix.hpp:30: <em>test #include &lt;stdio.h&gt; #include &lt;iostream&gt; </em></span></p> <p> #include "/home/rsmith/Desktop/boost_1_58_0/boost/filesystem/config.hpp" #include "/home/rsmith/Desktop/boost_1_58_0/boost/config/suffix.hpp" </p> <p> int test() </p> <p> { std::cout&lt;&lt;"here" &lt;&lt; std::endl; return 0; </p> <p> } </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 18 Mar 2016 10:28:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:46 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:46</guid> <description> <p> Hi any further help on this issue? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 18 Mar 2016 12:16:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:47 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:47</guid> <description> <blockquote class="citation"> <p> So I am essentially running a program in root, below is a minimal working example: </p> </blockquote> <blockquote class="citation"> <p> root <a class="missing changeset" title="No changeset 0 in the repository">[0]</a> .x test.C+ </p> </blockquote> <p> I'm still lost, what/where is the GCC invocation command that causes the issue? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 18 Mar 2016 12:20:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:48 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:48</guid> <description> <p> Its when I run C code from root package, This is the code I run: </p> <p> #include "/home/rsmith/Desktop/boost_1_58_0/boost/filesystem/config.hpp" #include "/home/rsmith/Desktop/boost_1_58_0/boost/config/suffix.hpp" </p> <p> int test() </p> <p> { std::cout&lt;&lt;"here" &lt;&lt; std::endl; return 0; </p> <p> } </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 18 Mar 2016 12:51:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8048#comment:49 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8048#comment:49</guid> <description> <p> You shouldn't ever include boost/config/suffix.hpp on it's own, just boost/config.hpp. </p> <p> And I still don't see the GCC command line that causes the issue. </p> </description> <category>Ticket</category> </item> </channel> </rss>