[MacPorts] #60132: fftw-3 +threads: error: don't know how to enable OpenMP

MacPorts noreply at macports.org
Mon Mar 2 02:37:47 UTC 2020


#60132: fftw-3 +threads: error: don't know how to enable OpenMP
-------------------------+----------------------
  Reporter:  mouse07410  |      Owner:  dstrubbe
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:
      Port:  fftw-3      |
-------------------------+----------------------

Comment (by mouse07410):

 @Ken, that's not quite correct - there ''is'' a way to build an OpenMP
 executable with Xcode clang, assuming {{{libomp}}} is installed:

 {{{
 $ clang -Xpreprocessor -fopenmp -lomp -I/opt/local/include
 -L/opt/local/lib/libomp -lomp myfile.cxx
 }}}

 If there's a way to query {{{port}}} for the install directory, something
 analog to {{{$(brew --prefix libomp)}}}, then the hardcoded directories
 above can be determined at the runtime.

 I followed [https://iscinumpy.gitlab.io/post/omp-on-high-sierra/] that
 provided the above guidance, and it worked for the apps I built myself
 from the source.
 Having said that, {{{port install fftw-3 +clang90 +threads}}} or {{{port
 install fftw-3 +gcc9 +threads}}} works.

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


More information about the macports-tickets mailing list