Bug 234647 - devel/llvm50: fix build with GCC-based architectures
Summary: devel/llvm50: fix build with GCC-based architectures
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-01-06 00:19 UTC by Piotr Kubaj
Modified: 2019-01-17 23:32 UTC (History)
2 users (show)

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


Attachments
patch (760 bytes, patch)
2019-01-06 00:19 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2019-01-06 00:19:47 UTC
Created attachment 200819 [details]
patch

This port doesn't build after default GCC version in ports was changed to 8.

Use older GCC (5) to build this port. GCC 7 could also be used, but GCC 5 is installed anyway on most GCC architectures, because it's needed for GCC 8.

Remove USES=compiler:c++11-lib, leave only USES=compiler. The reason is that compiler:c++11-lib overwrites USE_GCC and makes the port use GCC 8.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-01-17 23:29:47 UTC
A commit references this bug:

Author: brooks
Date: Thu Jan 17 23:29:32 UTC 2019
New revision: 490610
URL: https://svnweb.freebsd.org/changeset/ports/490610

Log:
  More throughly disable assertions.  This works around USES=cmake
  overriding the CFLAGS used to build. [0]

  devel/llvm[45]0: Fix build on GCC systems. [1]

  devel/llvm[456]: Avoid realpath calls where possible in the wrapper
  script. [2]

  PR:		233506 [0], 234647 [1], 234937 [1]
  Submitted by:	greg@unrelenting.technology [0], pkubaj@anongoth.pl [1],
  		bdrewery [2]
  Differential Revision:	https://reviews.freebsd.org/D17990

Changes:
  head/devel/llvm40/Makefile
  head/devel/llvm40/files/llvm-wrapper.sh.in
  head/devel/llvm50/Makefile
  head/devel/llvm50/files/llvm-wrapper.sh.in
  head/devel/llvm60/Makefile
  head/devel/llvm60/files/llvm-wrapper.sh.in
  head/devel/llvm70/Makefile
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2019-01-17 23:32:33 UTC
Thanks for the submission.