Re: [Boost-bugs] [Boost C++ Libraries] #8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-17 13:47:37


#8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.
---------------------------------+------------------------------------------
  Reporter: wchan212@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: config
   Version: Boost 1.53.0 | Severity: Showstopper
Resolution: | Keywords:
---------------------------------+------------------------------------------

Comment (by anonymous):

 Replying to [comment:17 anonymous]:
> credits to @Marshall
>
> Adding
>
> {{{
> #if defined(BOOST_HAS_INT128) && defined(__CUDACC__)
> #undef BOOST_HAS_INT128
> #endif
> }}}
>
> 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)

 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:

 #include <boost/property_tree/json_parser.hpp>
 #include <boost/foreach.hpp>
 #include <boost/property_tree/ptree.hpp>

 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 ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:111:73:
 error: expected ‘{’ before ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:111:73:
 error: expected unqualified-id before ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79:
 error: expected template-name before ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79:
 error: expected ‘{’ before ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/ptree_implementation.hpp:121:79:
 error: expected unqualified-id before ‘<’ token
 boost-1.53.0/include/boost/property_tree/detail/json_parser_read.hpp: In
 constructor
 â€˜boost::property_tree::json_parser::json_grammar<Ptree>::definition<Scanner>::definition(const
 boost::property_tree::json_parser::json_grammar<Ptree>&)’:
 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

 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

 Cheers,

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8048#comment:18>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC