View Issue Details

IDProjectCategoryView StatusLast Update
0032891Open CASCADEOCCT:Codingpublic2024-04-11 19:51
Reporterbugmaster Assigned Todpasukhi  
PrioritylowSeverityminor 
Status newResolutionopen 
PlatformLinuxOSUbuntu 20.04 
Product Version7.6.0 
Target VersionUnscheduled 
Summary0032891: Coding Rules - eliminating TBB deprecation warning on Ubuntu 20.04
DescriptionWarnings c++11
[ 1%] [32mBuilding CXX object src/TKernel/CMakeFiles/TKernel.dir/__/OSD/OSD_Timer.cxx.o
In file included from /disk1/builds/CR0-WEEK-10/OCCT_SRC/src/OSD/OSD_Parallel_TBB.cxx:29:
/usr/include/tbb/task_scheduler_init.h:21:154: : '#pragma message: TBB Warning: tbb/task_scheduler_init.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.'
/disk1/builds/CR0-WEEK-10/OCCT_SRC/src/OSD/OSD_Parallel_TBB.cxx: In static member function 'static void OSD_Parallel::forEachExternal(OSD_Parallel::UniversalIterator&, OSD_Parallel::UniversalIterator&, const OSD_Parallel::FunctorInterface&, Standard_Integer)':
/disk1/builds/CR0-WEEK-10/OCCT_SRC/src/OSD/OSD_Parallel_TBB.cxx:56:35: warning: 'captured_exception' is deprecated [K-Wdeprecated-declarations]
   56 | catch (tbb::captured_exception& KanException)
In file included from /usr/include/tbb/task_arena.h:24,
                 from /usr/include/tbb/partitioner.h:52,
                 from /usr/include/tbb/parallel_for.h:25,
                 from /disk1/builds/CR0-WEEK-10/OCCT_SRC/src/OSD/OSD_Parallel_TBB.cxx:25:
/usr/include/tbb/tbb_exception.h:191:24: : declared here
  191 | class __TBB_DEPRECATED captured_exception : public tbb_exception

Warning 1
[ 13%] Building CXX object src/TKBestFit/CMakeFiles/TKBestFit.dir/__/BestFitAlgo/BestFitAlgo_Projector.cxx.o
/disk1/builds/CR0-WEEK-10/Products_SRC/src/AcisData/AcisData_AcisModel.cxx: In member function 'void AcisData_AcisModel::ReadStream(Standard_IStream&)':
/disk1/builds/CR0-WEEK-10/Products_SRC/src/AcisData/AcisData_AcisModel.cxx:372:21: warning: 'pipeline' is deprecated: tbb::pipeline is deprecated, use tbb::parallel_pipeline [-Wdeprecated-declarations]
  372 | tbb::pipeline pl;
      | ^~
In file included from /disk1/builds/CR0-WEEK-10/Products_SRC/src/AcisData/AcisData_AcisModel.cxx:47:
/usr/include/tbb/pipeline.h:235:87: note: declared here
  235 | class __TBB_DEPRECATED_MSG("tbb::pipeline is deprecated, use tbb::parallel_pipeline") pipeline {
      | ^~~~~~~~
TagsNo tags attached.
Test case number

Relationships

related to 0032697 closedsmoskvin Community Configuration - fix compilation errors with oneTBB 2021 
related to 0032851 newabv Community OCCT algorithms create/destroy a large number of threads when Intel TBB enabled 
related to 0033117 closedddzama Open CASCADE Coding, Configuration - migration to intel oneTBB 2021.5.0 (c++20 ready) 
child of 0032889 newbugmaster Open CASCADE Configuration - Ubuntu 20.04 gcc 10 bugs 
child of 0030573 closedapn Open CASCADE OSD_Parallel_TBB: limit number of execution threads using settings of OSD_ThreadPool::DefaultPool() 

Activities

kgv

2022-03-29 16:49

developer   ~0107469

This deprecation warning comes from TBB library, and I guess this functionality has been already removed from oneTBB (e.g. warning will go away after upgrading to newer TBB library).

Issue History

Date Modified Username Field Change
2022-03-29 08:39 bugmaster New Issue
2022-03-29 08:39 bugmaster Assigned To => kgv
2022-03-29 08:39 bugmaster Relationship added child of 0032889
2022-03-29 16:46 kgv Relationship added related to 0032697
2022-03-29 16:47 kgv Relationship added child of 0030573
2022-03-29 16:48 kgv Relationship added related to 0032851
2022-03-29 16:49 kgv Note Added: 0107469
2022-03-29 16:50 kgv Assigned To kgv => azv
2022-03-29 16:50 kgv Priority normal => low
2022-03-29 16:50 kgv Product Version => 7.6.0
2022-03-29 16:50 kgv Summary Coding Rules - eliminating gcc warning on Ubuntu 20.04 => Coding Rules - eliminating TBB deprecation warning on Ubuntu 20.04
2022-04-01 20:06 bugmaster Description Updated
2022-08-31 11:16 kgv Relationship added related to 0033117
2022-10-24 10:39 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:09 dpasukhi Target Version 7.8.0 => Unscheduled
2023-08-24 18:02 dpasukhi Assigned To azv => dpasukhi