Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] TBB bug report(?)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] TBB bug report(?)


Chronological Thread 
  • From: Bart Vermeulen <>
  • To: <>
  • Subject: Re: [cgal-discuss] TBB bug report(?)
  • Date: Thu, 15 Jan 2015 09:53:54 +0100
  • Authentication-results: spf=pass (sender IP is 137.224.8.147) ;
  • Organization: Wageningen University

Problem still exist for me on CGAL 4.5.1 with TBB 4.3 and the workaround is still necessary to compile.

Bart

On 01/14/2015 07:54 PM, Laurent Rineau (CGAL/GeometryFactory) wrote:
Anyway it should be fixed in CGAL-4.5.1.


Le Wednesday 14 January 2015 17:52:06 Bart Vermeulen a écrit :
I commented out those lines and the compilation works now.

Bart

On 12/12/2014 11:02 AM, Laurent Rineau (CGAL/GeometryFactory) wrote:
Le jeudi 11 décembre 2014 23:54:52 Adam Getchell a écrit :
It looks like TBB 4.3 is incompatible with <iostream> and <CGAL/Timer.h>
on
my platform.
There is indeed an incompatibility between the code of CGAL-4.5 and
TBB-4.3.>
Here’s the output if I comment out all instances of CGAL/Timer.h:

https://gist.github.com/acgetchell/385be42d249e20a9b78c

Here’s the output with CGAL/Timer.h:

https://gist.github.com/acgetchell/a097d232859c318ecf69
If you look at the error messages more deeply, you can see that in both
cases the error is triggered by <CGAL/Spatial_lock_grid_3.h>, line 629:

/usr/local/include/CGAL/Spatial_lock_grid_3.h:629:12: note: in
instantiation of member function 'std::__1::vector<tbb::recursive_mutex,
std::__1::allocator<tbb::recursive_mutex> >::resize' requested here
m_grid.resize(num_cells);
^
/usr/local/include/tbb/recursive_mutex.h:39:25: note: copy constructor of
'recursive_mutex' is implicitly deleted because base class
'internal::mutex_copy_deprecated_and_disabled' has a deleted copy
constructor class recursive_mutex :
internal::mutex_copy_deprecated_and_disabled { ^
/usr/local/include/tbb/tbb_stddef.h:334:44: note: copy constructor of
'mutex_copy_deprecated_and_disabled' is implicitly deleted because base
class 'tbb::internal::no_copy' has an inaccessible copy constructor class
mutex_copy_deprecated_and_disabled : no_copy {};

With TBB-4.3, can you please try to erase, or comment out, the following
specialization:
template <>
class Spatial_lock_grid_3<Tag_non_blocking_with_mutexes>

between lines 614 and 665 of <CGAL/Spatial_lock_grid_3.h>? That
specialization is actusally not used by CGAL, and it should fix the
compilation errors with TBB-4.3.



--
Bart Vermeulen
Wageningen University, Department of Environmental Sciences
Hydrology and Quantitative Water Management Group
Postal address: Postbus 47, 6700AA Wageningen,The Netherlands
Visiting address: Room 0.C027, Droevendaalsesteeg 3,6708PB Wageningen, The
Netherlands
Tel. +31-317-482765 Fax +31-317-419000
email:





Archive powered by MHonArc 2.6.18.

Top of Page