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-15 15:31:38


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

Comment (by marshall):

 Replying to [comment:11 anonymous]:
> Replying to [comment:10 marshall]:
> > After discussing this with the OP, it turns out that he is using nvcc,
 Nvidia's compiler, which claims to be gcc.
> >
> > Furthermore, he's seeing this error only when compiling a cuda source
 file (xxx.cu), not C++.
> >
> > In this mode, nvcc is defining the preprocessor symbol
 `__SIZEOF_INT128__`, but not the type `__int128`
> >
>
> 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
 __128 error with 4.7.1 nvcc release 5.0, V0.2.1221 and boost 1.53?

 I suspect that:
 {{{
 #if defined(BOOST_HAS_INT128) && defined(__CUDACC__)
 #undef BOOST_HAS_INT128
 #endif
 }}}

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8048#comment:12>
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