[MacPorts] #55180: tbb @2017_U8 does not build on Snow Leopard, Mac OS X 10.6.8, because of missing members

MacPorts noreply at macports.org
Fri Oct 27 15:31:44 UTC 2017


#55180: tbb @2017_U8 does not build on Snow Leopard, Mac OS X 10.6.8, because of
missing members
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  sean@…
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.2
Resolution:             |   Keywords:  snowleopard
      Port:  tbb        |
------------------------+-------------------------

Comment (by ballapete):

 `opencv` built successfully, quite a bit slowed down because of warnings
 about dirty (?) programming tricksà la:

 {{{
 #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__
     #define __TBB_IOS 1
 #endif
 }}}

 Clang 3.9 complains:
 {{{
 In file included from
 /opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/core/src/algorithm.cpp:43:
 In file included from
 /opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/core/src/precomp.hpp:55:
 In file included from
 /opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/core/include/opencv2/core/private.hpp:63:
 In file included from /opt/local/include/tbb/tbb.h:35:
 In file included from /opt/local/include/tbb/aligned_space.h:24:
 In file included from /opt/local/include/tbb/tbb_stddef.h:95:
 /opt/local/include/tbb/tbb_config.h:64:5: warning:
 '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' is not defined, evaluates
 to 0 [-Wundef]
 #if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__
     ^
 }}}

 Proper code should be:


 {{{
 #ifdef __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__
     #define __TBB_IOS 1
 #endif
 }}}

 or instead of

 {{{
 #if _WIN32||_WIN64
 }}}

 better

 {{{
 #if defined(_WIN32) || defined(_WIN64)
 }}}

 Is it worth patching these C header files to accelerate the build of
 software using TBB without thousands of warnings?

--
Ticket URL: <https://trac.macports.org/ticket/55180#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list