Bug 215135 - devel/llvm39: Build on Tier2
Summary: devel/llvm39: Build on Tier2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Brooks Davis
Depends on:
Reported: 2016-12-08 03:02 UTC by Matthew Rezny
Modified: 2016-12-09 21:12 UTC (History)
0 users

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

build fixes for devel/llvm39 (2.65 KB, patch)
2016-12-08 03:02 UTC, Matthew Rezny
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Rezny freebsd_committer 2016-12-08 03:02:41 UTC
Created attachment 177776 [details]
build fixes for devel/llvm39

I recently did a build of llvm39 on powerpc64 using lang/gcc5 as the compiler. USES=compiler:c++11-lib is selecting GCC from ports already, just a few fixes are needed. I expect these fixes should benefit other Tier2 platforms but do not have hardware to verify.

* Remove the BROKEN_powerpc64 line that was redundant anyway
* For the case where compiler is !clang, i.e. GCC, instead of setting BROKEN, define _GLIBCXX_USE_C99 in order to expose std::to_string, std::stod, etc.
* Add missing include of climit which clang seems to always pull in

In the process of getting llvm39 building on ppc64, I also noticed one patch appears to have been carried over from llvm38 without being updated, so I corrected that as well.
Comment 1 commit-hook freebsd_committer 2016-12-09 19:04:03 UTC
A commit references this bug:

Author: brooks
Date: Fri Dec  9 19:03:09 UTC 2016
New revision: 428234
URL: https://svnweb.freebsd.org/changeset/ports/428234

  Allow build on non-clang using architectures such as powerpc.

  Mark broken on FreeBSD 9.  This is somewhat more agressive than
  necessicary, but I'm not sure what the correct conditional is and 9.x is
  supported for 22 more days.

  Call the correct clang format.

  PR:		215135
  Submitted by:	matthew@reztek.cz

Comment 2 Brooks Davis freebsd_committer 2016-12-09 21:12:46 UTC
Committed.  Thanks!