[MacPorts] #50958: py-graph-tool fails to build with clang OpenMP option (configure.args=--enable-openmp)

MacPorts noreply at macports.org
Thu Mar 24 11:48:48 PDT 2016


#50958: py-graph-tool fails to build with clang OpenMP option (configure.args
=--enable-openmp)
----------------------------+--------------------------------------------
  Reporter:  s.t.smith@…    |      Owner:  macports-tickets@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.4
Resolution:                 |   Keywords:  graph-tool clang openmp libomp
      Port:  py-graph-tool  |
----------------------------+--------------------------------------------

Comment (by mmoll@…):

 Can you change the Portfile like so:
 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 147061)
 +++ Portfile    (working copy)
 @@ -81,7 +81,7 @@
      }
      configure.cppflags-append -I${prefix}/include -I${python.include}/..
      configure.ldflags-append -L${prefix}/lib
 -    configure.args-append --with-boost=${prefix} --exec-
 prefix=${python.prefix}
 +    configure.args-append --with-boost=${prefix} --exec-
 prefix=${python.prefix} --enable-openmp
      # Clang uses the old libstc++ from gcc 4.2 before OS X 10.9. Boost
 doesn't
      # include some of the tr1 headers in libstdc++ and defines its own
 tr1
      # classes. This causes conflicts with sparsehash which insists on
 using
 }}}
 That seems to work for me. On my machine there is no +openmp variant for
 clang-3.8 (it's included by default). The clang-3.7 *does* has an +openmp
 variant. The version of clang that comes with the latest Xcode doesn't
 support openmp at all. How do I do the right thing in all cases?

-- 
Ticket URL: <https://trac.macports.org/ticket/50958#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list