Bug 204263 - devel/llvm37: build failure
Summary: devel/llvm37: build failure
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:
Depends on:
Blocks:
 
Reported: 2015-11-03 18:25 UTC by Yuri Victorovich
Modified: 2017-05-04 03:50 UTC (History)
2 users (show)

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 Yuri Victorovich freebsd_committer freebsd_triage 2015-11-03 18:25:35 UTC
Simple poudriere build (to satisfy some other port dependency BUILD_DEPENDS+= clang37:${PORTSDIR}/lang/clang37) fails with this error:

> ====>> Building devel/llvm37
> build started at Tue Nov  3 10:16:57 PST 2015
> port directory: /usr/ports/devel/llvm37
> building for: FreeBSD 10amd64-local-workstation-job-01 10.0-RELEASE-p18 FreeBSD 10.0-RELEASE-p18 amd64
> maintained by: brooks@FreeBSD.org
> Makefile ident:      $FreeBSD: head/devel/llvm37/Makefile 400406 2015-10-28 18:17:37Z brooks $
> Poudriere version: 3.1.6
> Host OSVERSION: 1002501
> Jail OSVERSION: 1000510
<skipped>
> ===>   llvm37-3.7.0_4 depends on executable: sphinx-build - found
> ===>   Returning to build of llvm37-3.7.0_4
> ===>   llvm37-3.7.0_4 depends on executable: ld.gold - not found
> ===>   Installing existing package /packages/All/binutils-2.25.1.txz
> [10amd64-local-workstation-job-01] Installing binutils-2.25.1...
> [10amd64-local-workstation-job-01] Extracting binutils-2.25.1: .......... done
> ===>   llvm37-3.7.0_4 depends on executable: ld.gold - not found
> *** Error code 1
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2015-11-03 19:56:40 UTC
It appears your devel/binutils build is failing to build with gold support.  You can either disable the GOLD option in devel/llvm37 or figure out why devel/binutils isn't doing the right thing.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2015-11-04 06:19:18 UTC
GOLD option is "on" by default in devel/llvm37. This makes it a generic problem.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2015-11-04 06:41:53 UTC
It appears that I had too old poudriere jail with version 10.0, that must have had base clang<34. In such case devel/binutil doesn't build ld.gold, and it will break when GOLD=on (which is the default). Since builds for 9.X are also routinely performed, this will probably break llvm37 builds there.

Should you make GOLD default in llvm37 in sync with what is the GOLD condition in binutils?
Comment 4 Brooks Davis freebsd_committer freebsd_triage 2015-11-04 17:20:32 UTC
Builds work find on 9.3 for amd64 and i386 so long as things aren't too out of date.  Ideally I'd make the GOLD option depend on binutils building gold, but no such infrastructure don't seem to exist.  What I should probably do is disable the GOLD option by default.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2015-11-04 18:19:42 UTC
You should either make GOLD=off like you said, or copy the condition from binutils, or maybe binutils should lose the clang version check and always build with --enable-gold --enable-plugins.

bapt@: Do you think binutils can lose ${COMPILER_VERSION} >= 34 check and make GOLD option a default, or there is some reason not to?
Comment 6 Martin Wilke freebsd_committer freebsd_triage 2017-05-04 03:50:15 UTC
llvm37 is gone.