On Sun, Jan 17, 2016 at 7:42 PM, Julien Cristau <[email protected]> wrote: > 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? (that should have read: but then why clang doesn't pull libomp-dev, since it's OpenMP does not work without those symlinks?) Also, Bug#811287 and Bug#811288 have been filled against clang packages requesting for them to pull libomp5 AND/OR libomp-dev packages.
>> > I'm pretty sure clang works without it, if you don't use -fopenmp. Yes. This is issue is strictly for OpenMP support in newest clang versions - 3.7+ > > Cheers, > Julien Roman.

