Bug 236788 - devel/llvm-devel: -fopenmp cannot find libomp.so
Summary: devel/llvm-devel: -fopenmp cannot find libomp.so
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-25 17:28 UTC by Jan Beich
Modified: 2019-04-01 18:09 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments
v0 (622 bytes, patch)
2019-03-25 17:40 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2019-03-25 17:28:27 UTC
$ pkg info -l llvm-devel | fgrep libomp
        /usr/local/llvm-devel/lib/libomp.so
        /usr/local/llvm-devel/lib/libomptarget.so

$ echo 'int main() {}' >a.c
$ clang-devel -fopenmp a.c
/usr/bin/ld: cannot find -lomp
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

Can you apply devel/llvm80/files/clang/patch-fopenmp.diff ?
Comment 1 Jan Beich freebsd_committer 2019-03-25 17:37:56 UTC
Wait, the patch is there but %%LLVM_PREFIX%% isn't substituted unlike in devel/llvm80.
Comment 2 Jan Beich freebsd_committer 2019-03-25 17:40:50 UTC
Created attachment 203144 [details]
v0
Comment 3 commit-hook freebsd_committer 2019-04-01 18:00:56 UTC
A commit references this bug:

Author: brooks
Date: Mon Apr  1 18:00:36 UTC 2019
New revision: 497499
URL: https://svnweb.freebsd.org/changeset/ports/497499

Log:
  Update to a new snapshot.

  Correct finding libopenmp.

  PR:		236788
  Submitted by:	jbeich

Changes:
  head/devel/llvm-devel/Makefile
  head/devel/llvm-devel/Makefile.snapshot
  head/devel/llvm-devel/distinfo
  head/devel/llvm-devel/pkg-plist
Comment 4 Brooks Davis freebsd_committer 2019-04-01 18:09:16 UTC
hopefully fixed.