[ot-users] Wrapper compilation with clang (3.4)

D. Barbier bouzim at gmail.com
Tue Apr 8 17:42:56 CEST 2014


On 2014-04-08 16:22 GMT+02:00 Cécile CD. DAVERSIN wrote:
> Hello,
>
> I'm actually using OpenTurns by coupling my own computational code via a wrapper (see attached code).
>
> No problems to compile (and use) with gcc (version 4.7.3),
> but I have a compilation error when I try to compile with clang (version 3.4) :
>
> In file included from /usr/include/openturns/OT.hxx:54:
> In file included from /usr/include/openturns/OTBase.hxx:28:
> In file included from /usr/include/openturns/OTCommon.hxx:28:
> In file included from /usr/include/openturns/AtomicFunctions.hxx:32:
> In file included from /usr/include/tbb/tbb.h:67:
> /usr/include/tbb/pipeline.h:348:69: error: no template named 'is_trivially_copyable' in namespace 'std'; did you mean
>       '::tbb::interface6::internal::tbb_trivially_copyable'?
> template<typename T> struct tbb_trivially_copyable { enum { value = std::is_trivially_copyable<T>::value }; };
>                                                                     ^~~~~
> /usr/include/tbb/pipeline.h:348:29: note: '::tbb::interface6::internal::tbb_trivially_copyable' declared here
> template<typename T> struct tbb_trivially_copyable { enum { value = std::is_trivially_copyable<T>::value }; };
>                             ^
> /usr/include/tbb/pipeline.h:348:100: error: no member named 'value' in 'tbb_trivially_copyable<T>'
> template<typename T> struct tbb_trivially_copyable { enum { value = std::is_trivially_copyable<T>::value }; };
>
> Is this problem already known ? Any suggestion to solve it ?

Hello,

Looks like a bug in TBB, see
  http://software.intel.com/en-us/forums/topic/431422

Denis



More information about the users mailing list