[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:22:45 PDT 2016
#50958: py-graph-tool fails to build with clang OpenMP option (configure.args
=--enable-openmp)
--------------------------------------------+------------------------------
Reporter: s.t.smith@… | Owner: macports-
Type: defect | tickets@…
Priority: Normal | Status: new
Component: ports | Milestone:
Keywords: graph-tool clang openmp libomp | Version: 2.3.4
| Port: py-graph-tool
--------------------------------------------+------------------------------
Macports clang 3.7 and 3.8 now support OpenMP, which creates the
opportunity to build graph-tool on OS X with OpenMP speeds.
I expected that the option `configure.args=--enable-openmp` would tell the
autoconf'd `./configure` command to specify `--enable-openmp`, but it does
not:
{{{
# uninstall existing graph-tool
sudo port uninstall py-graph-tool py27-graph-tool
sudo port clean --dist py-graph-tool py27-graph-tool
# build new graph-tool with OpenMP support
sudo port install clang-3.8 +openmp
sudo port -d install py-graph-tool py27-graph-tool configure.compiler
=macports-clang-3.8 configure.args=--enable-openmp
…
DEBUG: Executing command line: 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
…
checking whether to enable parallel algorithms with openmp... no
}}}
The port notes for `libomp` say:
{{{
Use with clang-3.[78] (when built with +openmp variant) by adding
"-fopenmp" to your compile and link lines.
(Or "-I/opt/local/include/libomp -L/opt/local/lib/libomp -fopenmp"
if clang is installed without +openmp.)
}}}
Based on the Port Phases page
https://guide.macports.org/chunked/reference.phases.htm, I've tried a
variety of options like `configure.cxxflags-append=-fopenmp`, all without
success.
I'd also ask for consideration whether adding OpenMP support should be the
default behavior for the Macports graph-tool build now that it's
available.
--
Ticket URL: <https://trac.macports.org/ticket/50958>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list