Bug#922275: libomp-7-dev: Feature Request To Have libomp-7-dev Install Symlink /usr/lib/<arch>/libomp.so

Ron Lovell ron163264 at gmail.com
Thu Feb 14 02:48:36 GMT 2019


Package: libomp-7-dev
Version: 1:7.0.1-6
Severity: wishlist

Dear Maintainer,

While testing flang-7 for OpenMP programs, I noticed that 'flang
-fopenmp=libomp' doesn't know to link libomp. (clang -fopenmp=libomp
has no problem.) It's easy enough to work around that by using linker
option -L/usr/lib/llvm-7/lib in the case of libomp-7-dev, with some
smarts in my meson.build to adjust to versions other than 7.

But it would be even better if libomp-<version>-dev installed a
symlink /usr/lib/<arch>/libomp.so -> ../llvm-<vers>/lib/libomp.so
Then flang and other programs would find it in a standard library
directory.

It does install a /usr/lib/<arch>/libomp5.so symlink, but Clang
doesn't accept -fopenmp=libomp5.

P.S. Wondering how I'm using Meson to build programs with Flang?
I hacked Meson. Let me know if you're interested.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libomp-7-dev depends on:
ii  libc6       2.28-7
ii  libgcc1     1:8.2.0-20
ii  libomp5-7   1:7.0.1-6
ii  libstdc++6  8.2.0-20

libomp-7-dev recommends no packages.

Versions of packages libomp-7-dev suggests:
pn  libomp-7-doc  <none>

-- no debconf information



More information about the Pkg-llvm-team mailing list