oneapi-src / oneTBB

oneAPI Threading Building Blocks (oneTBB)
https://oneapi-src.github.io/oneTBB/
Apache License 2.0
5.61k stars 1.01k forks source link

compiler error, intel 18.0.5 and tbb 2019041oss and RHEL7.6 #158

Closed demarle closed 2 years ago

demarle commented 5 years ago

I am seeing a compiler error on some code that uses tbb like so:

In file included from /tmp/stam/paraview-builds/toss3/snow/server/master-osmesa_intel-18.0.2_openmpi-2.1.2_python-2.7-anaconda-4.1.1/install/include/tbb/tbb_machine.h(245),
                 from /tmp/stam/paraview-builds/toss3/snow/server/master-osmesa_intel-18.0.2_openmpi-2.1.2_python-2.7-anaconda-4.1.1/install/include/tbb/atomic.h(28),
                 from /tmp/stam/paraview-builds/toss3/snow/server/master-osmesa_intel-18.0.2_openmpi-2.1.2_python-2.7-anaconda-4.1.1/superbuild/paraview/build/VTK/Common/Core/vtkAtomic.h(28),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/Core/vtkAtomicTypes.h(18),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/Core/vtkObjectBase.h(54),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/Core/vtkObject.h(45),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/DataModel/vtkDataObject.h(38),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/DataModel/vtkDataSet.h(44),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/DataModel/vtkPointSet.h(33),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/DataModel/vtkUnstructuredGridBase.h(32),
                 from /usr/projects/paraview/stam/downloads/paraview/master/VTK/Common/DataModel/vtkUnstructuredGrid.h(31),
                 from /usr/projects/paraview/stam/downloads/paraview/master/Utilities/VisItBridge/databases/readers/paraDIS/parallelParaDIS.h(46),
                 from /usr/projects/paraview/stam/downloads/paraview/master/Utilities/VisItBridge/databases/readers/paraDIS/parallelParaDIS.C(45):
/tmp/stam/paraview-builds/toss3/snow/server/master-osmesa_intel-18.0.2_openmpi-2.1.2_python-2.7-anaconda-4.1.1/install/include/tbb/machine/linux_common.h(43): internal error: bad pointer
  #if defined(__linux__) || __TBB_has_include(<linux/futex.h>)
                                                             ^

2019 seems to have added the __TBB_has_include bit where the trouble occurs.

I can get by the issue by defing TBB_has_include(x) to 0 as is done above when has_include is not defined.

Is this a known issue? Thanks

zmajeed commented 5 years ago

looks similar to https://software.intel.com/en-us/forums/intel-threading-building-blocks/topic/808343

anton-potapov commented 2 years ago

@demarle icc 18.0.5 look a bit outdated in 2021 :),
please open the new issue if problem remains with more recent version of ICC (e.g. 19.0) and oneTBB (e.g. 2021.4 or latest master )