Bug 211309 - devel/llvm-devel doesn't install without EXTRAS, assumes clang-include-fixer libraries built
Summary: devel/llvm-devel doesn't install without EXTRAS, assumes clang-include-fixer ...
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: 2016-07-23 10:29 UTC by Laurence 'GreenReaper' Parry
Modified: 2016-07-26 17:43 UTC (History)
0 users

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


Attachments
Install log (configure stage had scrolled off) (211.33 KB, text/plain)
2016-07-23 10:29 UTC, Laurence 'GreenReaper' Parry
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurence 'GreenReaper' Parry 2016-07-23 10:29:58 UTC
Created attachment 172869 [details]
Install log (configure stage had scrolled off)

I tried to build/install llvm-devel on FreeBSD 10.1 with the following options:
CLANG GOLD LLD OPENMP

This build was done with C/CXXFLAGS=-O2 with FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512

During port installation, I received the following errors:

===>  Installing for llvm-devel-3.9.d20160513
===>  Checking if llvm-devel already installed
===>   Registering installation for llvm-devel-3.9.d20160513 as automatic
pkg-static: Unable to access file /tmp/usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/libclangIncludeFixer.a: No such file or directory
pkg-static: Unable to access file /tmp/usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/libfindAllSymbols.a: No such file or directory
*** Error code 74

I believe these entries in pkg-plist may need an %%EXTRAS%% prefix instead of %%CLANG%% or nothing:

%%CLANG%%llvm-devel/lib/libclangIncludeFixer.a
llvm-devel/lib/libfindAllSymbols.a

http://clang.llvm.org/extra/include-fixer.html is in llvm's /extra/ directory, and mentions that "The include fixer contains find-all-symbols".

When I cut those files from the work directory package list, a 'make install' succeeded.
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2016-07-25 21:54:42 UTC
Thanks for the report.  I'll update the port and fix this error in the process.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-07-26 17:23:53 UTC
A commit references this bug:

Author: brooks
Date: Tue Jul 26 17:23:32 UTC 2016
New revision: 419137
URL: https://svnweb.freebsd.org/changeset/ports/419137

Log:
  Update to a new snapshot.  LLVM HEAD is now 4.0.

  Fix some libraries that should have been under EXTRAS. [0]

  PR:		211309 [0]
  Submitted by:	greenreaper@hotmail.com [0]

Changes:
  head/devel/llvm-devel/Makefile
  head/devel/llvm-devel/Makefile.snapshot
  head/devel/llvm-devel/distinfo
  head/devel/llvm-devel/files/gen-Makefile.snapshot.sh
  head/devel/llvm-devel/pkg-plist