Bug 216950 - devel/llvm-devel: libclang_rt libraries are not installed where expected
Summary: devel/llvm-devel: libclang_rt libraries are not installed where expected
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: 2017-02-09 21:54 UTC by Philippe Michel
Modified: 2017-09-20 01:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Michel 2017-02-09 21:54:57 UTC
llvm-devel 5.0.d20170114

The libclang_rt libraries are installed in /usr/local/llvm-devel/lib/freebsd while the compiler looks for them in /usr/local/llvm-devel/lib/clang/5.0.0/lib/freebsd, failing with errors like:

configure:3749: clang-devel -g -O1 -march=native -mtune=native -Qunused-arguments -fsanitize=thread  -I/usr/local/include  -lcxxrt -L/usr/local/lib conftest.c >&5
/usr/bin/ld: /usr/local/llvm-devel/bin/../lib/clang/5.0.0/lib/freebsd/libclang_rt.tsan-x86_64.a: No such file: No such file or directory
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)

FWIW, in llvm37 they are indeed in /usr/local/llvm37/lib/clang/3.7.1/lib/freebsd so the regression must have happened between this version and -devel.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-09-20 01:09:38 UTC
A commit references this bug:

Author: brooks
Date: Wed Sep 20 01:08:58 UTC 2017
New revision: 450182
URL: https://svnweb.freebsd.org/changeset/ports/450182

Log:
  Update to a new snapshot.

  Fix location of compiler_rt libraries. [0]

  Fix hardcoded clang-format version. [1]

  PR:		216950 [0], 220995 [1]

Changes:
  head/devel/llvm-devel/Makefile
  head/devel/llvm-devel/Makefile.snapshot
  head/devel/llvm-devel/distinfo
  head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_clang-format-sublime.py
  head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_clang-format.py
  head/devel/llvm-devel/files/clang-patch-tools_clang_tools_clang-format_git-clang-format
  head/devel/llvm-devel/pkg-plist
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2017-09-20 01:25:55 UTC
I've committed a patch that seems to do the right thing for a trivial test case.  Sorry for the long delay.