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

Julien Schueller schueller at phimeca.com
Tue Apr 8 17:35:32 CEST 2014



----- Mail original -----
> De: "Cécile CD. DAVERSIN" <cecile.daversin at lncmi.cnrs.fr>
> À: users at openturns.org
> Envoyé: Mardi 8 Avril 2014 16:22:16
> Objet: [ot-users] Wrapper compilation with clang (3.4)
> 
> 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 ?
> 
> (I think this message should be sent to bugs mailing list instead of here,
> but everytime my message was rejected with no reason.)
> Best regards,
> 	--
> Cécile DAVERSIN
> PhD student in applied mathematics
> 
> 			CNRS - LNCMI
> 	25, rue des Martyrs
> 	BP 166
> 	38042 GRENOBLE Cedex 9
> 	FRANCE
> Tel : +33 (0)4 76 88 90 83
> Mob : +33 (0)6 71 39 95 76
> Office U 09
> M at il : cecile.daversin at lncmi.cnrs.fr
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> OpenTURNS users mailing list
> users at openturns.org
> http://openturns.org/mailman/listinfo/users
> 

Hi,

No problems from our side on linux/clang3.4/tbb 4.2
Are you on osx ? 
It looks more like a TBB/OSX bug.

-- 
Julien Schueller
Ingénieur d'Études
04 73 28 93 66

Phimeca Engineering
Centre d'Affaires du Zénith
34 rue de Sarliève
63800 Cournon d'Auvergne
www.phimeca.com


More information about the users mailing list