Bug 208248 - devel/llvm37: lacks static libraries
Summary: devel/llvm37: lacks static libraries
Status: Closed Overcome By Events
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: patch, regression
Depends on:
Blocks:
 
Reported: 2016-03-23 16:37 UTC by Jan Beich
Modified: 2017-05-04 03:50 UTC (History)
3 users (show)

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


Attachments
v0 + commit message (29.46 KB, patch)
2016-03-23 16:37 UTC, Jan Beich
jbeich: maintainer-approval? (brooks)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2016-03-23 16:37:05 UTC
Created attachment 168542 [details]
v0 + commit message

I'm trying to build lang/rust against devel/llvm37 which fails due to missing static libs unlike other devel/llvm* ports. The issue is caused by -DBUILD_SHARED_LIBS=ON in devel/llvm37 which haven't propagated to devel/llvm38 and disappeared in devel/llvm-devel since ports r409072.

  note: "cc" ... "-L" "/usr/local/llvm37/lib" ... "-Wl,-Bstatic" ... "-l" "LLVMInterpreter" ...
  note: /usr/bin/ld: cannot find -lLLVMInterpreter
  cc: error: linker command failed with exit code 1 (use -v to see invocation)

Let's go back to static builds. Tested only once as

  $ poudriere bulk -Ctj 101i386 devel/llvm37 \
       devel/creduce devel/include-what-you-use security/afl
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2016-03-28 17:59:55 UTC
When I do build llvm static I get a lot of complaints about the 1GB package size so I'm not show how best to balance this.  I'm building llvm38 and llvm-devel static primarily because upstream broke shared builds.
Comment 2 Thomas Zander freebsd_committer freebsd_triage 2016-04-02 08:51:45 UTC
(In reply to Brooks Davis from comment #1)

Maybe we could get an OPTION for the static builds?

The default with lang/rust for now is to use its own bundled LLVM during build. The main reason for this is that it passes a better portion of regression tests than with ports LLVM. I suspect this will change eventually, and then it would be good to be able to switch to using ports LLVM by default.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2017-05-04 03:50:31 UTC
llvm37 is gone.