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

MacPorts noreply at macports.org
Thu Mar 31 07:35:41 PDT 2016


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

Comment (by s.t.smith@…):

 Replying to [comment:13 mmoll@…]:
 > Thanks for the patches. Something like this works for clang 3.[89]:
 > {{{
 > if {${configure.compiler} eq "macports-clang-3.8" ||
 >     ${configure.compiler} eq "macports-clang-3.9"} {
 >       configure.args-append --enable-openmp
 > }
 > }}}
 > but I can't distinguish between clang-3.7 and clang-3.7+openmp, so it
 seems safest to assume the clang-3.7 doesn't support OpenMP.

 I'm testing with the latest upgrades and have run into the problem that
 `clang_select` shows "`mp-clang-3.9`", *not* "`macports-clang-3.9`":

 {{{
 $ sudo port select --list clang
 Available versions for clang:
         mp-clang-3.9 (active)
         none
 $ sudo port select --set clang macports-clang-3.9
 Selecting 'macports-clang-3.9' for 'clang' failed: The specified version
 'macports-clang-3.9' is not valid.
 $ sudo port select --set clang mp-clang-3.9
 Selecting 'mp-clang-3.9' for 'clang' succeeded. 'mp-clang-3.9' is now
 active.
 }}}

 The current port file doesn't detect that I've set clang-3.9 to be the
 default:

 {{{
 sudo port -d install py-graph-tool
 ...
 checking whether to enable parallel algorithms with openmp... no
 }}}

 I've also confirmed that if I edit the port file to say the following,
 `--enable-openmp` is not passed to `./configure`:

 {{{
     if {${configure.compiler} eq "mp-clang-3.8" ||
         ${configure.compiler} eq "mp-clang-3.9"} {
         configure.args-append --enable-openmp
     }
 }}}

 Then this:

 {{{
 sudo port -d install py-graph-tool
 ...
 checking whether to enable parallel algorithms with openmp... no
 }}}

 If I pass the command line argument `configure.args-append=--enable-
 openmp`, the argument is not passed:

 {{{
 sudo port -d install py-graph-tool configure.args-append=--enable-openmp
 ...
 checking whether to enable parallel algorithms with openmp... no
 }}}

 If I change the port file back to its original, then the `--enable-openmp`
 argument is passed with the command. This is the only thing that's working
 so far:

 {{{
 sudo port -d install py-graph-tool configure.compiler=macports-clang-3.9
 ...
 DEBUG: Assembled command: 'cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-graph-tool/py27-graph-tool/work
 /graph-tool-2.13" && ./configure --prefix=/opt/local --with-
 boost=/opt/local --exec-
 prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7
 --enable-openmp'
 ...
 checking whether to enable parallel algorithms with openmp... yes
 }}}

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


More information about the macports-tickets mailing list