[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 19:55:37 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):

 Replying to [comment:9 kencu]:
 > I think you might look into `-Wno-undef` which might fix that for you.

 If so then it needs to be set instead of -Wundef which is active all the
 time. Or this setting being removed:

 {{{
 cmake/OpenCVCompilerOptions.cmake:120:  add_extra_compiler_option(-Wundef)
 }}}

 This patch silences Clang:

 {{{

 --- cmake/OpenCVCompilerOptions.cmake~  2017-10-27 21:29:41.000000000
 +0200
 +++ cmake/OpenCVCompilerOptions.cmake   2017-10-27 21:38:25.000000000
 +0200
 @@ -117,7 +117,6 @@
    add_extra_compiler_option(-Wmissing-declarations)
    add_extra_compiler_option(-Wmissing-prototypes)
    add_extra_compiler_option(-Wstrict-prototypes)
 -  add_extra_compiler_option(-Wundef)
    add_extra_compiler_option(-Winit-self)
    add_extra_compiler_option(-Wpointer-arith)
    add_extra_compiler_option(-Wshadow)
 }}}

 Can it be added to this line in Portfile?

 {{{
 195:        reinplace "/-Werror=sequence-point/d"
 ${worksrcpath}/cmake/OpenCVCompilerOptions.cmake
 }}}

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


More information about the macports-tickets mailing list