Bug#811283: libomp5: missing SONAME link /usr/lib/libomp.so -> libomp.so.5

Julien Cristau jcristau at debian.org
Sun Jan 17 16:42:34 UTC 2016


Control: tag -1 moreinfo
Control: severity -1 normal

On Sun, Jan 17, 2016 at 19:30:36 +0300, Roman Lebedev wrote:

> Package: libomp5
> Version: 3.7.0-3
> Severity: serious
> 
> Dear Maintainer,
> 
> This is almost exact copy of Debian Bug #775257 titled:
> libiomp5: missing SONAME link /usr/lib/libiomp5.so -> libiomp5.so.5
> 
> libomp5 misses the SONAME link, which breaks all clang openmp support.
> 
> You can test it by:
> 
> $ cat test.c 
> #include <omp.h>
> int main() {
> #ifdef _OPENMP
> return 0;
> #else
> breaks_on_purpose
> #endif
> 
> $ clang-3.7 -fopenmp=libomp test.c 
> /usr/bin/ld: error: cannot find -lomp
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> 
> As i'm being told, libomp-dev install those symlinks.
> Indeed, if i install libomp-dev, clang openmp works.
> 
> But then why:
> 0. symlinks are installed by libomp-dev and not libomp5?

Because that's what libomp-dev is for.  libomp5 must not install
libomp.so.

> 1. clang doesn't pull libomp-dev, since it does not work without those symlinks?
> 
I'm pretty sure clang works without it, if you don't use -fopenmp.

Cheers,
Julien



More information about the Pkg-llvm-team mailing list