[MacPorts] #63024: clang-12 does not support OpenMP
MacPorts
noreply at macports.org
Fri Jun 4 13:17:13 UTC 2021
#63024: clang-12 does not support OpenMP
-----------------------+--------------------
Reporter: szhorvat | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: clang-12 |
-----------------------+--------------------
Comment (by szhorvat):
It turns out I made a mistake.
The accurate statement is that OpenMP does not work unless `libomp` is
manually installed. Earlier Clang versions in MacPorts has `libomp` as a
dependency.
You can try to compile a trivial C program (e.g. `int main() { }`) as
{{{
clang-mp-12 x.c -fopenmp
}}}
The compiler output is:
{{{
ld: warning: directory not found for option '-L/opt/local/lib/libomp'
ld: library not found for -lomp
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
Note that not everyone may see this directly. Some people may just want to
compile a package that relies on OpenMP instead of using it directly
themselves. E.g. CMake will just say that "OpenMP was not found".
Ideally, the dependence on the `libomp` port would be retained.
--
Ticket URL: <https://trac.macports.org/ticket/63024#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list